[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode 60e5cf7 428/496: Remove redundant code
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode 60e5cf7 428/496: Remove redundant code |
Date: |
Sun, 29 Aug 2021 11:34:21 -0400 (EDT) |
branch: elpa/swift-mode
commit 60e5cf72a85ae26ee9afa44085d1fecd9bd53f13
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>
Remove redundant code
Token type of operator tokens after `func` or "operator" is always
identifier. See `swift-mode:fix-operator-type` for details.
---
swift-mode-beginning-of-defun.el | 2 +-
swift-mode-lexer.el | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/swift-mode-beginning-of-defun.el b/swift-mode-beginning-of-defun.el
index 54cbad6..1459f53 100644
--- a/swift-mode-beginning-of-defun.el
+++ b/swift-mode-beginning-of-defun.el
@@ -1442,7 +1442,7 @@ of ancestors."
;; Ignored: "import" "get" "set" "willSet" "didSet"
(t nil))))
- (if (memq (swift-mode:token:type name-token) '(identifier operator))
+ (if (eq (swift-mode:token:type name-token) identifier)
name-token
nil)))
diff --git a/swift-mode-lexer.el b/swift-mode-lexer.el
index ef8c273..ff63a8e 100644
--- a/swift-mode-lexer.el
+++ b/swift-mode-lexer.el
@@ -632,8 +632,7 @@ Return nil otherwise."
;; FIXME: mutual dependency
(progn (swift-mode:try-backward-generic-parameters) (point)))
(swift-mode:function-parameter-clause-p)))
- ((or (eq previous-type 'operator)
- (eq previous-type 'identifier))
+ ((eq previous-type 'identifier)
(equal (swift-mode:token:text (swift-mode:backward-token-simple))
"func"))
(t nil)))))
- [nongnu] elpa/swift-mode 4c5a1d9 401/496: Add support for running on device via ios-deploy, (continued)
- [nongnu] elpa/swift-mode 4c5a1d9 401/496: Add support for running on device via ios-deploy, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7ea1d4e 404/496: Bump version to 5.0.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e229d69 405/496: Fix typo, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cfbec0a 406/496: Update copyrights, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7f89b8c 411/496: Change swift-mode:mark-defun to match Emacs 26, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c48907c 407/496: Update font-lock for standard library, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode d47bdd2 412/496: Fix spell, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 021fdb1 414/496: Tweak mark-defun, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode f62cd58 423/496: Change standard values for executables, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cde97e2 421/496: Bump version to 7.1.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 60e5cf7 428/496: Remove redundant code,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 4a56636 432/496: Update test data, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7954107 453/496: Small fixes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode fe84a38 448/496: Add links to sourcekit-lsp and swift-playground-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cba6718 472/496: Exclude 25.1 from GitHub Action, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 19d909b 468/496: Migrate to Eldev, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 02a1726 476/496: Introduce some font-lock tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode abbd06e 478/496: Fix error on indenting a closing paren outside strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ad12a30 486/496: Remove Cask from README, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 1b47a09 495/496: Bump version to 8.3.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 561cacb 043/496: Code style, ELPA Syncer, 2021/08/29