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

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

[nongnu] elpa/swift-mode a07be7a 335/496: Fix `swift-mode:beginning-of-d


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode a07be7a 335/496: Fix `swift-mode:beginning-of-defun`
Date: Sun, 29 Aug 2021 11:34:02 -0400 (EDT)

branch: elpa/swift-mode
commit a07be7a34d4f677a28878f4b72a2095addc628fd
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>

    Fix `swift-mode:beginning-of-defun`
    
    Example:
    
    @ABC
    private func foo() {
    }
---
 swift-mode-lexer.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/swift-mode-lexer.el b/swift-mode-lexer.el
index 4c616bb..83e051e 100644
--- a/swift-mode-lexer.el
+++ b/swift-mode-lexer.el
@@ -211,6 +211,10 @@ END is the point after the token."
                     '("#file" "#line" "column" "#function"))))
       t)
 
+     ;; Supress implicit semicolon after attributes.
+     ((eq (swift-mode:token:type previous-token) 'attribute)
+      nil)
+
      ;; Suppress implicit semicolon after modifiers.
      ((member (swift-mode:token:text previous-token)
               '("indirect" "convenience" "dynamic" "final" "infix" "lazy"
@@ -292,10 +296,6 @@ END is the point after the token."
        (equal (swift-mode:token:text next-token) "else"))
       t)
 
-     ;; Supress implicit semicolon after attributes.
-     ((eq (swift-mode:token:type previous-token) 'attribute)
-      nil)
-
      ;; Inserts implicit semicolon before keywords that behave like method
      ;; names.
      ((member (swift-mode:token:text next-token)



reply via email to

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