mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
(simple_identifier) @function.method)
|
||||
|
||||
(function_declaration
|
||||
(init_declaration
|
||||
"init" @constructor)
|
||||
|
||||
(throws) @keyword
|
||||
|
|
@ -80,6 +80,11 @@
|
|||
"convenience"
|
||||
"required"
|
||||
"some"
|
||||
"any"
|
||||
"weak"
|
||||
"unowned"
|
||||
"didSet"
|
||||
"willSet"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
|
|
@ -115,6 +120,15 @@
|
|||
(enum_entry
|
||||
"case" @keyword)
|
||||
|
||||
; Attributes
|
||||
(modifiers
|
||||
(attribute) @attribute.builtin)
|
||||
|
||||
(modifiers
|
||||
(attribute
|
||||
(user_type
|
||||
(type_identifier) @attribute.builtin)))
|
||||
|
||||
; Function calls
|
||||
(call_expression
|
||||
(simple_identifier) @function.call) ; foo()
|
||||
|
|
@ -275,6 +289,9 @@
|
|||
"++"
|
||||
"--"
|
||||
"&"
|
||||
"&&"
|
||||
"|"
|
||||
"||"
|
||||
"~"
|
||||
"%="
|
||||
"!="
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue