summaryrefslogtreecommitdiff
path: root/test/trans.d/ragel.lm
diff options
context:
space:
mode:
Diffstat (limited to 'test/trans.d/ragel.lm')
-rw-r--r--test/trans.d/ragel.lm8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/trans.d/ragel.lm b/test/trans.d/ragel.lm
index 64d5bb6a..eda96275 100644
--- a/test/trans.d/ragel.lm
+++ b/test/trans.d/ragel.lm
@@ -107,7 +107,11 @@ namespace ragel
literal `@ `> `< `% `$
literal `from `to `eof `lerr `err
- literal `when `inwhen `outwhen `>? `$? `%?
+ literal `when `inwhen `outwhen
+
+ token in_when /'>?'/
+ token all_when /'$?'/
+ token leave_when /'%?'/
literal `:= `|= `= `; `.. `../i `::
@@ -277,7 +281,7 @@ namespace ragel
[`@] :Finish | [`>] :Enter | [`%] :Leave | [`$] :All
def aug_cond
- [`>?] :Start1 | [`$?] :All1 | [`%?] :Leave1
+ [in_when] :Start1 | [all_when] :All1 | [leave_when] :Leave1
| [`> `when] :Start2 | [`$ `when] :All2 | [`% `when] :Leave2
| [`inwhen] :Start3 | [`when] :All3 | [`outwhen] :Leave3