File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 204204
205205(match_statement ":" @prepend_antispace )
206206(match_body) @prepend_indent_start @append_indent_end @prepend_hardline
207- (pattern_section ":" @prepend_antispace )
207+ (pattern_section ":" @prepend_antispace ) @append_hardline
208208(pattern_section (body) @prepend_hardline )
209209(pattern_section "," @prepend_antispace @append_space )
210210(pattern_guard) @prepend_space
Original file line number Diff line number Diff line change @@ -18,3 +18,11 @@ func foo():
1818 # Conditional expression should be supported
1919 0 if true else 2 :
2020 pass
21+
22+ match type :
23+ Type .LEFT :
24+ animation .play ("left" )
25+ Type .RIGHT :
26+ animation .play ("right" )
27+ _ :
28+ animation .play ("right" )
Original file line number Diff line number Diff line change @@ -18,3 +18,8 @@ func foo():
1818 # Conditional expression should be supported
1919 0 if true else 2 :
2020 pass
21+
22+ match type :
23+ Type .LEFT : animation .play ("left" )
24+ Type .RIGHT : animation .play ("right" )
25+ _ : animation .play ("right" )
You can’t perform that action at this time.
0 commit comments