Skip to content

Commit

Permalink
#57: Further work to support Intellij plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jaccomoc committed Dec 18, 2024
1 parent 426a8bc commit 990e9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/jactl/Tokeniser.java
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ private Token parseIdentifier(Token token, int remaining) {
// Search for first char that is not a valid identifier char
int i = 1;
int digitCount = 0;
boolean isDigits = startChar == '$' && isDigit(charAt(1), 10);
boolean isDigits = startChar == '$' && remaining > 1 && isDigit(charAt(1), 10);
for (; i < remaining && (isDigits ? isDigit(charAt(i), 10) : isIdentifierPart(charAt(i))); i++) {
digitCount += isDigit(charAt(i), 10) ? 1 : 0;
}
Expand Down

0 comments on commit 990e9d8

Please sign in to comment.