We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94bf890 commit 66f92f0Copy full SHA for 66f92f0
lexer/src/main/java/com/compilerprogramming/ezlang/lexer/Lexer.java
@@ -177,7 +177,7 @@ public Token scan() {
177
178
private Token scanOthers() {
179
if (Character.isDigit(input[position])) return parseNumber();
180
- else if (isIdentifierLetter(input[position])) return parseIdentifier();
+ else if (isIdentifierStart(input[position])) return parseIdentifier();
181
throw new CompilerException("Unexpected character " + input[position] + " at line " + lineNumber);
182
}
183
0 commit comments