mirror of
https://github.com/apple/pkl.git
synced 2026-09-13 13:21:47 +02:00
Fix block comment at EOF without trailing newline (#1828)
This commit is contained in:
@@ -625,11 +625,11 @@ public final class Lexer {
|
||||
while (lookahead != EOF) {
|
||||
if (prev == '*' && lookahead == '/') {
|
||||
nextChar();
|
||||
break;
|
||||
return;
|
||||
}
|
||||
prev = nextChar();
|
||||
}
|
||||
if (lookahead == EOF) throw unexpectedEndOfFile();
|
||||
throw unexpectedEndOfFile();
|
||||
}
|
||||
|
||||
private void lexHexNumber() {
|
||||
|
||||
Reference in New Issue
Block a user