summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2012-05-14 04:34:58 (GMT)
committerNico Weber <nicolasweber@gmx.de>2012-05-14 04:34:58 (GMT)
commit8aebe7d32e6b54312985be37e42dcb11b5a48f33 (patch)
treec8aa287baadc9334bdb0fc373934318be5716bd3 /misc
parent1607b1685291e6d5f58071b7cd9e69fe16284250 (diff)
downloadNinja-8aebe7d32e6b54312985be37e42dcb11b5a48f33.zip
Ninja-8aebe7d32e6b54312985be37e42dcb11b5a48f33.tar.gz
Ninja-8aebe7d32e6b54312985be37e42dcb11b5a48f33.tar.bz2
vim syntax file: Highlight ninja comments.
Diffstat (limited to 'misc')
-rw-r--r--misc/ninja.vim9
1 files changed, 6 insertions, 3 deletions
diff --git a/misc/ninja.vim b/misc/ninja.vim
index 24fc9b4..f8ba783 100644
--- a/misc/ninja.vim
+++ b/misc/ninja.vim
@@ -1,10 +1,10 @@
" ninja build file syntax.
" Language: ninja build file as described at
" http://martine.github.com/ninja/manual.html
-" Version: 1.0
-" Last Change: 2011/12/31
+" Version: 1.1
+" Last Change: 2012/05/13
" Maintainer: Nicolas Weber <nicolasweber@gmx.de>
-" Version 1.0 of this script is in the upstream vim repository and will be
+" Version 1.1 of this script is in the upstream vim repository and will be
" included in the next vim release. If you change this, please send your change
" upstream.
@@ -18,6 +18,8 @@ endif
syn case match
+syn match ninjaComment /#.*/
+
" Toplevel statements are the ones listed here and
" toplevel variable assignments (ident '=' value).
" lexer.in.cc, ReadToken() and parsers.cc, Parse()
@@ -56,6 +58,7 @@ syn match ninjaVar "\${[a-zA-Z0-9_.-]\+}"
" order-only dependency ||
syn match ninjaOperator "\(=\|:\||\|||\)\ze\s"
+hi def link ninjaComment Comment
hi def link ninjaKeyword Keyword
hi def link ninjaRuleCommand Statement
hi def link ninjaWrapLineOperator ninjaOperator