aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python/injections.scm
blob: b836ea3f7b04f0c4c717d807511f76e5798c4faf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
(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"))