Start using the forward move to recover from errors

Some unit tests passing. Corpus tests still failing
This commit is contained in:
Max Brunsfeld 2016-03-02 21:03:55 -08:00
parent b733b0cc81
commit aef7582a2a
8 changed files with 295 additions and 113 deletions

View file

@ -101,7 +101,7 @@ describe("Document", [&]() {
TSNode new_root = ts_document_root_node(doc);
assert_node_string_equals(
new_root,
"(ERROR (UNEXPECTED <EOF>))");
"(UNEXPECTED <EOF>)");
ts_document_set_input_string(doc, "1");
ts_document_parse(doc);