diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2017-02-02 21:16:29 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-02-02 21:16:29 +0100 |
commit | e685e4b431ab017d1aec9f9668fbeeeb6e7113e6 (patch) | |
tree | 47137f448d461ebb6852d81c6f553d0843e33764 /syntax/pug.vim | |
parent | e404a658b1647fad396a954776eda0bdabf8353c (diff) | |
download | vim-polyglot-e685e4b431ab017d1aec9f9668fbeeeb6e7113e6.tar.gz vim-polyglot-e685e4b431ab017d1aec9f9668fbeeeb6e7113e6.zip |
Update
Diffstat (limited to 'syntax/pug.vim')
-rw-r--r-- | syntax/pug.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/syntax/pug.vim b/syntax/pug.vim index 4ac85f87..85cfbcd8 100644 --- a/syntax/pug.vim +++ b/syntax/pug.vim @@ -38,8 +38,9 @@ syntax keyword pugCommentTodo contained TODO FIXME XXX TBD syn match pugComment '\(\s\+\|^\)\/\/.*$' contains=pugCommentTodo syn region pugCommentBlock start="\z(\s\+\|^\)\/\/.*$" end="^\%(\z1\s\|\s*$\)\@!" contains=pugCommentTodo keepend syn region pugHtmlConditionalComment start="<!--\%(.*\)>" end="<!\%(.*\)-->" contains=pugCommentTodo -syn region pugAttributes matchgroup=pugAttributesDelimiter start="(" end=")" contained contains=@htmlJavascript,pugHtmlArg,htmlArg,htmlEvent,htmlCssDefinition nextgroup=@pugComponent -syn match pugClassChar "\." contained nextgroup=pugClass +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 match pugClassChar "\." containedin=htmlTagName nextgroup=pugClass syn match pugBlockExpansionChar ":\s\+" contained nextgroup=pugTag,pugClassChar,pugIdChar syn match pugIdChar "#[[{]\@!" contained nextgroup=pugId syn match pugClass "\%(\w\|-\)\+" contained nextgroup=@pugComponent |