Skip to content

highlight interpolation in arguments to more macros #228

Open
@tspiteri

Description

@tspiteri

The new argument interpolation highlighting from #220 handles the macros eprint!, eprintln!, format!, print!, println!, write! and writeln!.

It can be extended to also handle other macros that take format strings. I'm including a list below (I hope I didn't miss any).

  1. First argument can be format string (like eprint!, eprintln!, format!, print!, println!)
    • format_args!
    • panic!
    • unreachable!
    • unimplemented! (not in 1.19.0, but in the beta that is to become 1.20.0)
  2. Second argument can be format string (like write!, writeln!):
    • assert!
    • debug_assert!
  3. Third argument can be format string:
    • assert_eq!
    • assert_ne!
    • debug_assert_eq!
    • debug_assert_ne!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions