aboutsummaryrefslogtreecommitdiff
path: root/test/line_numbers.g
diff options
context:
space:
mode:
Diffstat (limited to 'test/line_numbers.g')
-rw-r--r--test/line_numbers.g10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/line_numbers.g b/test/line_numbers.g
new file mode 100644
index 0000000..19eee9a
--- /dev/null
+++ b/test/line_numbers.g
@@ -0,0 +1,10 @@
+#
+# The error messages produced by Yapps have a line number.
+# The line number should take the Python code section into account.
+
+# The line number should be 10.
+
+%%
+
+parser error_1:
+ this_is_an_error;