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

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

[nongnu] elpa/swift-mode a092adc 091/496: Return default paragraph defin


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode a092adc 091/496: Return default paragraph definitions.
Date: Sun, 29 Aug 2021 11:33:14 -0400 (EDT)

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

    Return default paragraph definitions.
    
    Defined values for paragraph start and separator doesn't seem to express
    definition of code paragraph. Relying on comments doesn't work in all
    situations. Default emacs paragraph definition provides safer common
    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]