We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 367a874 commit 4449d4aCopy full SHA for 4449d4a
tests/source/issue-4603.rs
@@ -0,0 +1,47 @@
1
+// Formatting when original macro snippet is used
2
+
3
+// Original issue #4603 code
4
+#![feature(or_patterns)]
5
+macro_rules! t_or_f {
6
+ () => {
7
+ (true // some comment
8
+ | false)
9
+ };
10
+}
11
12
+// Other test cases variations
13
+macro_rules! RULES {
14
15
+ (
16
+ xxxxxxx // COMMENT
17
+ | yyyyyyy
18
+ )
19
20
21
22
23
+ (xxxxxxx // COMMENT
24
+ | yyyyyyy)
25
26
27
28
+fn main() {
29
+ macro_rules! RULES {
30
31
32
33
34
+ }
35
36
37
38
39
+ (xxxxxxx /* COMMENT */ | yyyyyyy)
40
41
42
43
44
+ (xxxxxxx /* COMMENT */
45
46
47
tests/target/issue-4603.rs
0 commit comments