summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2019-11-28 14:05:59 -0800
committerAdrian Thurston <thurston@colm.net>2019-11-28 14:05:59 -0800
commit60606ca9d6c97900b8df0c2d10796e6f081d1973 (patch)
tree2409dd3c8081ec2e2c91c3852b5859466f4c3973 /test
parent76bef9c90354a87bbf276f648f486d826d1dad39 (diff)
downloadcolm-60606ca9d6c97900b8df0c2d10796e6f081d1973.tar.gz
revert "exclude ? from position 2+ of literal token"
This reverts commit bd8de42f05975c262a6ecd156d8a6fbc50aa0de5.
Diffstat (limited to 'test')
-rw-r--r--test/rlparse.d/ragel.lm8
-rw-r--r--test/trans.d/ragel.lm8
2 files changed, 4 insertions, 12 deletions
diff --git a/test/rlparse.d/ragel.lm b/test/rlparse.d/ragel.lm
index eda96275..64d5bb6a 100644
--- a/test/rlparse.d/ragel.lm
+++ b/test/rlparse.d/ragel.lm
@@ -107,11 +107,7 @@ namespace ragel
literal `@ `> `< `% `$
literal `from `to `eof `lerr `err
- literal `when `inwhen `outwhen
-
- token in_when /'>?'/
- token all_when /'$?'/
- token leave_when /'%?'/
+ literal `when `inwhen `outwhen `>? `$? `%?
literal `:= `|= `= `; `.. `../i `::
@@ -281,7 +277,7 @@ namespace ragel
[`@] :Finish | [`>] :Enter | [`%] :Leave | [`$] :All
def aug_cond
- [in_when] :Start1 | [all_when] :All1 | [leave_when] :Leave1
+ [`>?] :Start1 | [`$?] :All1 | [`%?] :Leave1
| [`> `when] :Start2 | [`$ `when] :All2 | [`% `when] :Leave2
| [`inwhen] :Start3 | [`when] :All3 | [`outwhen] :Leave3
diff --git a/test/trans.d/ragel.lm b/test/trans.d/ragel.lm
index eda96275..64d5bb6a 100644
--- a/test/trans.d/ragel.lm
+++ b/test/trans.d/ragel.lm
@@ -107,11 +107,7 @@ namespace ragel
literal `@ `> `< `% `$
literal `from `to `eof `lerr `err
- literal `when `inwhen `outwhen
-
- token in_when /'>?'/
- token all_when /'$?'/
- token leave_when /'%?'/
+ literal `when `inwhen `outwhen `>? `$? `%?
literal `:= `|= `= `; `.. `../i `::
@@ -281,7 +277,7 @@ namespace ragel
[`@] :Finish | [`>] :Enter | [`%] :Leave | [`$] :All
def aug_cond
- [in_when] :Start1 | [all_when] :All1 | [leave_when] :Leave1
+ [`>?] :Start1 | [`$?] :All1 | [`%?] :Leave1
| [`> `when] :Start2 | [`$ `when] :All2 | [`% `when] :Leave2
| [`inwhen] :Start3 | [`when] :All3 | [`outwhen] :Leave3