In TransitionMap constructor, use initializer lists for pairs

This commit is contained in:
Max Brunsfeld 2013-11-14 21:33:36 -08:00
parent 2102d542e1
commit 80acabb03e
4 changed files with 33 additions and 42 deletions

View file

@ -11,7 +11,7 @@ namespace tree_sitter {
}
TransitionMap<Rule> Symbol::transitions() const {
return TransitionMap<Rule>({ sym(name) }, { blank() });
return TransitionMap<Rule>({{ sym(name) , blank() }});
}
bool Symbol::operator==(const Rule &rule) const {