[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode 90686cb 450/496: Add `some` keyword of Swift 5.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode 90686cb 450/496: Add `some` keyword of Swift 5.1 |
Date: |
Sun, 29 Aug 2021 11:34:25 -0400 (EDT) |
branch: elpa/swift-mode
commit 90686cb6da7cb6046852d2c11c668ee597478bdd
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>
Add `some` keyword of Swift 5.1
---
swift-mode-font-lock.el | 2 +-
swift-mode-lexer.el | 4 ++--
test/swift-files/indent/identifiers.swift | 3 +++
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/swift-mode-font-lock.el b/swift-mode-font-lock.el
index 8d33d44..eb9ade2 100644
--- a/swift-mode-font-lock.el
+++ b/swift-mode-font-lock.el
@@ -538,7 +538,7 @@ Return nil otherwise."
(defconst swift-mode:declaration-keywords
'("associatedtype" "class" "deinit" "enum" "extension" "fileprivate" "func"
"import" "init" "inout" "internal" "let" "open" "operator" "private"
- "protocol" "public" "static" "struct" "subscript" "typealias" "var")
+ "protocol" "public" "some" "static" "struct" "subscript" "typealias" "var")
"Keywords used in declarations.")
(defconst swift-mode:statement-keywords
diff --git a/swift-mode-lexer.el b/swift-mode-lexer.el
index 12a2c7e..38187fc 100644
--- a/swift-mode-lexer.el
+++ b/swift-mode-lexer.el
@@ -416,9 +416,9 @@ Return nil otherwise." ;; FIXME pound-count
;; Suppress implicit semicolon around keywords that cannot start or end
;; statements.
(member (swift-mode:token:text previous-token)
- '("inout" "throws" "rethrows" "in" "where"))
+ '("some" "inout" "throws" "rethrows" "in" "where"))
(member (swift-mode:token:text next-token)
- '("inout" "throws" "rethrows" "in" "where")))
+ '("some" "inout" "throws" "rethrows" "in" "where")))
nil)
;; Inserts semicolon before open curly bracket.
diff --git a/test/swift-files/indent/identifiers.swift
b/test/swift-files/indent/identifiers.swift
index 519ed39..2dfd3d8 100644
--- a/test/swift-files/indent/identifiers.swift
+++ b/test/swift-files/indent/identifiers.swift
@@ -103,6 +103,9 @@ func foo() {
foo(
var: 1
)
+ foo(
+ some: 1
+ )
// Keywords used in statements
foo(
- [nongnu] elpa/swift-mode 396f297 058/496: Fix test docstring typo, (continued)
- [nongnu] elpa/swift-mode 396f297 058/496: Fix test docstring typo, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 60956cb 081/496: fixup! Add swift repl commands to mode map, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode d59cae7 355/496: Fix indentation of string interpolations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 2aeef85 425/496: Update copyright notice, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 490ab34 051/496: Simplify indentation command, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 66bfbc5 056/496: Add indentation tests, add makefile runner task, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ead0ae5 055/496: Fix spelling error in readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 049c6d6 439/496: Use `assoc-default`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ba4d981 473/496: Use seq-contains-p if available, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 86f8f62 447/496: Bump version to 8.0.1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 90686cb 450/496: Add `some` keyword of Swift 5.1,
ELPA Syncer <=
- [nongnu] elpa/swift-mode acfc7fd 452/496: Fix comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0daff60 463/496: Fix unreadable characters appearing in repl prompt, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 5597eaf 467/496: Avoid max-lisp-eval-depth in font-lock-match-expr, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8f1a697 483/496: Fix documentations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cb6186e 474/496: Add support for font-lock-negation-char-face, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b6d0351 338/496: Fix indentation of switch, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 07939df 413/496: Bump version to 7.0.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 55ce4e5 416/496: Fix command name, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode fa4f491 433/496: Add Emacs 25.3 and 26.1 to CI, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 3b6bdad 443/496: Bump version to 8.0.0, ELPA Syncer, 2021/08/29