Skip to content

Commit

Permalink
Changed text action from @{} to %{}.
Browse files Browse the repository at this point in the history
This ensures the action is only run at the end, opposed to any non final state.
  • Loading branch information
Yorick Peterse committed Sep 23, 2014
1 parent 4818176 commit 00579ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/ragel/base_lexer.rl
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
};

# Text followed by a special tag, such as "foo<!--"
allowed_text @{ mark = p; } terminate_text => {
allowed_text %{ mark = p; } terminate_text => {
callback("on_text", data, encoding, ts, mark);

p = mark - 1;
Expand Down

0 comments on commit 00579ea

Please sign in to comment.