branch: elpa/swift-mode
commit 88a83adda4beb330824e5bae3df747dd665d52eb
Author: ap4y <[email protected]>
Commit: ap4y <[email protected]>
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