summaryrefslogtreecommitdiff
path: root/test/ambig1.lm
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-12-16 22:46:18 -0500
committerAdrian Thurston <thurston@complang.org>2012-12-16 22:46:18 -0500
commitfdbe023431ad745bc4d96a61cc47b969980049e6 (patch)
tree06938c9deee0637d1090e4d2a6dfcf9c4c56cd56 /test/ambig1.lm
parent7f51e7044b84504d50d3313fb11e546a0ee547cd (diff)
downloadcolm-fdbe023431ad745bc4d96a61cc47b969980049e6.tar.gz
removed lexical region name from test cases
Diffstat (limited to 'test/ambig1.lm')
-rw-r--r--test/ambig1.lm13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/ambig1.lm b/test/ambig1.lm
index 562b155f..5d7ba962 100644
--- a/test/ambig1.lm
+++ b/test/ambig1.lm
@@ -3,7 +3,7 @@
#
# The items in this scanner may have newline in front of them.
-lex start
+lex
{
# Reserved Words.
literal '__LINE__', '__FILE__', '__ENCODING__', 'BEGIN', 'END', 'alias',
@@ -51,7 +51,7 @@ lex start
}
# These items cannot appear at the beginning of a line (except maybe the first).
-lex expr_cont_ops
+lex
{
ignore /[\t ]+/
@@ -69,7 +69,8 @@ lex expr_cont_ops
literal '!=', '==', '==='
literal '..', '...'
}
-lex terms
+
+lex
{
ignore /[\t ]+/
ignore /'#' [^\n]*/
@@ -78,19 +79,19 @@ lex terms
}
-lex dstring_contents
+lex
{
token dstring_contents /[^"]+/
token tDSTRING_END /'"'/
}
-lex sstring_contents
+lex
{
token sstring_contents /[^']+/
token tSSTRING_END /'\''/
}
-lex xstring_contents
+lex
{
token xstring_contents /[^`]+/
token tXSTRING_END /'`'/