Skip to content

Commit

Permalink
Set zero-width whether we succeed or fail
Browse files Browse the repository at this point in the history
git-svn-id: https://piraha-peg.googlecode.com/svn/trunk@24 1a70d7c6-ffe7-ef14-4583-3269c1a2e543
  • Loading branch information
steven.brandt committed Oct 5, 2010
1 parent 7e863e3 commit 7aaea3f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/edu/lsu/cct/piraha/NegLookAhead.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ public NegLookAhead(Pattern pattern) {
public boolean match(Matcher m) {
int pos = m.getTextPos();
boolean b = !Matcher.matchAll(pattern, m);
if(b) {
m.setTextPos(pos);
}
m.setTextPos(pos);
return b;
}

Expand Down

0 comments on commit 7aaea3f

Please sign in to comment.