lezer-parser / html

An HTML parser for Lezer
MIT License
13 stars 10 forks source link

Align attribute token syntax to the HTML spec. #5

Closed bmeurer closed 1 year ago

bmeurer commented 1 year ago

According to the HTML spec^1, attribute names can contain a lot more characters. This allows among other things to properly support Vue template syntax^2, in particular shorthands like @click=onClick and also Dynamic Arguments syntax like v-bind:[attributeName]="url".

Bug: http://crbug.com/1383451

bmeurer commented 1 year ago

Here's the first (uncontroversial) part of https://github.com/lezer-parser/html/pull/4, aligning the parsing of attribute names with the HTML spec.

marijnh commented 1 year ago

Merged as 057e9ee, thank you.