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

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

[nongnu] elpa/swift-mode d35275b 417/496: Remove unused variables


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode d35275b 417/496: Remove unused variables
Date: Sun, 29 Aug 2021 11:34:19 -0400 (EDT)

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

    Remove unused variables
---
 swift-mode-beginning-of-defun.el | 1 -
 swift-mode-font-lock.el          | 5 +++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/swift-mode-beginning-of-defun.el b/swift-mode-beginning-of-defun.el
index 6fcb3b8..099cd08 100644
--- a/swift-mode-beginning-of-defun.el
+++ b/swift-mode-beginning-of-defun.el
@@ -579,7 +579,6 @@ Both functions return t if succeeded, return nil otherwise."
         (point-was-after-mark
          (and (mark t)
               (< (mark t) (point))))
-        new-region-and-direction
         new-region
         new-direction
         last-successful-region)
diff --git a/swift-mode-font-lock.el b/swift-mode-font-lock.el
index 5f0be74..621425e 100644
--- a/swift-mode-font-lock.el
+++ b/swift-mode-font-lock.el
@@ -228,8 +228,9 @@ This function does not search beyond LIMIT."
   (goto-char pos)
   (forward-comment (- (point)))
   (skip-syntax-backward "w_")
-  (looking-at
-   "\\<\\(func\\|enum\\|struct\\|class\\|protocol\\|extension\\)\\>"))
+  (and (< (point) limit)
+       (looking-at
+        "\\<\\(func\\|enum\\|struct\\|class\\|protocol\\|extension\\)\\>")))
 
 (defun swift-mode:property-access-pos-p (pos limit)
   "Return t if POS is just before the property name of a member expression.



reply via email to

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