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:
Alex Pinkus 2022-10-09 09:21:57 -07:00 committed by Stephan Seitz
parent 7ddc2b54db
commit 14edfee545

View file

@ -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
[