summaryrefslogtreecommitdiff
path: root/test/order1.lm
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2012-12-18 20:56:10 -0500
committerAdrian Thurston <thurston@complang.org>2012-12-18 20:56:10 -0500
commit82466231c6401bf490726f8a469b7139c6a37242 (patch)
tree0f5dc8478a0fd0ab7c651c12c5f8d02a4302821d /test/order1.lm
parent5bb34e270b42ab19d5839a551fae0f42ea688f6b (diff)
downloadcolm-82466231c6401bf490726f8a469b7139c6a37242.tar.gz
updated test for lex scope syntax
Diffstat (limited to 'test/order1.lm')
-rw-r--r--test/order1.lm6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/order1.lm b/test/order1.lm
index e965bdf2..e7260118 100644
--- a/test/order1.lm
+++ b/test/order1.lm
@@ -1,6 +1,5 @@
lex
-{
token c_single_lit /( 'L'? "'" ( [^'\\\n] | '\\' any )* "'" )/
token c_double_lit /( 'L'? '"' ( [^"\\\n] | '\\' any )* '"' )/
@@ -15,7 +14,7 @@ lex
token comm_c /( '/*' (any | '\n')* :>> '*/' )/
token comm_cxx /( '//' any* :> '\n' )/
token ws /( any - 33..126 )+/
-}
+end
def c_token
[c_single_lit]
@@ -37,7 +36,6 @@ def c
literal '%%'
lex
-{
literal '{', '}'
literal 'protocol', 'client', 'server', 'port', 'by', 'tcp', 'udp'
token id /[A-Za-z_][A-Za-z_0-9]*/
@@ -45,7 +43,7 @@ lex
ignore /'/*' any* :>> '*/'/
ignore /[ \t\r\n]+/
-}
+end
def tcp_by_port
['tcp' 'by' 'port']