Skip to content

Commit 471d158

Browse files
committed
Highlight actor
1 parent db3603a commit 471d158

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

swift-mode-font-lock.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ This function does not search beyond LIMIT."
212212
(skip-syntax-backward "w_")
213213
(and (< (point) limit)
214214
(looking-at
215-
"\\<\\(func\\|enum\\|struct\\|class\\|protocol\\|extension\\)\\>")))
215+
"\\<\\(func\\|enum\\|struct\\|class\\|protocol\\|extension\\|actor\\)\\>")))
216216

217217
(defun swift-mode:property-access-pos-p (pos limit)
218218
"Return t if POS is just before the property name of a member expression.
@@ -540,7 +540,8 @@ Return nil otherwise."
540540
(defconst swift-mode:declaration-keywords
541541
'("associatedtype" "class" "deinit" "enum" "extension" "fileprivate" "func"
542542
"import" "init" "inout" "internal" "let" "open" "operator" "private"
543-
"protocol" "public" "some" "static" "struct" "subscript" "typealias" "var")
543+
"protocol" "public" "some" "static" "struct" "subscript" "typealias" "var"
544+
"actor")
544545
"Keywords used in declarations.")
545546

546547
(defconst swift-mode:statement-keywords

0 commit comments

Comments
 (0)