[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode 0ad5865 171/496: Merge pull request #71 from ap
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode 0ad5865 171/496: Merge pull request #71 from ap4y/access_modifiers_font_lock |
Date: |
Sun, 29 Aug 2021 11:33:30 -0400 (EDT) |
branch: elpa/swift-mode
commit 0ad58657c901d0c543e843d586f2d5f4e0e8619c
Merge: 3298fb1 0808a2b
Author: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Merge pull request #71 from ap4y/access_modifiers_font_lock
Add font-lock rules for access modifier keywords
---
swift-mode.el | 2 +-
test/font-lock-tests.el | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/swift-mode.el b/swift-mode.el
index 297d2af..b94ef2b 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -332,7 +332,7 @@
'("associativity" "didSet" "get" "infix" "inout" "left" "mutating" "none"
"nonmutating" "operator" "override" "postfix" "precedence" "prefix" "right"
"set" "unowned" "unowned(safe)" "unowned(unsafe)" "weak" "willSet"
"convenience"
- "required" "dynamic" "final" "lazy" "optional"))
+ "required" "dynamic" "final" "lazy" "optional" "private" "public"
"internal"))
(defvar swift-mode--attribute-keywords
'("class_protocol" "exported" "noreturn"
diff --git a/test/font-lock-tests.el b/test/font-lock-tests.el
index d4e5484..5772553 100644
--- a/test/font-lock-tests.el
+++ b/test/font-lock-tests.el
@@ -148,6 +148,9 @@ test will fail."
(check-face func-name/has-function-name-face/4 font-lock-function-name-face
"func {{foo}}<T>")
(check-face func-name/has-function-name-face/6 font-lock-function-name-face
"func {{foo}}<T>(param: T) -> U {}")
+(check-face func-access-control/has-keyword-face/1 font-lock-keyword-face
"{{private}} func foo() {}")
+(check-face func-access-control/has-keyword-face/2 font-lock-keyword-face
"{{public}} func foo() {}")
+(check-face func-access-control/has-keyword-face/3 font-lock-keyword-face
"{{internal}} func foo() {}")
(check-face func-return-type/has-type-face/1 font-lock-type-face "func foo()
-> {{U}} {}")
(check-face func-return-type/arrow-has-default-face/1 nil "func foo() {{->}} U
{}")
- [nongnu] elpa/swift-mode 2593659 131/496: Improve indentation for multi-line dot expression with dot positioned on, (continued)
- [nongnu] elpa/swift-mode 2593659 131/496: Improve indentation for multi-line dot expression with dot positioned on, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 835c3d3 132/496: Merge pull request #40 from ap4y/improve_37, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 2eb3952 136/496: Merge pull request #45 from ap4y/dot_in_string_interpolation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 5e3ab8c 139/496: Apply swift-indent-multiline-statement-offset to the multi-line, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 4e615b7 143/496: Merge pull request #50 from ap4y/string_interpolation_all_op, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 9c716c1 155/496: Update README, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 1753f23 149/496: Merge pull request #53 from ap4y/improve_smie_dot_exp_rule, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 8492a3d 157/496: Update copyright, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c8cdb81 153/496: Shortcut linked sources flycheck logic when corresponding variable is nil, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a3caf1d 163/496: Change '_' character class to 'symbol constituent', ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0ad5865 171/496: Merge pull request #71 from ap4y/access_modifiers_font_lock,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 69289fe 180/496: Lexer improvement: don't use implicit semicolon when ":" and "?" token, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7a7038b 202/496: Remove supported for trailing dot in multi-line expression (invalid, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode d27b851 181/496: Add indentation rules for ternary operator, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 3026464 206/496: Merge pull request #79 from dougbeal/fix-custom-types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ae4f08b 253/496: Correct implicit semicolon rule for in keyword, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 3aa3dcd 254/496: Add test code for checking tokens, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b97b570 260/496: Fix indent rule for '(' and pass all test, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 00393f7 262/496: Merge pull request #103 from uk-ar/fix-lexer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ed1ed46 264/496: Add test for forward-sexp, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a3377bf 266/496: Fix forward-sexp test by adding brackets, ELPA Syncer, 2021/08/29