davidrios / pug-tmbundle

A comprehensive textmate / sublime text bundle for the Pug (formerly Jade) template language.
https://github.com/davidrios/pug-tmbundle
MIT License
48 stars 20 forks source link

Syntax highlighting breaks when using require in attribute values #36

Open pvrt opened 2 years ago

pvrt commented 2 years ago

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

davidrios commented 1 year ago

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?