Skip to content

📎 Improve lexing of vue directives #8059

@dyc3

Description

@dyc3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ParserArea: parserL-HTMLLanguage: HTML and super languages

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions