highlight formatting syntax in the macro families `format`, `write`, `print`, …
syntax and macros are explained here.
format! // described above
write! // first argument is a &mut io::Write, the destination
writeln! // same as write but appends a newline
print! // the format string is printed to the standard output
println! // same as print but appends a newline
format_args! // described below.
we could match all macro calls starting with format…, write…, and print…, so people can define their own, and maybe also the stuff from the log crate, i.e. log!, error!, warn!, debug!, info!, trace!
Macros should already be matched. There are rules for matching built-in, core, std and log macros as well as generic macro invocation (rust.cson#L268)
please reopen after you read what this is about.
you didn’t read the title.
Oops sorry, I didn't realize that you were talking about the format string, not about the macro invocation.
yeah :smile:
thanks!