diff options
author | Evan Martin <martine@danga.com> | 2012-12-29 21:36:00 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-12-29 21:47:41 (GMT) |
commit | 2c953d1501de5195e2485185fa24a2ebfd76bbb5 (patch) | |
tree | 2fc88e378a6df571bb125d282b14475f2b9ba05c /misc/ninja.vim | |
parent | 7096bf1507f98be981aa14ffd9ed5a4a8b1c1494 (diff) | |
parent | 3249938cdf574058a066436aea06b0541ded6958 (diff) | |
download | Ninja-2c953d1501de5195e2485185fa24a2ebfd76bbb5.zip Ninja-2c953d1501de5195e2485185fa24a2ebfd76bbb5.tar.gz Ninja-2c953d1501de5195e2485185fa24a2ebfd76bbb5.tar.bz2 |
version 1.1.0v1.1.0
Diffstat (limited to 'misc/ninja.vim')
-rw-r--r-- | misc/ninja.vim | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/misc/ninja.vim b/misc/ninja.vim index 6f0e48d..841902f 100644 --- a/misc/ninja.vim +++ b/misc/ninja.vim @@ -1,8 +1,8 @@ " ninja build file syntax. " Language: ninja build file as described at " http://martine.github.com/ninja/manual.html -" Version: 1.2 -" Last Change: 2012/06/01 +" Version: 1.3 +" Last Change: 2012/12/14 " Maintainer: Nicolas Weber <nicolasweber@gmx.de> " Version 1.2 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 @@ -25,6 +25,7 @@ syn match ninjaComment /#.*/ contains=@Spell " lexer.in.cc, ReadToken() and manifest_parser.cc, Parse() syn match ninjaKeyword "^build\>" syn match ninjaKeyword "^rule\>" +syn match ninjaKeyword "^pool\>" syn match ninjaKeyword "^default\>" syn match ninjaKeyword "^include\>" syn match ninjaKeyword "^subninja\>" @@ -35,7 +36,11 @@ syn match ninjaKeyword "^subninja\>" " let assignments. " manifest_parser.cc, ParseRule() syn region ninjaRule start="^rule" end="^\ze\S" contains=ALL transparent -syn keyword ninjaRuleCommand contained command depfile description generator restat +syn keyword ninjaRuleCommand contained command depfile description generator + \ pool restat rspfile rspfile_content + +syn region ninjaPool start="^pool" end="^\ze\S" contains=ALL transparent +syn keyword ninjaPoolCommand contained depth " Strings are parsed as follows: " lexer.in.cc, ReadEvalString() @@ -61,6 +66,7 @@ syn match ninjaOperator "\(=\|:\||\|||\)\ze\s" hi def link ninjaComment Comment hi def link ninjaKeyword Keyword hi def link ninjaRuleCommand Statement +hi def link ninjaPoolCommand Statement hi def link ninjaWrapLineOperator ninjaOperator hi def link ninjaOperator Operator hi def link ninjaSimpleVar ninjaVar |