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}`
223
+
# Deliberately doesn't print `$token`, which is empty.
220
224
parse_expected_semi_found_keyword_str = expected `;`, found keyword `{$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}`
@@ -815,7 +820,9 @@ parse_unexpected_token_after_not_default = use `!` to perform logical negation o
815
820
parse_unexpected_token_after_not_logical = use `!` to perform logical negation
816
821
parse_unexpected_token_after_struct_name = expected `where`, `{"{"}`, `(`, or `;` after struct name
817
822
parse_unexpected_token_after_struct_name_found_doc_comment = expected `where`, `{"{"}`, `(`, or `;` after struct name, found doc comment `{$token}`
823
+
# Deliberately doesn't print `$token`, which is empty.
818
824
parse_unexpected_token_after_struct_name_found_keyword = expected `where`, `{"{"}`, `(`, or `;` after struct name, found keyword `{$token}`
825
+
parse_unexpected_token_after_struct_name_found_metavar = expected `where`, `{"{"}`, `(`, or `;` after struct name, found metavar
819
826
parse_unexpected_token_after_struct_name_found_other = expected `where`, `{"{"}`, `(`, or `;` after struct name, found `{$token}`
820
827
821
828
parse_unexpected_token_after_struct_name_found_reserved_identifier = expected `where`, `{"{"}`, `(`, or `;` after struct name, found reserved identifier `{$token}`
0 commit comments