Rename Character -> CharacterSet, CharacterMatch -> CharacterRange
This commit is contained in:
parent
716a4a4259
commit
8cce11a52a
16 changed files with 98 additions and 95 deletions
|
|
@ -11,15 +11,15 @@ namespace tree_sitter {
|
|||
}
|
||||
|
||||
rule_ptr character(char value) {
|
||||
return make_shared<Character>(value);
|
||||
return make_shared<CharacterSet>(value);
|
||||
}
|
||||
|
||||
rule_ptr character(CharacterClass value) {
|
||||
return make_shared<Character>(value);
|
||||
return make_shared<CharacterSet>(value);
|
||||
}
|
||||
|
||||
rule_ptr character(const std::unordered_set<CharacterMatch> &matches, bool is_affirmative) {
|
||||
return make_shared<Character>(matches, is_affirmative);
|
||||
rule_ptr character(const std::unordered_set<CharacterRange> &matches, bool is_affirmative) {
|
||||
return make_shared<CharacterSet>(matches, is_affirmative);
|
||||
}
|
||||
|
||||
rule_ptr choice(const initializer_list<rule_ptr> &rules) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue