Fix highlighting of Python/VimL commands
Also mark all the highlighting as default, so it can be overridden more easily by the user.
This commit is contained in:
parent
7b8641e1fd
commit
1ad7d54d75
@ -25,9 +25,9 @@ syn match snipExtends "^extends.*" contains=snipKeyword
|
|||||||
" snippet definitions
|
" snippet definitions
|
||||||
syn match snipStart "^snippet.*" contained contains=snipKeyword,snipDocString
|
syn match snipStart "^snippet.*" contained contains=snipKeyword,snipDocString
|
||||||
syn match snipEnd "^endsnippet" contained contains=snipKeyword
|
syn match snipEnd "^endsnippet" contained contains=snipKeyword
|
||||||
syn region snipCommand contained keepend start="`" end="`" contains=snipPythonCommand,snipVimLCommand
|
syn region snipCommand keepend start="`" end="`" contains=snipPythonCommand,snipVimLCommand
|
||||||
syn region snipPythonCommand contained keepend start="`!p" end="`" contained contains=@Python
|
syn region snipPythonCommand keepend start="`!p" end="`" contained contains=@Python
|
||||||
syn region snipVimLCommand contained keepend start="`!v" end="`" contained contains=@Viml
|
syn region snipVimLCommand keepend start="`!v" end="`" contained contains=@Viml
|
||||||
syn match snipVar "\$\d*" contained
|
syn match snipVar "\$\d*" contained
|
||||||
syn region snipVisual matchgroup=Define start="\${VISUAL" end="}" contained
|
syn region snipVisual matchgroup=Define start="\${VISUAL" end="}" contained
|
||||||
syn region snipVarExpansion matchgroup=Define start="\${\d*" end="}" contained contains=snipVar,snipVarExpansion,snipCommand
|
syn region snipVarExpansion matchgroup=Define start="\${\d*" end="}" contained contains=snipVar,snipVarExpansion,snipCommand
|
||||||
@ -44,29 +44,31 @@ syn match snipPriority "^priority"
|
|||||||
|
|
||||||
" highlighting rules
|
" highlighting rules
|
||||||
|
|
||||||
hi link snipComment Comment
|
hi def link snipComment Comment
|
||||||
hi link snipLeadingSpaces Error
|
hi def link snipLeadingSpaces Error
|
||||||
hi link snipString String
|
hi def link snipString String
|
||||||
hi link snipDocString String
|
hi def link snipDocString String
|
||||||
hi link snipTabsOnly Error
|
hi def link snipTabsOnly Error
|
||||||
|
|
||||||
hi link snipKeyword Keyword
|
hi def link snipKeyword Keyword
|
||||||
|
|
||||||
hi link snipExtends Statement
|
hi def link snipExtends Statement
|
||||||
|
|
||||||
hi link snipStart Statement
|
hi def link snipStart Statement
|
||||||
hi link snipEnd Statement
|
hi def link snipEnd snipStart
|
||||||
hi link snipCommand Special
|
hi def link snipCommand Special
|
||||||
hi link snipVar StorageClass
|
hi def link snipPythonCommand snipCommand
|
||||||
hi link snipVarExpansion Normal
|
hi def link snipVimLCommand snipCommand
|
||||||
hi link snipVisual Normal
|
hi def link snipVar StorageClass
|
||||||
hi link snippet Normal
|
hi def link snipVarExpansion Normal
|
||||||
|
hi def link snipVisual Normal
|
||||||
|
hi def link snippet Normal
|
||||||
|
|
||||||
hi link snipGlobalStart Statement
|
hi def link snipGlobalStart Statement
|
||||||
hi link snipGlobalEnd Statement
|
hi def link snipGlobalEnd Statement
|
||||||
hi link snipGlobal Normal
|
hi def link snipGlobal Normal
|
||||||
|
|
||||||
hi link snipClear Statement
|
hi def link snipClear Statement
|
||||||
hi link snipPriority Statement
|
hi def link snipPriority Statement
|
||||||
|
|
||||||
let b:current_syntax = "snippet"
|
let b:current_syntax = "snippet"
|
||||||
|
Loading…
Reference in New Issue
Block a user