We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6d3c30 commit 29a80a7Copy full SHA for 29a80a7
src/com/annimon/ownlang/parser/Lexer.java
@@ -44,7 +44,7 @@ public final class Lexer {
44
OPERATORS.put("!=", TokenType.EXCLEQ);
45
OPERATORS.put("<=", TokenType.LTEQ);
46
OPERATORS.put(">=", TokenType.GTEQ);
47
-
+
48
OPERATORS.put("&&", TokenType.AMPAMP);
49
OPERATORS.put("||", TokenType.BARBAR);
50
@@ -73,7 +73,7 @@ public List<Token> tokenize() {
73
while (pos < length) {
74
final char current = peek(0);
75
if (Character.isDigit(current)) tokenizeNumber();
76
- else if (Character.isLetter(current)) tokenizeWord();
+ else if (Character.isJavaIdentifierStart(current)) tokenizeWord();
77
else if (current == '"') tokenizeText();
78
else if (current == '#') {
79
next();
0 commit comments