Add patch for mustache syntax from vim-mustache-handlebars

This commit is contained in:
leafOfTree
2021-04-13 15:06:55 +08:00
parent 8e6080629b
commit f460616735

14
syntax/patch/mustache.vim Normal file
View File

@@ -0,0 +1,14 @@
" Patch for https://github.com/mustache/vim-mustache-handlebars
" Use containedin=mustacheTemplateBlock in place of containedin=Top
syntax clear mustacheBlockComment
syntax region mustacheBlockComment start=/{{!--/rs=s+2 skip=/{{.\{-}}}/ end=/--}}/re=e-2 contains=Todo contained extend containedin=mustacheTemplateBlock,@mustacheInside,@htmlMustacheContainer
syntax clear mustacheComment
syntax region mustacheComment start=/{{!/rs=s+2 skip=/{{.\{-}}}/ end=/}}/re=e-2 contains=Todo contained containedin=mustacheTemplateBlock,@mustacheInside,@htmlMustacheContainer
syntax clear mustacheAngleComponent
syntax region mustacheAngleComponent start=/<\/\?[[:upper:]]/ end=/>/ keepend containedin=mustacheTemplateBlock,@htmlMustacheContainer
syntax clear mustacheHbsComponent
syntax region mustacheHbsComponent start=/{{[^!][$#^/]\?/ end=/}}}\?/ keepend containedin=mustacheTemplateBlock,@htmlMustacheContainer