[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode fc3d16ac9b 2/2: Small fix for filling
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode fc3d16ac9b 2/2: Small fix for filling |
Date: |
Sun, 7 May 2023 04:02:49 -0400 (EDT) |
branch: elpa/swift-mode
commit fc3d16ac9b8dbd8d818b807b7d44ca306a43cc6c
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>
Small fix for filling
---
swift-mode-fill.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/swift-mode-fill.el b/swift-mode-fill.el
index afe90253bb..e79b6c6878 100644
--- a/swift-mode-fill.el
+++ b/swift-mode-fill.el
@@ -554,16 +554,15 @@ Return non-nil if skipped a paragraph. Return nil
otherwise."
(swift-mode:fill-skip-paragraph-in-multiline-chunk
chunk
direction
- "\\s *#*\"+\\s *$\\|\\s *\"+#*/\\s *$"
+ "\\s *#*\"+\\s *$\\|\\s *\"+#*\\s *$"
(if (eq direction 'backward)
(lambda ()
(skip-chars-forward "#")
(skip-chars-forward "\"")
(skip-syntax-forward " "))
(lambda ()
- (when (memq (char-before) '(?# ?\"))
- (skip-chars-backward "#")
- (skip-chars-backward "\""))
+ (skip-chars-backward "#")
+ (skip-chars-backward "\"")
(skip-syntax-backward " ")))))
(defun swift-mode:fill-skip-paragraph-in-multiline-chunk