In TransitionMap constructor, use initializer lists for pairs
This commit is contained in:
parent
2102d542e1
commit
80acabb03e
4 changed files with 33 additions and 42 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue