diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2016-07-05 09:53:49 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2016-07-05 09:53:49 +0200 |
commit | bf188c4a51a6d151bb2694d73048727f4359c634 (patch) | |
tree | 3059e2f946ae6293e1809d67393fddced1197431 /syntax/pug.vim | |
parent | a5857b81c215139b3c0def78e5bd2f1da8a17af6 (diff) | |
download | vim-polyglot-2.11.1.tar.gz vim-polyglot-2.11.1.zip |
Updatev2.11.1
Diffstat (limited to 'syntax/pug.vim')
-rw-r--r-- | syntax/pug.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax/pug.vim b/syntax/pug.vim index d8416a88..992fef64 100644 --- a/syntax/pug.vim +++ b/syntax/pug.vim @@ -34,8 +34,8 @@ syn cluster pugTop contains=pugBegin,pugComment,pugHtmlComment,pugJavascript syn match pugBegin "^\s*\%([<>]\|&[^=~ ]\)\@!" nextgroup=pugTag,pugClassChar,pugIdChar,pugPlainChar,pugJavascript,pugScriptConditional,pugScriptStatement,pugPipedText syn match pugTag "+\?\w\+\%(:\w\+\)\=" contained contains=htmlTagName,htmlSpecialTagName nextgroup=@pugComponent syn cluster pugComponent contains=pugAttributes,pugIdChar,pugBlockExpansionChar,pugClassChar,pugPlainChar,pugJavascript,pugTagBlockChar,pugTagInlineText -syn match pugComment '\s*\/\/.*$' -syn region pugCommentBlock start="\z(\s*\)\/\/.*$" end="^\%(\z1\s\|\s*$\)\@!" keepend +syn match pugComment '\(\s\+\|^\)\/\/.*$' +syn region pugCommentBlock start="\z(\s\+\|^\)\/\/.*$" end="^\%(\z1\s\|\s*$\)\@!" keepend syn region pugHtmlConditionalComment start="<!--\%(.*\)>" end="<!\%(.*\)-->" syn region pugAttributes matchgroup=pugAttributesDelimiter start="(" end=")" contained contains=@htmlJavascript,pugHtmlArg,htmlArg,htmlEvent,htmlCssDefinition nextgroup=@pugComponent syn match pugClassChar "\." contained nextgroup=pugClass |