summaryrefslogtreecommitdiffstats
path: root/syntax/pug.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-03-10 19:42:33 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-03-10 19:42:33 +0100
commite4f906d9a543dfb3520eebe6806eac2ff38c4388 (patch)
treef850c02f742fd36ada1dab9e90c11f0e7616bf1d /syntax/pug.vim
parent8b3a563bd0e4b2fad7c81a27844c2f8312fb60ec (diff)
downloadvim-polyglot-e4f906d9a543dfb3520eebe6806eac2ff38c4388.tar.gz
vim-polyglot-e4f906d9a543dfb3520eebe6806eac2ff38c4388.zip
Fix specs
Diffstat (limited to 'syntax/pug.vim')
-rw-r--r--syntax/pug.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax/pug.vim b/syntax/pug.vim
index 49ed6da4..509d62a1 100644
--- a/syntax/pug.vim
+++ b/syntax/pug.vim
@@ -73,8 +73,8 @@ syn region pugPlainFilter matchgroup=pugFilter start="^\z(\s*\):\%(sass\|less\|
syn match pugScriptConditional "^\s*\<\%(if\|else\|else if\|elif\|unless\|while\|until\|case\|when\|default\)\>[?!]\@!"
syn match pugScriptStatement "^\s*\<\%(each\|for\|block\|prepend\|append\|mixin\|extends\|include\)\>[?!]\@!"
-syn region pugScriptLoopRegion start="^\s*\(for \)" end="$" contains=pugScriptLoopKeywords
-syn keyword pugScriptLoopKeywords for in
+syn region pugScriptLoopRegion start="^\s*\(for\|each\)" end="$" contains=pugScriptLoopKeywords
+syn keyword pugScriptLoopKeywords contained for each in
syn region pugJavascript start="^\z(\s*\)script\%(:\w\+\)\=" end="^\%(\z1\s\|\s*$\)\@!" contains=@htmlJavascript,pugJavascriptTag,pugCoffeescriptFilter keepend
syn region javascriptInterpolation start=/${/ end=/}/ contained