mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
fix(swift): highlights
This commit is contained in:
parent
20042941df
commit
aa31b8d4cc
1 changed files with 18 additions and 1 deletions
|
|
@ -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 @@
|
||||||
"++"
|
"++"
|
||||||
"--"
|
"--"
|
||||||
"&"
|
"&"
|
||||||
|
"&&"
|
||||||
|
"|"
|
||||||
|
"||"
|
||||||
"~"
|
"~"
|
||||||
"%="
|
"%="
|
||||||
"!="
|
"!="
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue