Closed mrzool closed 6 years ago
Looks like the matching patterns for mustacheComment need some fixing. As it is, a contained mustache region matches the end of the comment:
mustacheComment
There's an issue with mustacheBlockComment too. HTML tags coming after a block comment don't get highlighted properly:
mustacheBlockComment
The same doesn't happen with a normal comment:
Here are the lines in syntax/mustache.vim that need fixing (tried myself without success):
syntax/mustache.vim
syntax region mustacheComment start=/{{!/rs=s+2 skip=/{{.\{-}}}/ end=/}}/re=e-2 contains=Todo contained containedin=mustacheInside,@htmlMustacheContainer syntax region mustacheBlockComment start=/{{!--/rs=s+2 skip=/{{.\{-}}}/ end=/--}}/re=e-2 contains=Todo contained extend containedin=mustacheInside,@htmlMustacheContainer
Any help with this would be greatly appreciated. Pinging @juvenn since he's the original author.
Should someone run into the same issue or one of the maintainers want to look into this, I managed to get this working by tweaking @juvenn's older, simpler and now deprecated syntax file.
Looks like the matching patterns for
mustacheComment
need some fixing. As it is, a contained mustache region matches the end of the comment:There's an issue with
mustacheBlockComment
too. HTML tags coming after a block comment don't get highlighted properly:The same doesn't happen with a normal comment:
Here are the lines in
syntax/mustache.vim
that need fixing (tried myself without success):Any help with this would be greatly appreciated. Pinging @juvenn since he's the original author.