Allow Character rules to handle arbitrary character sets
This commit is contained in:
parent
bc1d115ee2
commit
7f62e752be
16 changed files with 322 additions and 309 deletions
|
|
@ -14,9 +14,13 @@ namespace tree_sitter {
|
|||
return make_shared<Character>(value);
|
||||
}
|
||||
|
||||
rule_ptr character(CharClass value) {
|
||||
rule_ptr character(CharacterClass value) {
|
||||
return make_shared<Character>(value);
|
||||
}
|
||||
|
||||
rule_ptr character(const std::vector<CharacterMatch> &matches, bool is_affirmative) {
|
||||
return make_shared<Character>(matches, is_affirmative);
|
||||
}
|
||||
|
||||
rule_ptr choice(const initializer_list<rule_ptr> &rules) {
|
||||
rule_ptr result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue