[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode c1f7ec2 321/496: Fix indentation of switch-case
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode c1f7ec2 321/496: Fix indentation of switch-case body |
Date: |
Sun, 29 Aug 2021 11:33:59 -0400 (EDT) |
branch: elpa/swift-mode
commit c1f7ec22f72cfb6bd2ad27ef926938423bc21f23
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>
Fix indentation of switch-case body
---
swift-mode-indent.el | 2 +-
test/swift-files/statements.swift | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/swift-mode-indent.el b/swift-mode-indent.el
index db31be4..83224c7 100644
--- a/swift-mode-indent.el
+++ b/swift-mode-indent.el
@@ -488,7 +488,7 @@
(goto-char (swift-mode:token:start previous-token))
(swift-mode:find-and-align-with-parents
swift-mode:statement-parent-tokens
- swift-mode:basic-offset))
+ (- swift-mode:basic-offset swift-mode:switch-case-offset)))
;; Before ; on the same line
((and next-is-on-same-line (eq next-type '\;))
diff --git a/test/swift-files/statements.swift
b/test/swift-files/statements.swift
index 93c921d..db63c1a 100644
--- a/test/swift-files/statements.swift
+++ b/test/swift-files/statements.swift
@@ -774,10 +774,10 @@ case let AAA
switch foo {
case foo:
- foo() // swift-mode:test:known-bug
+ foo()
foo()
default:
- foo() // swift-mode:test:known-bug
+ foo()
foo()
}
- [nongnu] elpa/swift-mode 064d4ee 287/496: Update acknowledgments section in readme, (continued)
- [nongnu] elpa/swift-mode 064d4ee 287/496: Update acknowledgments section in readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b7cc115 293/496: Merge pull request #116 from syohex/use-cl-lib, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e9648b1 296/496: Use .el for file extension in distributed package., ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 1563e8b 300/496: Bump the development version to 0.5.0-snapshot, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a5e1acf 297/496: Merge pull request #122 from N4tr0n/make-install-fix-issue120, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cfaeaff 294/496: Update MELPA URL, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 9471669 304/496: Merge taku0/swift3-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 848d088 310/496: Fix indentation after attributes with arguments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cad72a1 306/496: Fix a link in README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0a75736 317/496: Fix indentation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c1f7ec2 321/496: Fix indentation of switch-case body,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 7423f68 324/496: Simplify code, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 58f31cc 340/496: Speed-up indentation for colon, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0b1f29d 334/496: Fix indentation of setter, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 812d202 341/496: Fix REPL prompt corruption, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode f755479 333/496: Fix anchor highlighting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 56ee9b2 359/496: Add comment style option, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode dba539e 394/496: Tweak and clean-up font-lock, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode dca378a 400/496: Rename constants, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c532c1e 402/496: Update documents, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode d35275b 417/496: Remove unused variables, ELPA Syncer, 2021/08/29