update to newest rescript treesitter library and queries (#11165)

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Co-authored-by: Freddie Ridell <freddie@Gilbraith-MacBook-Pro.local>
This commit is contained in:
Freddie Gilbraith 2024-11-20 22:08:38 +00:00 committed by GitHub
parent 4e2faa0be9
commit 07968880e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 50 additions and 24 deletions

View file

@ -1,8 +1,29 @@
((comment) @injection.content
(#set! injection.language "comment"))
((comment) @injection.content (#set! injection.language "comment"))
((raw_js) @injection.content
(#set! injection.language "javascript"))
; %re
(extension_expression
(extension_identifier) @_name
(#eq? @_name "re")
(expression_statement (_) @injection.content (#set! injection.language "regex")))
; %raw
(extension_expression
(extension_identifier) @_name
(#eq? @_name "raw")
(expression_statement
(_ (_) @injection.content (#set! injection.language "javascript"))))
; %graphql
(extension_expression
(extension_identifier) @_name
(#eq? @_name "graphql")
(expression_statement
(_ (_) @injection.content (#set! injection.language "graphql"))))
; %relay
(extension_expression
(extension_identifier) @_name
(#eq? @_name "relay")
(expression_statement
(_ (_) @injection.content (#set! injection.language "graphql") )))
((raw_gql) @injection.content
(#set! injection.language "graphql"))