1
0
mirror of https://github.com/helix-editor/helix synced 2026-03-08 21:06:21 +01:00
helix/runtime/queries/cython/injections.scm
2025-08-31 08:35:33 -04:00

19 lines
410 B
Scheme

(call
function: (attribute
object: (identifier) @_re)
arguments: (argument_list
.
(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"))