aboutsummaryrefslogtreecommitdiff
path: root/runtime/JavaScript/tests/functional/t040bug80.g
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/JavaScript/tests/functional/t040bug80.g')
-rwxr-xr-xruntime/JavaScript/tests/functional/t040bug80.g13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/JavaScript/tests/functional/t040bug80.g b/runtime/JavaScript/tests/functional/t040bug80.g
new file mode 100755
index 0000000..f43987c
--- /dev/null
+++ b/runtime/JavaScript/tests/functional/t040bug80.g
@@ -0,0 +1,13 @@
+lexer grammar t040bug80;
+options {
+ language = JavaScript;
+}
+
+ID_LIKE
+ : 'defined'
+ | {false}? Identifier
+ | Identifier
+ ;
+
+fragment
+Identifier: 'a'..'z'+ ; // with just 'a', output compiles