Debian Codegraph @

runtime/queries/xwiki/injections.scm

raw symbols SCIP
1 ; extends
2
3 ; Support injections for the code macro
4 (macro
5 name: (macro_name) @_macro_name
6 params: (macro_params
7 (macro_param
8 name: (param_name) @_param_name
9 value: (param_value
10 (string
11 (string_content) @injection.language))))
12 (macro_content) @injection.content
13 (#match? @_macro_name "^code$")
14 (#match? @_param_name "^language$"))
15
16 ; Support the HTML macro
17 (macro
18 name: (macro_name) @_macro_name
19 (macro_content) @injection.content
20 (#match? @_macro_name "^html$")
21 (#set! injection.language "html"))
22
23 ; Support the Python macro
24 (macro
25 name: (macro_name) @_macro_name
26 (macro_content) @injection.content
27 (#match? @_macro_name "^python$")
28 (#set! injection.language "python"))
29
30 ; Support the Ruby macro
31 (macro
32 name: (macro_name) @_macro_name
33 (macro_content) @injection.content
34 (#match? @_macro_name "^ruby$")
35 (#set! injection.language "ruby"))
36
37 ; Support the Groovy macro
38 (macro
39 name: (macro_name) @_macro_name
40 (macro_content) @injection.content
41 (#match? @_macro_name "^groovy$")
42 (#set! injection.language "^groovy"))
43
44 ; Support the Velocity macro
45 (macro
46 name: (macro_name) @_macro_name
47 (macro_content) @injection.content
48 (#match? @_macro_name "^velocity$")
49 (#set! injection.language "^velocity"))
50
51 ; Support the PHP macro
52 (macro
53 name: (macro_name) @_macro_name
54 (macro_content) @injection.content
55 (#match? @_macro_name "^php$")
56 (#set! injection.language "php"))