Skip to content

Commit 66f92f0

Browse files
bug fix
1 parent 94bf890 commit 66f92f0

File tree

1 file changed

+1
-1
lines changed
  • lexer/src/main/java/com/compilerprogramming/ezlang/lexer

1 file changed

+1
-1
lines changed

lexer/src/main/java/com/compilerprogramming/ezlang/lexer/Lexer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public Token scan() {
177177

178178
private Token scanOthers() {
179179
if (Character.isDigit(input[position])) return parseNumber();
180-
else if (isIdentifierLetter(input[position])) return parseIdentifier();
180+
else if (isIdentifierStart(input[position])) return parseIdentifier();
181181
throw new CompilerException("Unexpected character " + input[position] + " at line " + lineNumber);
182182
}
183183

0 commit comments

Comments
 (0)