summary refs log tree commit diff stats
path: root/tests/compiler/tgrammar.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-10-06 22:36:32 +0800
committerGitHub <noreply@github.com>2022-10-06 16:36:32 +0200
commite323b91a32ecff1473d9330605d85ad5f3684e99 (patch)
treec76ca63d3ce7590a4a95445abf33b82961c506ac /tests/compiler/tgrammar.nim
parent114acff98d64781b1fdfe951c6f543e2fec60000 (diff)
downloadNim-e323b91a32ecff1473d9330605d85ad5f3684e99.tar.gz
correct grammar (ref #20199) and add check for grammar.txt (#20494)
* correct grammar; ref #20199

* add check for keeping grammar.txt up-to-date

* add nimTestGrammar
Diffstat (limited to 'tests/compiler/tgrammar.nim')
-rw-r--r--tests/compiler/tgrammar.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/compiler/tgrammar.nim b/tests/compiler/tgrammar.nim
new file mode 100644
index 000000000..772d0f0cc
--- /dev/null
+++ b/tests/compiler/tgrammar.nim
@@ -0,0 +1,7 @@
+discard """
+  matrix: "-d:nimTestGrammar"
+"""
+
+import compiler/parser
+
+checkSameGrammar()