This is intended to be an extremely high performance lexer generator. There is some legacy code in here from when the lexer was specific to emmet
- group
- lparen:
( - rparen:
) - lsquare:
[ - rsquare:
]
- lparen:
- variable
- string:
"[^"]*" - content:
{[^}]*} - identifier:
[a-Z-_]+ - number:
[0-9]+
- string:
- combinator
- child:
> - sibling:
+
- child:
- prefix
- id:
# - class:
.
- id:
- misc
- equals:
= - multiply:
*
- equals:
- name
- div
- p
- h1
- ...
- line
- collection (combinator line)?
- collection
- group (multiply number)?
- group
- lparen line rparen
- element
- element
- specifier+ content?
- specifier
- prefix identifier
- name
- lsquare identifier equals string rsquare