mirror of
https://github.com/helix-editor/helix.git
synced 2024-12-18 22:11:55 +04:00
07968880e6
Co-authored-by: Michael Davis <mcarsondavis@gmail.com> Co-authored-by: Freddie Ridell <freddie@Gilbraith-MacBook-Pro.local>
30 lines
786 B
Scheme
30 lines
786 B
Scheme
((comment) @injection.content (#set! injection.language "comment"))
|
|
|
|
; %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") )))
|
|
|