Permalink
Browse files

. comment

  • Loading branch information...
1 parent 799b375 commit affbe7e66bddb1ac4b4b5f52a0b310f7b3988cbb @kschiess committed Sep 17, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/parslet/atoms/repetition.rb
@@ -53,6 +53,9 @@ def try(source, context, postfix)
# Postfix is true, that means that we're inside the part of the parser that
# should consume the input completely. Repetition failing here means
# probably that we didn't.
+ # We have a special clause to create an error here because otherwise
+ # break_on would get thrown away. It turns out, that contains very
+ # interesting information in a lot of cases.
return context.err(
self,
source,

0 comments on commit affbe7e

Please sign in to comment.