]> granicus.if.org Git - icinga2/commitdiff
Fix VIM syntax highlighting for comments
authorMarkus Frosch <markus@lazyfrosch.de>
Mon, 16 Mar 2015 08:18:06 +0000 (09:18 +0100)
committerMarkus Frosch <markus@lazyfrosch.de>
Mon, 16 Mar 2015 08:20:05 +0000 (09:20 +0100)
fixes #8755

tools/syntax/vim/syntax/icinga2.vim

index 833b33e0b67a958d7c8d2b534f183f7ab87b2d65..b93279edbe91e4a1e696a262306aa01586145eaf 100644 (file)
@@ -23,6 +23,7 @@ syntax case ignore
 " comments
 syn keyword            icinga2CommentTodo              TODO FIXME XXX TBD contained
 syn match              icinga2LineComment              "\/\/.*" contains=icinga2CommentTodo
+syn match              icinga2LineComment              "#.*" contains=icinga2CommentTodo
 syn match              icinga2CommentSkip              "^[ \t]*\*\($\|[ \t]\+\)"
 syn region             icinga2Comment                  start="/\*"  end="\*/" contains=icinga2CommentTodo
 
@@ -143,7 +144,7 @@ syn  match         icinga2Operators "[ \t]\+\(\~\)\+"
 syn  match         icinga2Operators "[ \t]\+\(+\)\+"
 syn  match         icinga2Operators "[ \t]\+\(-\)\+"
 syn  match         icinga2Operators "[ \t]\+\(*\)\+"
-syn  match         icinga2Operators "[ \t]\+\(/\)\+"
+syn  match         icinga2Operators "[ \t]\+\(/[^/\*]\)\+"
 syn  match         icinga2Operators "[ \t]\+\(%\)\+"
 syn  match         icinga2Operators "[ \t]\+\(+\)\+"
 syn  match         icinga2Operators "[ \t]\+\(-\)\+"