eric-milles commented on PR #3070:
URL: https://github.com/apache/groovy/pull/3070#issuecomment-6531977529
Was a fix within antlr4 considered? Any concerns over the amount of code
from antlr that must be duplicated in order to address this? The optimization
for consume within a recent version made this more difficult to fix. I was
able to repair on me.sunlan:antlr4:4.13.2.15 with a small consume override:
```java
private static class PositionAdjustingLexerATNSimulator extends
LexerATNSimulator {
//...
// add
@Override
public void consume(CharStream input) {
if (input.LA(1) == '\r' && input.LA(2) != '\n') {
this.line += 1; this.charPositionInLine = -1;
}
super.consume(input);
}
// end
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]