mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -04:00
15 lines
430 B
Scheme
15 lines
430 B
Scheme
|
|
(call
|
||
|
|
function: (attribute
|
||
|
|
object: (python_identifier) @_re)
|
||
|
|
arguments: (argument_list (python_string
|
||
|
|
(string_content) @injection.content) @_string)
|
||
|
|
(#eq? @_re "re")
|
||
|
|
(#lua-match? @_string "^r.*")
|
||
|
|
(#set! injection.language "regex"))
|
||
|
|
|
||
|
|
((shell_content) @injection.content
|
||
|
|
(#set! injection.language "bash"))
|
||
|
|
|
||
|
|
((comment) @injection.content
|
||
|
|
(#set! injection.language "comment"))
|