We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78cea9d commit b6d0351Copy full SHA for b6d0351
swift-mode-lexer.el
@@ -456,7 +456,7 @@ That is supertype declaration or type declaration of let or var."
456
;; FIXME: mutual dependency
457
(swift-mode:token:text
458
(swift-mode:backward-sexps-until
459
- '(implicit-\; \; { \( \[ "case" "default" 'case-:)))
+ '(implicit-\; \; { \( \[ "case" "default" case-:)))
460
'("case" "default"))))
461
462
(defun swift-mode:anonyous-parameter-in-p ()
test/swift-files/statements.swift
@@ -904,6 +904,12 @@ case 2:
904
bar()
905
}
906
907
+switch foo {
908
+case 1:
909
+ var x: Int = 1
910
+ var y: Int = 2
911
+}
912
+
913
// swift-mode:test:eval (setq-local swift-mode:switch-case-offset 2)
914
915
switch foo {
0 commit comments