Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(GRAM): Recognize assert!, assert_eq! and assert_ne! macros
This improves navigation and code highlighting inside the following macros: assert!(a == b); debug_assert!(a == b); assert_eq!(a, b); debug_assert_eq!(a, b); assert_ne!(a, b); debug_assert_ne!(a, b); For assert! and debug_assert! format arguments are supported: assert!(a == b, "Some text"); assert!(a == b, "Text {} {} syntax", "with", "format"); Different parenthesis are supported: assert!(a == b); assert![a == b]; assert!{a == b}; Fixes intellij-rust#636 assert_ne! is stable since Rust 1.12. rust-lang/rust#35074
- Loading branch information