Store character rules’ matches in a set, not a vector

This commit is contained in:
Max Brunsfeld 2014-01-31 18:56:02 -08:00
parent 5ed5ae7514
commit 716a4a4259
9 changed files with 218 additions and 218 deletions

View file

@ -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);
}