mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
highlights(swift): fix captures
This commit is contained in:
parent
ee0834d59b
commit
6825dc63b6
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue