fix(swift): highlights

This commit is contained in:
Wojciech Kulik 2024-03-24 01:10:18 +01:00 committed by Christian Clason
parent 20042941df
commit aa31b8d4cc

View file

@ -39,7 +39,7 @@
(function_declaration (function_declaration
(simple_identifier) @function.method) (simple_identifier) @function.method)
(function_declaration (init_declaration
"init" @constructor) "init" @constructor)
(throws) @keyword (throws) @keyword
@ -80,6 +80,11 @@
"convenience" "convenience"
"required" "required"
"some" "some"
"any"
"weak"
"unowned"
"didSet"
"willSet"
] @keyword ] @keyword
[ [
@ -115,6 +120,15 @@
(enum_entry (enum_entry
"case" @keyword) "case" @keyword)
; Attributes
(modifiers
(attribute) @attribute.builtin)
(modifiers
(attribute
(user_type
(type_identifier) @attribute.builtin)))
; Function calls ; Function calls
(call_expression (call_expression
(simple_identifier) @function.call) ; foo() (simple_identifier) @function.call) ; foo()
@ -275,6 +289,9 @@
"++" "++"
"--" "--"
"&" "&"
"&&"
"|"
"||"
"~" "~"
"%=" "%="
"!=" "!="