mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
feat(swift): sync highlight queries with upstream
Upstream highlight queries have added support for Swift regex literals. This change brings that support to nvim-treesitter. Also includes some minor reordering of modifiers for logical consistency (no impact on highlighting behavior).
This commit is contained in:
parent
7ddc2b54db
commit
14edfee545
1 changed files with 5 additions and 2 deletions
|
|
@ -34,15 +34,15 @@
|
||||||
"struct"
|
"struct"
|
||||||
"class"
|
"class"
|
||||||
"actor"
|
"actor"
|
||||||
"nonisolated"
|
|
||||||
"enum"
|
"enum"
|
||||||
"protocol"
|
"protocol"
|
||||||
"extension"
|
"extension"
|
||||||
"indirect"
|
"indirect"
|
||||||
"some"
|
"nonisolated"
|
||||||
"override"
|
"override"
|
||||||
"convenience"
|
"convenience"
|
||||||
"required"
|
"required"
|
||||||
|
"some"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -124,6 +124,9 @@
|
||||||
(boolean_literal) @boolean
|
(boolean_literal) @boolean
|
||||||
"nil" @variable.builtin
|
"nil" @variable.builtin
|
||||||
|
|
||||||
|
; Regex literals
|
||||||
|
(regex_literal) @string.regex
|
||||||
|
|
||||||
; Operators
|
; Operators
|
||||||
(custom_operator) @operator
|
(custom_operator) @operator
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue