mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
29 lines
652 B
Scheme
29 lines
652 B
Scheme
(call
|
|
function: (attribute
|
|
object: (identifier) @_re)
|
|
arguments: (argument_list
|
|
.
|
|
(string
|
|
(string_content) @injection.content))
|
|
(#eq? @_re "re")
|
|
(#set! injection.language "regex"))
|
|
|
|
(call
|
|
function: (attribute
|
|
object: (identifier) @_re)
|
|
arguments: (argument_list
|
|
.
|
|
(concatenated_string
|
|
(string
|
|
(string_content) @injection.content))
|
|
(#eq? @_re "re")
|
|
(#set! injection.language "regex")))
|
|
|
|
((binary_operator
|
|
left: (string
|
|
(string_content) @injection.content)
|
|
operator: "%")
|
|
(#set! injection.language "printf"))
|
|
|
|
((comment) @injection.content
|
|
(#set! injection.language "comment"))
|