File tree 3 files changed +27
-10
lines changed
3 files changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,16 @@ switch {
31
31
};
32
32
};
33
33
34
+ type X = unit {
35
+ switch (True) {
36
+ * -> {
37
+ switch (True) {
38
+ * -> x: uint8;
39
+ };
40
+ }
41
+ };
42
+ };
43
+
34
44
type X = unit{
35
45
on %init {}
36
46
b: uint8 {print $$;}
Original file line number Diff line number Diff line change @@ -40,6 +40,16 @@ type X = unit {
40
40
};
41
41
};
42
42
43
+ type X = unit {
44
+ switch (True) {
45
+ * -> {
46
+ switch (True) {
47
+ * -> x: uint8;
48
+ };
49
+ }
50
+ };
51
+ };
52
+
43
53
type X = unit {
44
54
on %init {}
45
55
b: uint8 {
Original file line number Diff line number Diff line change 59
59
" =" @append_antispace
60
60
)
61
61
62
+ (struct_decl " struct" @append_space)
63
+
62
64
(" struct"
63
65
(field_decl) @append_empty_softline
64
66
.
75
77
" }" @prepend_indent_end @prepend_hardline
76
78
)
77
79
80
+ (unit_switch
81
+ " switch" @append_space
82
+ )
83
+
78
84
(unit_switch_case
79
85
" {" @append_indent_start @append_hardline
80
86
" }" @prepend_indent_end @prepend_hardline
86
92
(comment)? @do_nothing
87
93
)
88
94
89
- (struct_decl " struct" @append_space)
90
-
91
- (unit_switch
92
- " switch" @append_space
93
- )
94
- (unit_switch
95
- (unit_switch_case) @append_hardline
96
- .
97
- (comment)? @do_nothing
98
- )
95
+ (unit_switch_case) @prepend_hardline
99
96
(unit_switch_case
100
97
" ->" @prepend_space @append_space
101
98
)
You can’t perform that action at this time.
0 commit comments