Add const_format_args! builtin macro, fix highlighting

This commit is contained in:
Jonas Schievink 2021-09-30 17:16:39 +02:00
parent 12fe0e4ffe
commit b994469a13
5 changed files with 35 additions and 10 deletions

View file

@ -103,6 +103,7 @@ register_builtin! {
(assert, Assert) => assert_expand,
(stringify, Stringify) => stringify_expand,
(format_args, FormatArgs) => format_args_expand,
(const_format_args, ConstFormatArgs) => format_args_expand,
// format_args_nl only differs in that it adds a newline in the end,
// so we use the same stub expansion for now
(format_args_nl, FormatArgsNl) => format_args_expand,

View file

@ -211,6 +211,7 @@ pub mod known {
// Builtin macros
file,
column,
const_format_args,
compile_error,
line,
module_path,