branch: elpa/swift-mode
commit b4e0622fa2648748fcd74cb5f0bbfaeac28bf057
Author: taku0 <[email protected]>
Commit: taku0 <[email protected]>
Add test for indent of import declarations
---
test/swift-files/indent/declarations.swift | 33 ++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/test/swift-files/indent/declarations.swift
b/test/swift-files/indent/declarations.swift
index dab5296..7ad7978 100644
--- a/test/swift-files/indent/declarations.swift
+++ b/test/swift-files/indent/declarations.swift
@@ -3,6 +3,39 @@
// swift-mode:test:eval (setq-local swift-mode:multiline-statement-offset 2)
// swift-mode:test:eval (setq-local swift-mode:switch-case-offset 0)
+// Import declaration
+
+import
+ Foo
+
+import
+ class
+ Foo
+ .Bar
+
+import class
+ Foo
+
+import
+ let
+ Foo
+
+import
+ var
+ Foo.
+ bar
+
+import
+ func
+ Foo.+
+
+import
+ func
+ Foo
+ .+
+
+let x = 1 // swift-mode:test:known-bug
+
// Constant declarations
let