summaryrefslogtreecommitdiffstats
path: root/queries/python/injections.scm
blob: aa36a5af91626c96780b123a893d884bc7574346 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
(call
  function: (attribute
              object: (identifier) @_re)
  arguments: (argument_list . (string
                              (string_content) @injection.content))
  (#eq? @_re "re")
  (#set! injection.language "regex"))

((comment) @injection.content
 (#set! injection.language "comment"))