antlr/antlr3 — pull request #33 by Zannick (2012-08-09 04:46:55+00:00)
Title: Fix Python handling of syntactic predicates

This fixes issue 29 and one other issue I ran into that the fix itself caused to appear: the generated code in a synpred_fragment rule would generate invalid backtracking code. Since backtracking is unneeded in the synpred_fragment anyway (since the state is rewound by the synpred rule), I disabled it.

Test case for this is https://gist.github.com/3301036, which is based off of mkbosmans's test case in issue 29 (removed backtracking=true and added a syntactic predicate).