summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Iannucci <robbie@rail.com>2012-12-14 07:10:52 (GMT)
committerRobert Iannucci <robbie@rail.com>2012-12-14 07:12:47 (GMT)
commite735510fcf1dccc3ea0e7fafeb3dd3c6e37c1650 (patch)
tree26b1a20f08c88ce91f93a6f570c78838db26b511
parent8fcc4caf8f98c532f0f5078b7a0593b0904871a0 (diff)
downloadNinja-e735510fcf1dccc3ea0e7fafeb3dd3c6e37c1650.zip
Ninja-e735510fcf1dccc3ea0e7fafeb3dd3c6e37c1650.tar.gz
Ninja-e735510fcf1dccc3ea0e7fafeb3dd3c6e37c1650.tar.bz2
Add ninja.vim syntax for pool
-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..6ec7c8b 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
+
+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