Fix query analysis error for rules w/ required hidden tokens

Refs tree-sitter/node-tree-sitter#69
This commit is contained in:
Max Brunsfeld 2020-10-12 09:45:50 -07:00
parent 8a5d820822
commit 84433494a5

View file

@ -1167,8 +1167,6 @@ static bool ts_query__analyze_patterns(TSQuery *self, unsigned *error_offset) {
array_insert_sorted_with(&deeper_states, analysis_state__compare, next_state);
continue;
}
} else {
continue;
}
// Pop from the stack when this state reached the end of its current syntax node.