From df5b37cb612664985f1ba0a24280621809bd5533 Mon Sep 17 00:00:00 2001 From: Leander Tentrup Date: Sat, 20 Jun 2020 00:02:42 +0200 Subject: Syntax highlighting for documentation comments on macro definitions --- crates/ra_ide/src/snapshots/highlight_doctest.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crates/ra_ide/src/snapshots/highlight_doctest.html') diff --git a/crates/ra_ide/src/snapshots/highlight_doctest.html b/crates/ra_ide/src/snapshots/highlight_doctest.html index f61c0daa5..63199cdbe 100644 --- a/crates/ra_ide/src/snapshots/highlight_doctest.html +++ b/crates/ra_ide/src/snapshots/highlight_doctest.html @@ -84,4 +84,13 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd pub fn foo(&self) -> bool { true } +} + +/// ``` +/// noop!(1); +/// ``` +macro_rules! noop { + ($expr:expr) => { + $expr + } } \ No newline at end of file -- cgit v1.2.3