From a0a88529fdd8528bd6c744125d4fa574bdd46964 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 23 Oct 2013 14:31:22 -0400 Subject: [PATCH] oil.vim: highlight C++-style comments and "#include" lines --- syntax/oil.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syntax/oil.vim b/syntax/oil.vim index 30dd73f..3dc9924 100644 --- a/syntax/oil.vim +++ b/syntax/oil.vim @@ -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