diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-05-14 04:34:58 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-05-14 04:34:58 (GMT) |
commit | 8aebe7d32e6b54312985be37e42dcb11b5a48f33 (patch) | |
tree | c8aa287baadc9334bdb0fc373934318be5716bd3 /misc | |
parent | 1607b1685291e6d5f58071b7cd9e69fe16284250 (diff) | |
download | Ninja-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.vim | 9 |
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 |