aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/vim/injections.scm
blob: e2dea8fe7561730d6baf0fef0883da96b9d1f47d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(lua_statement (script (body) @lua))
(lua_statement (chunk) @lua)
; (ruby_statement (script (body) @ruby))
; (ruby_statement (chunk) @ruby)
; (python_statement (script (body) @python))
; (python_statement (chunk) @python)
;; (perl_statement (script (body) @perl))
;; (perl_statement (chunk) @perl)

; (autocmd_statement (pattern) @regex)

((set_item
   option: (option_name) @_option
   value: (set_value) @vim)
  (#any-of? @_option
    "includeexpr" "inex"
    "printexpr" "pexpr"
    "formatexpr" "fex"
    "indentexpr" "inde"
    "foldtext" "fdt"
    "foldexpr" "fde"
    "diffexpr" "dex"
    "patchexpr" "pex"
    "charconvert" "ccv"))

; (comment) @comment