oil.vim: highlight C++-style comments and "#include" lines
This commit is contained in:
parent
851e10a20d
commit
a0a88529fd
@ -150,6 +150,8 @@ else
|
||||
syn region oilComment matchgroup=oilCommentStart start="/\*" matchgroup=NONE end="\*/" contains=@oilCommentGroup,oilCommentStartError,oilSpaceError
|
||||
endif
|
||||
|
||||
syn region oilPreProc start="^\s*\(%:\|#\)\s*include\>" skip="\\$" end="$"
|
||||
|
||||
syntax match oilCommentError display "\*/"
|
||||
syntax match oilCommentStartError display "/\*"me=e-1 contained
|
||||
|
||||
@ -194,7 +196,9 @@ if version >= 508 || !exists("did_oil_syntax_inits")
|
||||
highlight link oilString String
|
||||
highlight link oilCharacter Character
|
||||
highlight link oilComment Comment
|
||||
highlight link oilCommentL Comment
|
||||
highlight link oilCommentStart oilComment
|
||||
highlight link oilPreProc PreProc
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user