Skip to content

Commit 2f0a57c

Browse files
committed
Fix lexer error text
1 parent d1bc3df commit 2f0a57c

File tree

1 file changed

+2
-2
lines changed
  • ownlang-parser/src/main/java/com/annimon/ownlang/parser

1 file changed

+2
-2
lines changed

ownlang-parser/src/main/java/com/annimon/ownlang/parser/Lexer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ private void tokenizeExtendedWord() {
303303
char current = peek(0);
304304
while (current != '`') {
305305
if ("\r\n\0".indexOf(current) != -1) {
306-
throw error("Reached end of line while parsing extended word.", startPos, markEndPos());
306+
throw error("Reached end of line while parsing extended word", startPos, markEndPos());
307307
}
308308
buffer.append(current);
309309
current = next();
@@ -321,7 +321,7 @@ private void tokenizeText() {
321321
if (current == '\\') {
322322
current = next();
323323
if ("\r\n\0".indexOf(current) != -1) {
324-
throw error("Reached end of line while parsing extended word.", startPos, markEndPos());
324+
throw error("Reached end of line while parsing text", startPos, markEndPos());
325325
}
326326

327327
int idx = "\\0\"bfnrt".indexOf(current);

0 commit comments

Comments
 (0)