diff options
Diffstat (limited to 'test/undofrag3.lm')
-rw-r--r-- | test/undofrag3.lm | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/undofrag3.lm b/test/undofrag3.lm index b8ca8fb7..ed96cba6 100644 --- a/test/undofrag3.lm +++ b/test/undofrag3.lm @@ -3,7 +3,8 @@ context undo lex ignore /( ' ' | '\t' )+/ - literal '*', '(', ')', '^', ';', '\n', '.' + literal `* `( `) `^ `; `. + token NL /'\n'/ token id /[a-zA-Z_]+/ end @@ -11,7 +12,7 @@ context undo def out_item [id] - | ['(' item* ')'] + | [`( item* `)] def out [out_item*] @@ -21,7 +22,7 @@ context undo { send Out [r1] } - | ['(' item* ')'] + | [`( item* `)] { send Out ['('] send Out [r2] @@ -38,8 +39,8 @@ context undo } def start - [A1 item* F '.' '^'] - | [A2 item* F '.' ';' '\n'] + [A1 item* F `. `^] + | [A2 item* F `. `; NL] end # undo |