eknkc / pug

Go port of Pug (jade) template engine
MIT License
45 stars 6 forks source link

Tag attributes with dashes, semicolons or underscores result in parse error #10

Open ademenev opened 4 years ago

ademenev commented 4 years ago
button.ui.icon.button(data-content="Feeder homing cycle")

error:

no match found, expected: "!=", ")", ",", "=", [ \t] or [._-:a-zA-Z0-9]

The problem is that [.-:a-zA-Z0-9] includes a range (`-:) instead of 3 separate chars.-` should be escaped