Allow Character rules to handle arbitrary character sets

This commit is contained in:
Max Brunsfeld 2014-01-29 19:18:21 -08:00
parent bc1d115ee2
commit 7f62e752be
16 changed files with 322 additions and 309 deletions

View file

@ -49,7 +49,7 @@ namespace tree_sitter {
rules::Character rule = *transition.first;
LexItemSet item_set = *transition.second;
size_t new_state_index = add_lex_state(item_set);
lex_table.add_action(state_index, rule.value, LexAction::Advance(new_state_index));
lex_table.add_action(state_index, rule, LexAction::Advance(new_state_index));
}
}