Skip to content

Commit 75c5acb

Browse files
committed
Merge pull request #2738 from compnerd/vim-syntax
Vim syntax
2 parents 9b24c83 + 60cf8f7 commit 75c5acb

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

utils/vim/syntax/swift.vim

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,41 @@ 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 skipwhite
16-
syn keyword swiftKeyword associatedtype override required convenience final defer skipwhite
15+
syn keyword swiftKeyword
16+
\ associatedtype
17+
\ break
18+
\ case
19+
\ catch
20+
\ continue
21+
\ convenience
22+
\ default
23+
\ defer
24+
\ do
25+
\ else
26+
\ extension
27+
\ final
28+
\ for
29+
\ guard
30+
\ if
31+
\ in
32+
\ internal
33+
\ let
34+
\ mutating
35+
\ nonmutating
36+
\ override
37+
\ private
38+
\ protocol
39+
\ public
40+
\ repeat
41+
\ required
42+
\ return
43+
\ static
44+
\ switch
45+
\ try
46+
\ typealias
47+
\ var
48+
\ where
49+
\ while
1750

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

0 commit comments

Comments
 (0)