mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -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.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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue