nvim-treesitter/queries/hare/injections.scm
2024-01-19 16:58:37 +01:00

18 lines
307 B
Scheme

((comment) @injection.content
(#set! injection.language "comment"))
((call_expression
.
(_) @_fnname
.
"("
.
(_
[
(string_content)
(raw_string_content)
] @injection.content)
.
")")
(#any-of? @_fnname "compile" "regex::compile")
(#set! injection.language "regex"))