Expand regex/string rules as part of grammar preparation
This makes it possible to report errors in regex parsing
This commit is contained in:
parent
5245bc01fe
commit
649f200831
26 changed files with 883 additions and 651 deletions
|
|
@ -113,8 +113,7 @@ namespace tree_sitter {
|
|||
} else if (symbol.is_token() && symbol.is_auxiliary()) {
|
||||
return token_description(grammar_for_symbol(symbol).rule(symbol));
|
||||
} else {
|
||||
string name = grammar_for_symbol(symbol).rule_name(symbol);
|
||||
return name;
|
||||
return grammar_for_symbol(symbol).rule_name(symbol);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue