Skip to content

Commit b4e0622

Browse files
committed
Add test for indent of import declarations
1 parent 3b6bdad commit b4e0622

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

test/swift-files/indent/declarations.swift

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,39 @@
33
// swift-mode:test:eval (setq-local swift-mode:multiline-statement-offset 2)
44
// swift-mode:test:eval (setq-local swift-mode:switch-case-offset 0)
55

6+
// Import declaration
7+
8+
import
9+
Foo
10+
11+
import
12+
class
13+
Foo
14+
.Bar
15+
16+
import class
17+
Foo
18+
19+
import
20+
let
21+
Foo
22+
23+
import
24+
var
25+
Foo.
26+
bar
27+
28+
import
29+
func
30+
Foo.+
31+
32+
import
33+
func
34+
Foo
35+
.+
36+
37+
let x = 1 // swift-mode:test:known-bug
38+
639
// Constant declarations
740

841
let

0 commit comments

Comments
 (0)