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
{{ message }}
This repository was archived by the owner on May 28, 2025. It is now read-only.
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}`
220
223
parse_expected_semi_found_keyword_str = expected `;`, found keyword `{$token}`
224
+
# This one deliberately doesn't print a token.
225
+
parse_expected_semi_found_metavar_str = expected `;`, found metavariable
221
226
parse_expected_semi_found_reserved_identifier_str = expected `;`, found reserved identifier `{$token}`
222
227
parse_expected_semi_found_reserved_keyword_str = expected `;`, found reserved keyword `{$token}`
223
228
parse_expected_semi_found_str = expected `;`, found `{$token}`
@@ -845,6 +850,8 @@ parse_unexpected_token_after_not_logical = use `!` to perform logical negation
845
850
parse_unexpected_token_after_struct_name = expected `where`, `{"{"}`, `(`, or `;` after struct name
846
851
parse_unexpected_token_after_struct_name_found_doc_comment = expected `where`, `{"{"}`, `(`, or `;` after struct name, found doc comment `{$token}`
847
852
parse_unexpected_token_after_struct_name_found_keyword = expected `where`, `{"{"}`, `(`, or `;` after struct name, found keyword `{$token}`
853
+
# This one deliberately doesn't print a token.
854
+
parse_unexpected_token_after_struct_name_found_metavar = expected `where`, `{"{"}`, `(`, or `;` after struct name, found metavar
848
855
parse_unexpected_token_after_struct_name_found_other = expected `where`, `{"{"}`, `(`, or `;` after struct name, found `{$token}`
849
856
850
857
parse_unexpected_token_after_struct_name_found_reserved_identifier = expected `where`, `{"{"}`, `(`, or `;` after struct name, found reserved identifier `{$token}`
0 commit comments