In tests, regenerate parser if its timestamp matches grammar.json
After running the fetch-fixtures script, their timestamps may be equal, but in this situation we *do* want to re-generate the parsers.
This commit is contained in:
parent
17876b6826
commit
6d8f9ebaba
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ const TSLanguage *load_real_language(const string &language_name) {
|
|||
|
||||
int parser_mtime = get_modified_time(parser_filename);
|
||||
|
||||
if (parser_mtime < grammar_mtime || parser_mtime < libcompiler_mtime) {
|
||||
if (parser_mtime <= grammar_mtime || parser_mtime <= libcompiler_mtime) {
|
||||
printf("\n" "Regenerating the %s parser...\n", language_name.c_str());
|
||||
|
||||
string grammar_json = read_file(grammar_filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue