aboutsummaryrefslogtreecommitdiff
path: root/test-suite/misc/quotation_token/src
diff options
context:
space:
mode:
authorEnrico Tassi2019-06-14 11:38:28 +0200
committerEnrico Tassi2019-06-18 16:08:41 +0200
commitffc3923083597300b23a99fdc55993431cf5fc57 (patch)
treedcb82f3f78cd7dd86db00747eda3eee07f0e6c90 /test-suite/misc/quotation_token/src
parent2e13fffea256312cd42a1bea221ae24ffda0fa28 (diff)
[lexer] correctly update line number when lexing QUOTATION (fix #10350)
Diffstat (limited to 'test-suite/misc/quotation_token/src')
-rw-r--r--test-suite/misc/quotation_token/src/quotation.mlg12
-rw-r--r--test-suite/misc/quotation_token/src/quotation_plugin.mlpack1
2 files changed, 13 insertions, 0 deletions
diff --git a/test-suite/misc/quotation_token/src/quotation.mlg b/test-suite/misc/quotation_token/src/quotation.mlg
new file mode 100644
index 0000000000..961b170a0d
--- /dev/null
+++ b/test-suite/misc/quotation_token/src/quotation.mlg
@@ -0,0 +1,12 @@
+{
+open Pcoq.Constr
+}
+GRAMMAR EXTEND Gram
+ GLOBAL: operconstr;
+
+ operconstr: LEVEL "0"
+ [ [ s = QUOTATION "foobar:" ->
+ {
+ CAst.make ~loc Constrexpr.(CSort Glob_term.(UNamed [GProp,0])) } ] ]
+ ;
+END
diff --git a/test-suite/misc/quotation_token/src/quotation_plugin.mlpack b/test-suite/misc/quotation_token/src/quotation_plugin.mlpack
new file mode 100644
index 0000000000..b372b94b30
--- /dev/null
+++ b/test-suite/misc/quotation_token/src/quotation_plugin.mlpack
@@ -0,0 +1 @@
+Quotation