Description
Currently, the HTML does this to detect vue directives.
|
_ if p.cur_text().starts_with("v-") => { |
|
HtmlSyntaxFeatures::Vue |
|
.parse_exclusive_syntax(p, parse_vue_directive, |p, m| disabled_vue(p, m.range(p))) |
|
} |
This isn't ideal because the lexer should output VUE_IDENT when it encounters a vue directive, which would allow the parser to forego the starts_with call.
Description
Currently, the HTML does this to detect vue directives.
biome/crates/biome_html_parser/src/syntax/mod.rs
Lines 382 to 385 in a3a713d
This isn't ideal because the lexer should output
VUE_IDENTwhen it encounters a vue directive, which would allow the parser to forego thestarts_withcall.