pug-tmbundle icon indicating copy to clipboard operation
pug-tmbundle copied to clipboard

Syntax highlighting breaks when using require in attribute values

Open pvrt opened this issue 2 years ago • 1 comments

When I use require in the attribute value, syntax highlighting breaks. How can this be fixed?

img(src=require("./src/images/icon-arrow.svg"))

example

pvrt avatar Jul 25 '22 21:07 pvrt

Edit: never mind, I just checked the docs and plain javascript is supported as value for attributes...

It works fine for me on Code: image

What editor are you using?

davidrios avatar Dec 01 '22 19:12 davidrios