[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode 28c5b54 027/496: More improvements to comment h
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode 28c5b54 027/496: More improvements to comment handling |
Date: |
Sun, 29 Aug 2021 11:33:01 -0400 (EDT) |
branch: elpa/swift-mode
commit 28c5b54a73c7a22a5b453f25121612e445d7198a
Author: Chris Barrett <chris.d.barrett@me.com>
Commit: Chris Barrett <chris.d.barrett@me.com>
More improvements to comment handling
---
swift-mode.el | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/swift-mode.el b/swift-mode.el
index 07feb94..480bef2 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -174,8 +174,18 @@
(setq-local comment-end "")
(setq-local tab-width 4)
(setq-local indent-tabs-mode nil)
- (setq-local comment-start-skip (rx "//" (* "/") (* space)))
- )
+
+ (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))
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.swift$" . swift-mode))
- [nongnu] elpa/swift-mode e5f28f8 268/496: Fix case-: for default, (continued)
- [nongnu] elpa/swift-mode e5f28f8 268/496: Fix case-: for default, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 63eae17 001/496: Initial commit, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode fdc576f 019/496: Fix for older Emacs(< 24.3), ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 29857ae 002/496: Add initial files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7e3bb8e 008/496: Add package deps, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode bb506d0 015/496: Add flycheck-cask to dir-locals, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 48a3a25 016/496: Correctly font-lock backtick-enclosed identifiers in let bindings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 741859e 018/496: Add `convenience` to language keywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8d2720b 020/496: Add autoload token, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 71e3d6f 033/496: Remove unneeded infrastructure, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 28c5b54 027/496: More improvements to comment handling,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 9b367fe 038/496: Remove duplicate in keywords list, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0bf214b 030/496: Update readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cb745d5 029/496: Define basic indentation command., ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0344f63 036/496: Merge pull request #11 from bbatsov/patch-1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 89ce39c 050/496: Format file sections, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0f99a5a 067/496: Tweak docstring to supress checkdoc error, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 821d9af 064/496: Make switch-case indent offset customisable, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode bbd8f91 096/496: Add tests for all implemented smie grammars, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cfbc318 092/496: Merge pull request #24 from ap4y/fix_paragraph_movements, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a8fa421 086/496: Use a more descriptive map variable name inside its definition, ELPA Syncer, 2021/08/29