mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17: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"
|
||||
"class"
|
||||
"actor"
|
||||
"nonisolated"
|
||||
"enum"
|
||||
"protocol"
|
||||
"extension"
|
||||
"indirect"
|
||||
"some"
|
||||
"nonisolated"
|
||||
"override"
|
||||
"convenience"
|
||||
"required"
|
||||
"some"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
|
|
@ -124,6 +124,9 @@
|
|||
(boolean_literal) @boolean
|
||||
"nil" @variable.builtin
|
||||
|
||||
; Regex literals
|
||||
(regex_literal) @string.regex
|
||||
|
||||
; Operators
|
||||
(custom_operator) @operator
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue