[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode 82ee822 361/496: Fix code styles
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode 82ee822 361/496: Fix code styles |
Date: |
Sun, 29 Aug 2021 11:34:07 -0400 (EDT) |
branch: elpa/swift-mode
commit 82ee8222e1f3be71a89da141205ea398a2b043d7
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>
Fix code styles
---
swift-mode-indent.el | 8 +-------
swift-mode.el | 8 ++++----
2 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/swift-mode-indent.el b/swift-mode-indent.el
index 2df9dfe..07ad88b 100644
--- a/swift-mode-indent.el
+++ b/swift-mode-indent.el
@@ -777,15 +777,9 @@ the expression."
(progn
(forward-comment (point-max))
(when (eq (char-after) ?@)
- (forward-symbol 1)
- (forward-comment (point-max))
- (when (eq (char-after) ?\()
- (condition-case nil
- (forward-list)
- (scan-error nil))))
+ (swift-mode:forward-token-simple))
(point))))))
-
(defun swift-mode:calculate-indent-after-open-curly-brace (offset)
"Return indentation after open curly braces.
diff --git a/swift-mode.el b/swift-mode.el
index 3ba9ff3..fd1226e 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -52,9 +52,9 @@
(set-keymap-parent map prog-mode-map)
(define-key map (kbd "M-j") #'swift-mode:indent-new-comment-line)
(define-key map (kbd "C-M-j") #'swift-mode:indent-new-comment-line)
- (define-key map (kbd "C-c C-z") 'swift-mode:run-repl)
- (define-key map (kbd "C-c C-f") 'swift-mode:send-buffer)
- (define-key map (kbd "C-c C-r") 'swift-mode:send-region)
+ (define-key map (kbd "C-c C-z") #'swift-mode:run-repl)
+ (define-key map (kbd "C-c C-f") #'swift-mode:send-buffer)
+ (define-key map (kbd "C-c C-r") #'swift-mode:send-region)
(easy-menu-define swift-menu map "Swift Mode menu"
`("Swift"
:help "Swift-specific Features"
@@ -75,7 +75,7 @@
map)
"Swift mode key map.")
-;;; `foward-sexp-function'
+;;; `forward-sexp-function'
(defun swift-mode:forward-sexp (&optional arg)
"Move forward/backward a token or list.
- [nongnu] elpa/swift-mode 86eb49c 323/496: Fix indentation of for-in, (continued)
- [nongnu] elpa/swift-mode 86eb49c 323/496: Fix indentation of for-in, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 78cea9d 337/496: Improve CI, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 63580e8 339/496: Speed-up indentation for colon, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e91e924 347/496: Bump version to 2.2.4, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 9892096 350/496: Bump version to 2.3.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 55ea958 354/496: Fix syntax error, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e8d9a5d 363/496: Bump version to 3.0.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 99ff376 362/496: Improve functions related to defuns, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e3cb72b 360/496: Fix `swift-mode:forward-sexp` for `up-list` and `down-list`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 50394e4 357/496: Bump version to 2.4.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 82ee822 361/496: Fix code styles,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 5df00bc 367/496: Fix typo, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 1167fec 369/496: Fix comment, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e58e4e0 368/496: Tweak test, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 089853c 384/496: Fix typo "identifer" to "identifier", ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e81ab53 381/496: Fix comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8d4a5a5 373/496: Add kill/mark/narrow-to-sentence, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a042764 374/496: Fix indentation of comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8c45f69 383/496: Bump version to 4.0.1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ed03fde 377/496: Refactor tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 1970f1d 380/496: Fix `beginning-of-defun' inside class methods, ELPA Syncer, 2021/08/29