Skip to content

Commit 96e64bf

Browse files
committed
vim: change the keyword list into a list
Just represent the list of keywords as a visible list. This makes it easier to see the individual keywords as well as makes it easy to add new keywords in the future.
1 parent caa40e2 commit 96e64bf

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

utils/vim/syntax/swift.vim

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,39 @@ syn keyword swiftImport import skipwhite nextgroup=swiftImportModule
1212
syn match swiftImportModule /\<[A-Za-z_][A-Za-z_0-9]*\>/ contained nextgroup=swiftImportComponent
1313
syn match swiftImportComponent /\.\<[A-Za-z_][A-Za-z_0-9]*\>/ contained nextgroup=swiftImportComponent
1414

15-
syn keyword swiftKeyword break case continue default do else for guard if in static switch repeat return where while public internal private mutating nonmutating var let typealias protocol extension
16-
syn keyword swiftKeyword associatedtype override required convenience final defer
15+
syn keyword swiftKeyword
16+
\ break
17+
\ case
18+
\ continue
19+
\ default
20+
\ do
21+
\ else
22+
\ for
23+
\ guard
24+
\ if
25+
\ in
26+
\ static
27+
\ switch
28+
\ repeat
29+
\ return
30+
\ where
31+
\ while
32+
\ public
33+
\ internal
34+
\ private
35+
\ mutating
36+
\ nonmutating
37+
\ var
38+
\ let
39+
\ typealias
40+
\ protocol
41+
\ extension
42+
\ associatedtype
43+
\ override
44+
\ required
45+
\ convenience
46+
\ final
47+
\ defer
1748

1849
syn keyword swiftTypeDefinition class extension protocol struct typealias enum skipwhite nextgroup=swiftTypeName
1950
syn region swiftTypeAttributes start="\[" end="\]" skipwhite contained nextgroup=swiftTypeName

0 commit comments

Comments
 (0)