We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a0dacb + 350d49c commit 098aae1Copy full SHA for 098aae1
example/example.swift
@@ -49,6 +49,7 @@ if foo {
49
5 // int
50
51
5.5 // float
52
+45.4
53
5e-2
54
5E2
55
5.5E-2
syntax/swift.vim
@@ -90,8 +90,8 @@ syntax match swiftOperator "\v\>"
90
syntax match swiftOperator "\v\?\?"
91
92
" Methods/Functions/Properties
93
-syntax match swiftMethod "\(\.\)\@<=\w\+\((\)\@="
94
-syntax match swiftProperty "\(\.\)\@<=\<\w\+\>(\@!"
+syntax match swiftMethod "\.\@<=\<\D\w*\>\ze("
+syntax match swiftProperty "\.\@<=\<\D\w*\>(\@!"
95
96
" Swift closure arguments
97
syntax match swiftClosureArgument "\$\d\+\(\.\d\+\)\?"
0 commit comments