highlights(swift): fix captures

This commit is contained in:
ObserverOfTime 2022-10-28 17:20:26 +03:00
parent ee0834d59b
commit 6825dc63b6

View file

@ -1,5 +1,6 @@
[ "." ";" ":" "," ] @punctuation.delimiter
[ "\\(" "(" ")" "[" "]" "{" "}"] @punctuation.bracket ; TODO: "\\(" ")" in interpolations should be @punctuation.special
; TODO: "\\(" ")" in interpolations should be @punctuation.special
[ "\\(" "(" ")" "[" "]" "{" "}"] @punctuation.bracket
; Identifiers
(attribute) @variable
@ -8,6 +9,7 @@
; Declarations
"func" @keyword.function
[
(visibility_modifier)
(member_modifier)
@ -15,7 +17,7 @@
(property_modifier)
(parameter_modifier)
(inheritance_modifier)
] @keyword
] @type.qualifier
(function_declaration (simple_identifier) @method)
(function_declaration ["init" @constructor])
@ -122,7 +124,7 @@
] @number
(real_literal) @float
(boolean_literal) @boolean
"nil" @variable.builtin
"nil" @constant.builtin
; Regex literals
(regex_literal) @string.regex