<p class="paragraph">Lorem ipsum dolor sit amet</p>
<div class={{"handlebars-stuff asdf"}} class="asdf">
<p class="paragraph">Lorem ipsum dolor sit amet</p>
</div>
You should see some broken syntax highlighting, like so:
This is because htmlValue in the native html syntax file doesn't allow spaces unless they are enclosed in quotes; but bare handlebars are allowed to be an html value.
(It is highlighting handlebars-stuff as htmlValue, the first asdf as htmlTag, and class as htmlString, and the second asdf as htmlTag.)
Enter this text in Vim:
You should see some broken syntax highlighting, like so:
This is because
htmlValue
in the native html syntax file doesn't allow spaces unless they are enclosed in quotes; but bare handlebars are allowed to be an html value.(It is highlighting
handlebars-stuff
ashtmlValue
, the firstasdf
ashtmlTag
, andclass
ashtmlString
, and the secondasdf
ashtmlTag
.)