summaryrefslogtreecommitdiffstats
path: root/queries/java/injections.scm
blob: 8696c16ff640a3b9ef8c6f0eb67293f9dbbfb461 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
([
  (block_comment)
  (line_comment)
 ] @injection.content
 (#set! injection.language "comment"))

((block_comment) @injection.content
  (#lua-match? @injection.content "/[*][!<*][^a-zA-Z]")
  (#set! injection.language "doxygen"))

((method_invocation
  name: (identifier) @_method
  arguments: (argument_list
               . (string_literal . (_) @injection.content)))
 (#any-of? @_method "format" "printf")
 (#set! injection.language "printf"))