aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/bitbake/injections.scm
blob: 35c984a5b74a3a6f4ed49158c944bdb1ca6b45b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(call
  function: (attribute
    object: (python_identifier) @_re)
  arguments: (argument_list
    (python_string
      (string_content) @injection.content) @_string)
  (#eq? @_re "re")
  (#lua-match? @_string "^r.*")
  (#set! injection.language "regex"))

((shell_content) @injection.content
  (#set! injection.language "bash"))

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