FEATURE: Highlight all operator
Add := and > as tsLineOperator. Relates #8
This commit is contained in:
parent
1fa9932346
commit
b9af2d95b4
1 changed files with 4 additions and 3 deletions
|
@ -11,7 +11,7 @@ syntax region tsComment keepend start="^\s*#" end="$"
|
||||||
syntax region tsComment keepend start="\v^\s*\/\/" end="$"
|
syntax region tsComment keepend start="\v^\s*\/\/" end="$"
|
||||||
syntax region tsInclude keepend start="\v^\s*\<" end="\v\>\s*$"
|
syntax region tsInclude keepend start="\v^\s*\<" end="\v\>\s*$"
|
||||||
syntax region tsCondition keepend start="\v^\s*\[" end="\]\s*$"
|
syntax region tsCondition keepend start="\v^\s*\[" end="\]\s*$"
|
||||||
syntax match tsSingleline "\v^\s*\i+\s*[=<>{].*$"
|
syntax match tsSingleline "\v^\s*\i+\s*[=:<>{].*$"
|
||||||
syntax region tsMultiline keepend start="\v^\s*\i+\s*\(\s*$" end="\v^\s*\)\s*$"
|
syntax region tsMultiline keepend start="\v^\s*\i+\s*\(\s*$" end="\v^\s*\)\s*$"
|
||||||
syntax match tsDelimiter "\v^\s*\}\s*$"
|
syntax match tsDelimiter "\v^\s*\}\s*$"
|
||||||
|
|
||||||
|
@ -20,9 +20,10 @@ syntax region tsValue keepend matchgroup=tsLineOperator start="\v\=" end="\v$" c
|
||||||
syntax region tsValue keepend matchgroup=tsDelimiter start="\v\(" end="\v^\s*\)\s*$" contained containedin=tsMultiline
|
syntax region tsValue keepend matchgroup=tsDelimiter start="\v\(" end="\v^\s*\)\s*$" contained containedin=tsMultiline
|
||||||
syntax match tsIdentifier "\v^\s*\i+" contained containedin=tsSingleline,tsMultiline
|
syntax match tsIdentifier "\v^\s*\i+" contained containedin=tsSingleline,tsMultiline
|
||||||
syntax match tsLineOperator "\v[=<]" contained containedin=tsSymlink
|
syntax match tsLineOperator "\v[=<]" contained containedin=tsSymlink
|
||||||
syntax match tsSymlink "\v(\<|\=\s*\<)\s*\i+\s*$" contained containedin=tsSingleline
|
syntax match tsSymlink "\v(\<|\=\s*\<|\>\s*)\s*\i+\s*$" contained containedin=tsSingleline
|
||||||
syntax match tsDelimiter "\v\{\s*$" contained containedin=tsSingleline
|
syntax match tsDelimiter "\v\{\s*$" contained containedin=tsSingleline
|
||||||
syntax match tsLineOperator "\v\>\s*$" contained containedin=tsSingleline
|
syntax match tsLineOperator "\v:\=" contained containedin=tsSingleline
|
||||||
|
syntax match tsLineOperator "\v\>" contained containedin=tsSingleline
|
||||||
syntax match tsIdentifier "\v\i+\s*$" contained containedin=tsSymlink
|
syntax match tsIdentifier "\v\i+\s*$" contained containedin=tsSymlink
|
||||||
|
|
||||||
" Sub level elements
|
" Sub level elements
|
||||||
|
|
Loading…
Reference in a new issue