summaryrefslogtreecommitdiffstats
path: root/syntax/pug.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/pug.vim')
-rw-r--r--syntax/pug.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/syntax/pug.vim b/syntax/pug.vim
index 03f62707..bd3f8748 100644
--- a/syntax/pug.vim
+++ b/syntax/pug.vim
@@ -39,7 +39,9 @@ syn match pugComment '\(\s\+\|^\)\/\/.*$' contains=pugCommentTodo,@Spell
syn region pugCommentBlock start="\z(\s\+\|^\)\/\/.*$" end="^\%(\z1\s\|\s*$\)\@!" contains=pugCommentTodo,@Spell keepend
syn region pugHtmlConditionalComment start="<!--\%(.*\)>" end="<!\%(.*\)-->" contains=pugCommentTodo,@Spell
syn region pugAngular2 start="(" end=")" contains=htmlEvent
-syn region pugAttributes matchgroup=pugAttributesDelimiter start="(" end=")" contained contains=@htmlJavascript,pugHtmlArg,pugAngular2,htmlArg,htmlEvent,htmlCssDefinition nextgroup=@pugComponent
+syn region pugJavascriptString start=+"+ skip=+\\\("\|$\)+ end=+"\|$+ contained
+syn region pugJavascriptString start=+'+ skip=+\\\('\|$\)+ end=+'\|$+ contained
+syn region pugAttributes matchgroup=pugAttributesDelimiter start="(" end=")" contained contains=pugJavascriptString,pugHtmlArg,pugAngular2,htmlArg,htmlEvent,htmlCssDefinition nextgroup=@pugComponent
syn match pugClassChar "\." containedin=htmlTagName nextgroup=pugClass
syn match pugBlockExpansionChar ":\s\+" contained nextgroup=pugTag,pugClassChar,pugIdChar
syn match pugIdChar "#[[{]\@!" contained nextgroup=pugId
@@ -101,6 +103,7 @@ hi def link pugCommentTodo Todo
hi def link pugComment Comment
hi def link pugCommentBlock Comment
hi def link pugHtmlConditionalComment pugComment
+hi def link pugJavascriptString String
let b:current_syntax = "pug"