Separate auxiliary rules from user-specified rules
This commit is contained in:
parent
19e5b2a563
commit
fd0d77ef8b
16 changed files with 741 additions and 412 deletions
|
|
@ -84,7 +84,10 @@ namespace tree_sitter {
|
|||
{}
|
||||
|
||||
string symbol_id(rules::Symbol symbol) {
|
||||
return "ts_symbol_" + symbol.name;
|
||||
if (symbol.is_auxiliary)
|
||||
return "ts_aux_" + symbol.name;
|
||||
else
|
||||
return "ts_symbol_" + symbol.name;
|
||||
}
|
||||
|
||||
string character_code(char character) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue