vscode-hyperscript icon indicating copy to clipboard operation
vscode-hyperscript copied to clipboard

Syntax highlighting breaks with something after `toggle .class on`

Open davidalejandroaguilar opened this issue 2 years ago • 1 comments

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".

image image

Working

Notice the red div at the bottom indicating the syntax is "correct".

image

davidalejandroaguilar avatar Mar 25 '23 03:03 davidalejandroaguilar

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"

leandergangso avatar Sep 17 '23 00:09 leandergangso