summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-12-14 19:06:03 (GMT)
committerEvan Martin <martine@danga.com>2012-12-14 19:06:03 (GMT)
commitdeb12d8eed547262719bd4d8b50f140b3dbdbc1e (patch)
treeaed814c082ef37a83a9aa1ab53e8ba6d65acf4b6 /misc
parent62620a074ab50bcd3eb6e9ffb57dffa0f41efa14 (diff)
parenta7e4d6affbd6bb05dc443928f82c7a1a90f97c65 (diff)
downloadNinja-deb12d8eed547262719bd4d8b50f140b3dbdbc1e.zip
Ninja-deb12d8eed547262719bd4d8b50f140b3dbdbc1e.tar.gz
Ninja-deb12d8eed547262719bd4d8b50f140b3dbdbc1e.tar.bz2
Merge pull request #471 from riannucci/fix_vim_syntax
Fix vim syntax
Diffstat (limited to 'misc')
-rw-r--r--misc/ninja.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/misc/ninja.vim b/misc/ninja.vim
index 6f0e48d..7787c6e 100644
--- a/misc/ninja.vim
+++ b/misc/ninja.vim
@@ -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