You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pasted metavariables are wrapped in invisible delimiters, which
pretty-print as empty strings, and changing that can break some proc
macros. But error messages saying "expected identifer, found ``" are
bad. So this commit adds support for metavariables in `TokenDescription`
so they print as "metavariable" in error messages, instead of "``".
It's not used meaningfully yet, but will be needed to get rid of
interpolated tokens.
parse_expected_semi_found_doc_comment_str = expected `;`, found doc comment `{$token}`
227
230
parse_expected_semi_found_keyword_str = expected `;`, found keyword `{$token}`
231
+
# This one deliberately doesn't print a token.
232
+
parse_expected_semi_found_metavar_str = expected `;`, found metavariable
228
233
parse_expected_semi_found_reserved_identifier_str = expected `;`, found reserved identifier `{$token}`
229
234
parse_expected_semi_found_reserved_keyword_str = expected `;`, found reserved keyword `{$token}`
230
235
parse_expected_semi_found_str = expected `;`, found `{$token}`
@@ -862,6 +867,8 @@ parse_unexpected_token_after_not_logical = use `!` to perform logical negation
862
867
parse_unexpected_token_after_struct_name = expected `where`, `{"{"}`, `(`, or `;` after struct name
863
868
parse_unexpected_token_after_struct_name_found_doc_comment = expected `where`, `{"{"}`, `(`, or `;` after struct name, found doc comment `{$token}`
864
869
parse_unexpected_token_after_struct_name_found_keyword = expected `where`, `{"{"}`, `(`, or `;` after struct name, found keyword `{$token}`
870
+
# This one deliberately doesn't print a token.
871
+
parse_unexpected_token_after_struct_name_found_metavar = expected `where`, `{"{"}`, `(`, or `;` after struct name, found metavar
865
872
parse_unexpected_token_after_struct_name_found_other = expected `where`, `{"{"}`, `(`, or `;` after struct name, found `{$token}`
866
873
867
874
parse_unexpected_token_after_struct_name_found_reserved_identifier = expected `where`, `{"{"}`, `(`, or `;` after struct name, found reserved identifier `{$token}`
0 commit comments