summaryrefslogtreecommitdiff
path: root/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java
diff options
context:
space:
mode:
authorAndrius Merkys <andrius.merkys@gmail.com>2018-11-23 04:52:11 -0500
committerAndrius Merkys <andrius.merkys@gmail.com>2018-11-23 04:52:11 -0500
commit4e73d28e5eafc9df09372c658cf657c009ad8bb6 (patch)
treeace1e7b96118aaf784ceb864fc2fc11ec07276e8 /runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java
parent521727db96b4113984ce27a9d4a70364712be791 (diff)
parent7b19e9be5be41c69c451b63c526bee059881f9b1 (diff)
Update upstream source from tag 'upstream/4.7.1'
Update to upstream version '4.7.1' with Debian dir ce4ca6f5cd56bdaf0aa5c0e59c7038cd8523bb11
Diffstat (limited to 'runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java')
-rw-r--r--runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java b/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java
index 81f7f64..ec74ce5 100644
--- a/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java
+++ b/runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2016 The ANTLR Project. All rights reserved.
+ * Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
@@ -372,7 +372,7 @@ public class LexerATNSimulator extends ATNSimulator {
protected ATNState getReachableTarget(Transition trans, int t) {
- if (trans.matches(t, Character.MIN_VALUE, Character.MAX_VALUE)) {
+ if (trans.matches(t, Lexer.MIN_CHAR_VALUE, Lexer.MAX_CHAR_VALUE)) {
return trans.target;
}
@@ -544,7 +544,7 @@ public class LexerATNSimulator extends ATNSimulator {
case Transition.RANGE:
case Transition.SET:
if (treatEofAsEpsilon) {
- if (t.matches(CharStream.EOF, Character.MIN_VALUE, Character.MAX_VALUE)) {
+ if (t.matches(CharStream.EOF, Lexer.MIN_CHAR_VALUE, Lexer.MAX_CHAR_VALUE)) {
c = new LexerATNConfig(config, t.target);
break;
}
@@ -738,7 +738,8 @@ public class LexerATNSimulator extends ATNSimulator {
if ( curChar=='\n' ) {
line++;
charPositionInLine=0;
- } else {
+ }
+ else {
charPositionInLine++;
}
input.consume();