mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Add const_format_args!
builtin macro, fix highlighting
This commit is contained in:
parent
12fe0e4ffe
commit
b994469a13
5 changed files with 35 additions and 10 deletions
|
@ -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,
|
||||
|
|
|
@ -211,6 +211,7 @@ pub mod known {
|
|||
// Builtin macros
|
||||
file,
|
||||
column,
|
||||
const_format_args,
|
||||
compile_error,
|
||||
line,
|
||||
module_path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue