Make ts_compile_grammar take an optional log file, start logging to it
This commit is contained in:
parent
69d8c6f5e6
commit
6fca8f2f4d
13 changed files with 164 additions and 25 deletions
|
|
@ -26,7 +26,7 @@ describe("Language", []() {
|
|||
"value": "b"
|
||||
}
|
||||
}
|
||||
})JSON");
|
||||
})JSON", nullptr);
|
||||
|
||||
TSParser *parser = ts_parser_new();
|
||||
const TSLanguage *language = load_test_language("aliased_rules", compile_result);
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ string grammar_with_aliases_and_extras = R"JSON({
|
|||
|
||||
const TSLanguage *language_with_aliases_and_extras = load_test_language(
|
||||
"aliases_and_extras",
|
||||
ts_compile_grammar(grammar_with_aliases_and_extras.c_str())
|
||||
ts_compile_grammar(grammar_with_aliases_and_extras.c_str(), nullptr)
|
||||
);
|
||||
|
||||
describe("Node", [&]() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue