Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorKonrad Borowski <konrad@borowski.pw>2020-10-07 16:26:11 +0300
committerJunio C Hamano <gitster@pobox.com>2020-10-07 18:48:20 +0300
commita04c7e0f1b6680385945ea901283d6335c4c108a (patch)
treeb5f43c57b17f403c8b0cd348e0cabc02a80c8f29 /t
parentd98273ba77e1ab9ec755576bc86c716a97bf59d7 (diff)
userdiff: recognize 'macro_rules!' as starting a Rust function block
Signed-off-by: Konrad Borowski <konrad@borowski.pw> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rw-r--r--t/t4018/rust-macro-rules6
1 files changed, 6 insertions, 0 deletions
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;
+ };
+}