Skip to content

Commit

Permalink
Fix VIM syntax highlighting for comments
Browse files Browse the repository at this point in the history
fixes #8755
  • Loading branch information
lazyfrosch committed Mar 16, 2015
1 parent e3d379a commit 90568e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/syntax/vim/syntax/icinga2.vim
Expand Up @@ -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

Expand Down Expand Up @@ -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]\+\(-\)\+"
Expand Down

0 comments on commit 90568e7

Please sign in to comment.