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

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

[nongnu] elpa/swift-mode cfbc318 092/496: Merge pull request #24 from ap


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode cfbc318 092/496: Merge pull request #24 from ap4y/fix_paragraph_movements
Date: Sun, 29 Aug 2021 11:33:14 -0400 (EDT)

branch: elpa/swift-mode
commit cfbc318d06d93b9a34a698276d5e749234bdaf90
Merge: 027522d a092adc
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@batsov.com>

    Merge pull request #24 from ap4y/fix_paragraph_movements
    
    Return default paragraph definitions.
---
 swift-mode.el | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/swift-mode.el b/swift-mode.el
index c191ce6..6c5a4a3 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -455,19 +455,7 @@ You can send text to the REPL process from other buffers 
containing source.
   (setq-local comment-end "")
   (setq-local tab-width swift-indent-offset)
   (setq-local indent-tabs-mode nil)
-  (setq-local indent-line-function 'swift-indent-line)
-
-  (setq-local comment-start-skip
-              (rx (or (and "//" (* "/")) (and "/*" (* "*"))) (* space)))
-
-  (setq-local paragraph-start
-              (rx-to-string `(and (* space)
-                                  (or (regex ,comment-start-skip)
-                                      (and "*" (? "/") (* space)))
-                                  eol)
-                            t))
-
-  (setq-local paragraph-separate paragraph-start))
+  (setq-local indent-line-function 'swift-indent-line))
 
 ;;;###autoload
 (add-to-list 'auto-mode-alist '("\\.swift\\'" . swift-mode))



reply via email to

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