[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode 0808a2b 170/496: Add font-lock rules for access
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode 0808a2b 170/496: Add font-lock rules for access modifier keywords |
Date: |
Sun, 29 Aug 2021 11:33:30 -0400 (EDT) |
branch: elpa/swift-mode
commit 0808a2b5554d3e0e2172e973bd9d70ba96d0b337
Author: ap4y <lod@pisem.net>
Commit: ap4y <lod@pisem.net>
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 53f9042 100/496: Rename swift-mode--font-lock-defaults to swift-font-lock-keywords and, (continued)
- [nongnu] elpa/swift-mode 53f9042 100/496: Rename swift-mode--font-lock-defaults to swift-font-lock-keywords and, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 72eb603 105/496: Use semver friendly version number, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 021f0ab 104/496: Remove flycheck code from .dir-locals.el as not everyone has flycheck installed, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0c734dd 112/496: Indent multiline hash and array syntax same way as Xcode does, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 699e896 106/496: Start work on the 0.2 series, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 07f6434 111/496: Fix indentation issues with type annotations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode abd6e07 130/496: Merge pull request #39 from ap4y/fix_37, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c664fc2 144/496: Merge pull request #51 from ap4y/fix_default_case_indentation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ce72472 141/496: Make all possible operators allowed in string interpolation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 3298fb1 169/496: Stop overriding user preferences for tab-width., ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0808a2b 170/496: Add font-lock rules for access modifier keywords,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 52045f0 174/496: Fix issues with several failing tests on emacs 24.4, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 230afd3 175/496: Setup travis matrix with emacs 24.3 and 24.4., ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 5fabebd 196/496: Improve indentation rules for function arguments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 38933b9 208/496: Don't use implicit semicolon when operator is placed on the second line, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode d0c65bc 212/496: Fix bug with the closing parentheses in method calls and function, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 107195e 219/496: Improve lexer rule for generics with optional or implicit unwrapping, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode cdf7ad4 220/496: Fix indentation issues with deep nested if cluase, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 9941c27 224/496: Bring failing tests for #81 contributed in #82 by @dougbeal, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 4ae6cc2 228/496: Fix indent when after comment, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 68a3a29 231/496: Support for choosing framework search paths., ELPA Syncer, 2021/08/29