Rename match to match_text for lexer user code blocks
This commit is contained in:
1 parent
47ad55ee2c
commit
d596d47cef
23 files changed
+124
-106
No files matched your search
@@ -6,6 +6,11 @@
|
||||
|
||||
### API Changes
|
||||
|
||||
- The matched text argument passed to lexer user code blocks is now named
|
||||
`match_text` for every target language. It was previously named `match` for
|
||||
C, C++, and D, and `match_` for Rust. Any lexer user code block which
|
||||
references the matched text must be updated to use the new name. The
|
||||
`match_length` argument (C, C++, and Rust) is unchanged.
|
||||
- Tree generation mode now stores all tree nodes in a compact arena owned by
|
||||
the parser context (a flat node array plus a shared child-link array).
|
||||
This replaces the previous design of one heap allocation per node with
|
||||
|
||||
Reference in new issue
Block a user