From 06f89e5f3a00d91e84963745af989f1e9a906bb4 Mon Sep 17 00:00:00 2001 From: Leander Tentrup Date: Sun, 14 Jun 2020 15:40:06 +0200 Subject: Fix syntax highlighting of recursive macros Add syntax highlighting for the BANG (`!`) token if the parent is `MACRO_CALL`. --- crates/ra_ide/src/snapshots/highlighting.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crates/ra_ide/src/snapshots/highlighting.html') diff --git a/crates/ra_ide/src/snapshots/highlighting.html b/crates/ra_ide/src/snapshots/highlighting.html index 33548d43c..5c2ff6ab5 100644 --- a/crates/ra_ide/src/snapshots/highlighting.html +++ b/crates/ra_ide/src/snapshots/highlighting.html @@ -62,6 +62,12 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd } } +macro_rules! noop { + ($expr:expr) => { + $expr + } +} + // comment fn main() { println!("Hello, {}!", 92); @@ -80,6 +86,8 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd // Do nothing } + noop!(noop!(1)); + let mut x = 42; let y = &mut x; let z = &y; -- cgit v1.2.3