File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler+runtime/src/cpp/jank/read Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments