Skip to content

Commit cd8a4c9

Browse files
Address review comments
1 parent 4ede9eb commit cd8a4c9

File tree

1 file changed

+3
-2
lines changed
  • compiler+runtime/src/cpp/jank/read

1 file changed

+3
-2
lines changed

compiler+runtime/src/cpp/jank/read/lex.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ namespace jank::read::lex
12101210
if(after_dd_colon.is_err())
12111211
{
12121212
return error::lex_invalid_keyword(
1213-
"A auto-resolved keyword must contain a valid symbol after the '::'.",
1213+
"An auto-resolved keyword must contain a valid symbol after the '::'.",
12141214
{ token_start, pos });
12151215
}
12161216

@@ -1230,7 +1230,8 @@ namespace jank::read::lex
12301230
pos += result.expect_ok().len;
12311231
}
12321232
return error::lex_invalid_keyword(
1233-
util::format("An auto-resolved keyword may not start with '{}'.", ch),
1233+
ch == '/' ? "An auto-resolved keyword may not specify it's own namespace."
1234+
: "An unexpected end to an auto-resolved keyword.",
12341235
{ token_start, pos });
12351236
}
12361237
}

0 commit comments

Comments
 (0)