vscode-hyperscript
vscode-hyperscript copied to clipboard
Syntax highlighting breaks with something after `toggle .class on`
I'm using v0.1.5 on VS Code 1.76.2. The file is .html.erb with the following settings:
"files.associations": {
"*.html.erb": "erb",
"*.turbo_stream.erb": "erb"
},
Examples:
<div _="on click toggle .class on me">
</div>
<div _="on click toggle .class on #<%= dom_id(object) %>">
</div>
Pictures:
Broken
Notice the green div at the bottom indicating the syntax is "incorrect".
Working
Notice the red div at the bottom indicating the syntax is "correct".
If you use end at the end of the function it solves most of those cases.
e.g. _="on click toggle .class on me end"