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

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

[nongnu] elpa/swift-mode 88a83ad 145/496: Apply DECSPEC token class only


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 88a83ad 145/496: Apply DECSPEC token class only for functions
Date: Sun, 29 Aug 2021 11:33:25 -0400 (EDT)

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

    Apply DECSPEC token class only for functions
---
 swift-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/swift-mode.el b/swift-mode.el
index f16fbe9..07d9c07 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -188,7 +188,8 @@
                 "<<" ">>")))
 
 (defvar swift-smie--decl-specifier-regexp
-  (regexp-opt '("class" "mutating" "override" "static" "unowned" "weak")))
+  (rx (? (or "class" "mutating" "override" "static" "unowned" "weak"))
+      (* space) "func"))
 
 (defun swift-smie--implicit-semi-p ()
   (save-excursion



reply via email to

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