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