summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ragel/ragel.rl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ragel/ragel.rl b/src/ragel/ragel.rl
index 03c6eb3..7e51030 100644
--- a/src/ragel/ragel.rl
+++ b/src/ragel/ragel.rl
@@ -21,8 +21,8 @@
word = print | valid*;
until_err = (any when { fpc != *error })*;
- print_err := (until_err <: word >red %reset <: (print - '\n')*) $char >*lead %!end %/end;
- print_mark := (until_err $lead <: word >red $mark) >*lead %!end %/end;
+ print_err := (until_err <: (word - '\n') >red %reset <: (print - '\n')*) $char >*lead %!end %/end;
+ print_mark := (until_err $lead <: (any | word) >red $mark) >*lead %!end %/end;
}%%
static void