Update Swift Grammar and Queries (#10802)

This commit is contained in:
Arturs Krumins 2024-06-07 19:29:42 +02:00 committed by GitHub
parent 44504b720b
commit aa1630a41a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 78 additions and 13 deletions

View file

@ -0,0 +1,6 @@
; Upstream: https://github.com/alex-pinkus/tree-sitter-swift/blob/57c1c6d6ffa1c44b330182d41717e6fe37430704/queries/injections.scm
; Parse regex syntax within regex literals
((regex_literal) @injection.content
(#set! injection.language "regex"))