mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
11 lines
342 B
Scheme
11 lines
342 B
Scheme
(call
|
|
function: (attribute
|
|
object: (identifier) @_re)
|
|
arguments: (argument_list (string
|
|
(string_content) @injection.content) @_string)
|
|
(#eq? @_re "re")
|
|
(#lua-match? @_string "^r.*")
|
|
(#set! injection.language "regex"))
|
|
|
|
((comment) @injection.content
|
|
(#set! injection.language "comment"))
|