feat: Highlight all operator
Add := and > as tsLineOperator. Relates #8
This commit is contained in:
parent
a76f108159
commit
246230c0eb
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 tsInclude keepend start="\v^\s*\<" end="\v\>\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 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 match tsIdentifier "\v^\s*\i+" contained containedin=tsSingleline,tsMultiline
|
||||
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 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
|
||||
|
||||
" Sub level elements
|
||||
|
|
Loading…
Reference in a new issue