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