emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swift-mode b4e0622 444/496: Add test for indent of import


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode b4e0622 444/496: Add test for indent of import declarations
Date: Sun, 29 Aug 2021 11:34:24 -0400 (EDT)

branch: elpa/swift-mode
commit b4e0622fa2648748fcd74cb5f0bbfaeac28bf057
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]