summaryrefslogtreecommitdiffstats
path: root/syntax/pug.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-09-27 19:47:32 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-09-27 19:47:32 +0200
commitf95026252c5a31242903a98c741887696dfbb11f (patch)
treecd697cdc96c20a44f03ff3aacc67f78fdcc6ece5 /syntax/pug.vim
parent4f3df59be709bf0d5c5c67dc804fde49abdc2700 (diff)
downloadvim-polyglot-f95026252c5a31242903a98c741887696dfbb11f.tar.gz
vim-polyglot-f95026252c5a31242903a98c741887696dfbb11f.zip
Update everything, closes #435
Diffstat (limited to 'syntax/pug.vim')
-rw-r--r--syntax/pug.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/syntax/pug.vim b/syntax/pug.vim
index c83b35c6..d393dab6 100644
--- a/syntax/pug.vim
+++ b/syntax/pug.vim
@@ -29,7 +29,8 @@ syn region javascriptParenthesisBlock start="(" end=")" contains=@htmlJavascrip
syn cluster htmlJavascript add=javascriptParenthesisBlock
syn region pugJavascript matchgroup=pugJavascriptOutputChar start="[!&]\==\|\~" skip=",\s*$" end="$" contained contains=@htmlJavascript keepend
-syn region pugJavascript matchgroup=pugJavascriptChar start="-" skip=",\s*$" end="$" contained contains=@htmlJavascript keepend
+syn region pugJavascript matchgroup=pugJavascriptChar start="\(^\|\s\)\@<=-" skip=",\s*$" end="$" contained contains=@htmlJavascript keepend
+
syn cluster pugTop contains=pugBegin,pugComment,pugHtmlComment,pugJavascript
syn match pugBegin "^\s*\%([<>]\|&[^=~ ]\)\@!" nextgroup=pugTag,pugClassChar,pugIdChar,pugPlainChar,pugJavascript,pugScriptConditional,pugScriptStatement,pugPipedText
syn match pugTag "+\?[[:alnum:]_-]\+\%(:\w\+\)\=" contained contains=htmlTagName,htmlSpecialTagName,pugJavascript nextgroup=@pugComponent