Skip to content

Commit d23e21c

Browse files
author
Akshay Hegde
committed
Implement highlighting for properties and enum members
1 parent 0fe633b commit d23e21c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

syntax/swift.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ syntax match swiftOperator "\v\<"
8989
syntax match swiftOperator "\v\>"
9090
syntax match swiftOperator "\v\?\?"
9191

92-
" Methods/Functions
92+
" Methods/Functions/Properties
9393
syntax match swiftMethod "\(\.\)\@<=\w\+\((\)\@="
94+
syntax match swiftProperty "\(\.\)\@<=\<\w\+\>(\@!"
9495

9596
" Swift closure arguments
9697
syntax match swiftClosureArgument "\$\d\+\(\.\d\+\)\?"
@@ -259,6 +260,7 @@ highlight default link swiftType Type
259260
highlight default link swiftImports Include
260261
highlight default link swiftPreprocessor PreProc
261262
highlight default link swiftMethod Function
263+
highlight default link swiftProperty Identifier
262264

263265
highlight default link swiftConditionStatement PreProc
264266
highlight default link swiftAvailability Normal

0 commit comments

Comments
 (0)