We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abc0f08 commit 49cb76aCopy full SHA for 49cb76a
utils/swift-mode.el
@@ -45,9 +45,11 @@
45
"import" "let" "protocol" "static" "struct" "subscript"
46
"typealias" "enum" "var" "lazy" "where"
47
"private" "public" "internal" "override" "throws" "rethrows"
48
- "open" "associatedtype" "get" "set" "willSet" "didSet"
49
- "inout" "indirect" "final")
+ "open" "associatedtype" "inout" "indirect" "final")
50
'words) . font-lock-keyword-face)
+ ;; Variable decl keywords
51
+ `("\\b\\(?:[^a-zA-Z_0-9]*\\)\\(get\\|set\\)\\(?:[^a-zA-Z_0-9]*\\)\\b" 1 font-lock-keyword-face)
52
+ `(,(regexp-opt '("willSet" "didSet") 'words) . font-lock-keyword-face)
53
;; Operators
54
`("\\b\\(\\(pre\\|post\\|in\\)fix\\s-+\\)operator\\b" . font-lock-keyword-face)
55
;; Infix operator attributes
0 commit comments