clang-format

This commit is contained in:
Max Brunsfeld 2016-06-22 14:11:08 -07:00
parent 3ceb3a1eb2
commit 57f669dfda
3 changed files with 9 additions and 7 deletions

View file

@ -493,7 +493,8 @@ static Reduction ts_parser__reduce(TSParser *self, StackVersion version,
parent->extra = true;
new_state = state;
} else {
const TSParseAction *action = ts_language_last_action(language, state, symbol);
const TSParseAction *action =
ts_language_last_action(language, state, symbol);
assert(action);
assert(action->type == TSParseActionTypeShift ||
action->type == TSParseActionTypeRecover);
@ -605,7 +606,8 @@ static StackIterateAction ts_parser__error_repair_callback(
const TSParseAction *repair_symbol_action =
ts_language_last_action(self->language, state, repair->symbol);
if (!repair_symbol_action || repair_symbol_action->type != TSParseActionTypeShift)
if (!repair_symbol_action ||
repair_symbol_action->type != TSParseActionTypeShift)
continue;
TSStateId state_after_repair = repair_symbol_action->to_state;