From a04c7e0f1b6680385945ea901283d6335c4c108a Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Wed, 7 Oct 2020 13:26:11 +0000 Subject: userdiff: recognize 'macro_rules!' as starting a Rust function block Signed-off-by: Konrad Borowski Signed-off-by: Junio C Hamano --- t/t4018/rust-macro-rules | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 t/t4018/rust-macro-rules (limited to 't') diff --git a/t/t4018/rust-macro-rules b/t/t4018/rust-macro-rules new file mode 100644 index 0000000000..ec610c5b62 --- /dev/null +++ b/t/t4018/rust-macro-rules @@ -0,0 +1,6 @@ +macro_rules! RIGHT { + () => { + // a comment + let x = ChangeMe; + }; +} -- cgit v1.2.3