eric-milles commented on PR #3070:
URL: https://github.com/apache/groovy/pull/3070#issuecomment-6532118905

   I was able to patch `LexerATNSimulator` with just this:
   
   ```java
        private void consume(@NotNull CharStream input, int curChar) {
                if ( curChar=='\n' /*add*/|| (curChar=='\r' && 
input.LA(2)!='\n')/*end*/) {
                        line++;
                        charPositionInLine=0;
                } else {
                        charPositionInLine++;
                }
                input.consume();
        }
   ```


-- 
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]

Reply via email to