Skip to content

Commit c0a8d3f

Browse files
committed
vim: correct categorisation of keywords
Remove modifiers from the keywords into the modifiers section. Remove type specifiers from the keyword group.
1 parent 00d852d commit c0a8d3f

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

utils/vim/syntax/swift.vim

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,17 @@ syn keyword swiftKeyword
1313
\ case
1414
\ catch
1515
\ continue
16-
\ convenience
1716
\ default
1817
\ defer
1918
\ do
2019
\ else
21-
\ extension
22-
\ final
2320
\ for
2421
\ guard
2522
\ if
2623
\ in
27-
\ internal
2824
\ let
29-
\ mutating
30-
\ nonmutating
31-
\ override
32-
\ private
33-
\ protocol
34-
\ public
3525
\ repeat
36-
\ required
3726
\ return
38-
\ static
3927
\ switch
4028
\ throw
4129
\ try
@@ -48,10 +36,15 @@ syn keyword swiftImport skipwhite nextgroup=swiftImportModule
4836
\ import
4937

5038
syn keyword swiftDefinitionModifier
39+
\ convenience
5140
\ dynamic
41+
\ final
5242
\ internal
43+
\ nonmutating
44+
\ override
5345
\ private
5446
\ public
47+
\ required
5548
\ rethrows
5649
\ static
5750
\ throws

0 commit comments

Comments
 (0)