mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
`(?-u:...)` switches `regex_syntax` to matching raw bytes, but the lexer dispatches on decoded characters, so `expand_regex` converted the byte class with a u8 cast. This is exact for ASCII bytes, and silently misleading for anything aboove 0x80. This is not reachable from grammar.js (node and QuickJS both reject `(?-u:...)`). This change is to guard against future JS runtime changes, as well as alternative frontends to the generate crate. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
Tree-sitter Generate
This helper crate implements the logic for the tree-sitter generate command,
and can be used by external tools to generate a parser from a grammar file.