fix in msg doAssert() to update grammar.txt (#21179)

This commit is contained in:
rockcavera 2022-12-27 01:13:05 -03:00 • committed by GitHub
commit 9b4516fbcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ when isMainModule or defined(nimTestGrammar):
proc checkSameGrammar*() = proc checkSameGrammar*() =
doAssert sameFileContent(newGrammarText, "doc/grammar.txt"), doAssert sameFileContent(newGrammarText, "doc/grammar.txt"),
"execute 'nim r compiler.nim' to keep grammar.txt up-to-date" "execute 'nim r compiler/parser.nim' to keep grammar.txt up-to-date"
else: else:
writeGrammarFile("doc/grammar.txt") writeGrammarFile("doc/grammar.txt")
import ".." / tools / grammar_nanny import ".." / tools / grammar_nanny