aboutsummaryrefslogtreecommitdiffstats
path: root/queries/query/injections.scm
blob: 6bde865d0b1b81cf7b2ce5c72c92417374a0ff54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
((predicate 
  name: (identifier) @_name
  parameters: (parameters (string) @injection.content))
 (#match? @_name "^#?(not-)?(match|vim-match)$")
 (#set! injection.language "regex")
 (#offset! @injection.content 0 1 0 -1))

((predicate
  name: (identifier) @_name
  parameters: (parameters (string) @injection.content))
 (#match? @_name "^#?(not-)?lua-match$")
 (#set! injection.language "luap")
 (#offset! @injection.content 0 1 0 -1))

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