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

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

[nongnu] elpa/swift-mode 0fcf3ab 115/496: Restructure test for multi-lin


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 0fcf3ab 115/496: Restructure test for multi-line hash in method call to test against case
Date: Sun, 29 Aug 2021 11:33:19 -0400 (EDT)

branch: elpa/swift-mode
commit 0fcf3ab2bca30d6d0feb30b3b66acf1f65703c1e
Author: ap4y <lod@pisem.net>
Commit: ap4y <lod@pisem.net>

    Restructure test for multi-line hash in method call to test against case
    compatible with emacs <24.4
    
    Unfortunately, multi-line hash/array syntax with arguments starting on a
    new line looks a bit weird in emacs <24.4. In emacs 24.4 smie parser
    handles this case a bit differently, it gives a bit more options to
    customize rules. I think similar issue presents in other modes too, for
    example in ruby-mode.
---
 test/indentation-tests.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/indentation-tests.el b/test/indentation-tests.el
index b236442..5f4d394 100644
--- a/test/indentation-tests.el
+++ b/test/indentation-tests.el
@@ -747,12 +747,12 @@ var result = Dictionary<String, V>()
 
 (check-indentation indents-multiline-expressions/1
 "
-Foo.bar([
+Foo.bar([foo: bar,
 |bar: baz
 ])
 " "
-Foo.bar([
-    |bar: baz
+Foo.bar([foo: bar,
+         |bar: baz
 ])
 ")
 



reply via email to

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