branch: elpa/swift-mode commit a092adc3bb0d1b39b25a5d12ed0f62dce8f60feb Author: ap4y <l...@pisem.net> Commit: ap4y <l...@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))