Documentation
¶
Overview ¶
Package html is @lezer/html's HTML grammar for internal/lezer: its parse tables and styleTags rules, generated from the npm package, the Go ports of its external tokenizers and context tracker, and the nesting of JavaScript and CSS that @codemirror/lang-html sets up by default. go generate rewrites the tables and the golden files the tests compare against, with LEZER_NODE_MODULES naming a node_modules directory set up as internal/lezer/gen/gen.mjs says, with @lezer/html@1.3.13, @lezer/javascript@1.5.6 and @lezer/css@1.3.9 in place of @lezer/java.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Parser = sync.OnceValue(func() *lezer.Parser { p, err := lezer.New(spec, externals) if err != nil { panic("html: generated spec does not load: " + err.Error()) } return p.WithNest(nest) })
Parser is the HTML parser, built the first time it is asked for, with script, style, style attributes and event handler attributes parsed as @codemirror/lang-html's html() parses them by default.
Functions ¶
This section is empty.
Types ¶
This section is empty.