Skip to content

Commit da673f9

Browse files
committed
1 parent 00ec81f commit da673f9

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

swift-mode-font-lock.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ Return nil otherwise."
543543
'("associatedtype" "class" "deinit" "enum" "extension" "fileprivate" "func"
544544
"import" "init" "inout" "internal" "let" "open" "operator" "private"
545545
"protocol" "public" "any" "some" "static" "struct" "subscript" "typealias"
546-
"var" "actor" "nonisolated" "isolated")
546+
"var" "actor" "nonisolated" "isolated" "distributed")
547547
"Keywords used in declarations.")
548548

549549
(defconst swift-mode:statement-keywords

swift-mode-lexer.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,8 @@ Return nil otherwise."
484484
'("indirect" "convenience" "dynamic" "final" "infix" "lazy"
485485
"mutating" "nonmutating" "optional" "override" "postfix"
486486
"prefix" "required" "static" "unowned" "weak" "internal"
487-
"private" "public" "open" "fileprivate" "nonisolated"))
487+
"private" "public" "open" "fileprivate" "nonisolated"
488+
"distributed"))
488489
nil)
489490

490491
;; internal(set) private(set) public(set) open(set) fileprivate(set)
@@ -517,7 +518,8 @@ Return nil otherwise."
517518
'("indirect" "convenience" "dynamic" "final" "infix" "lazy"
518519
"mutating" "nonmutating" "optional" "override" "postfix"
519520
"prefix" "required" "static" "unowned" "weak" "internal"
520-
"private" "public" "open" "fileprivate" "nonisolated"))
521+
"private" "public" "open" "fileprivate" "nonisolated"
522+
"distributed"))
521523
t)
522524

523525
;; Inserts implicit semicolon around keywords that forms single keyword

test/swift-files/indent/declarations.swift

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,28 @@ fileprivate
627627
func foo()
628628
}
629629

630+
@A
631+
distributed
632+
actor
633+
Foo {
634+
distributed
635+
func
636+
foo() {
637+
}
638+
639+
distributed
640+
func
641+
foo() {
642+
}
643+
644+
distributed
645+
var
646+
foo
647+
:
648+
Int {
649+
}
650+
}
651+
630652

631653
// Protocol declarations
632654

0 commit comments

Comments
 (0)