Store character rules’ matches in a set, not a vector
This commit is contained in:
parent
5ed5ae7514
commit
716a4a4259
9 changed files with 218 additions and 218 deletions
|
|
@ -18,7 +18,7 @@ namespace tree_sitter {
|
|||
return make_shared<Character>(value);
|
||||
}
|
||||
|
||||
rule_ptr character(const std::vector<CharacterMatch> &matches, bool is_affirmative) {
|
||||
rule_ptr character(const std::unordered_set<CharacterMatch> &matches, bool is_affirmative) {
|
||||
return make_shared<Character>(matches, is_affirmative);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue