Don't include trailing ubiquitous tokens as children when reducing

This commit is contained in:
Max Brunsfeld 2015-12-02 07:53:15 -08:00
parent 64e56f5acc
commit 863cabc827
13 changed files with 286 additions and 149 deletions

View file

@ -396,7 +396,8 @@ describe("Parser", [&]() {
});
});
it("updates the document's parse-count", [&]() {
it("updates the document's parse count", [&]() {
ts_document_set_language(doc, ts_language_javascript());
AssertThat(ts_document_parse_count(doc), Equals<size_t>(0));
set_text("{ x: (b.c) };");