Debian Codegraph @

runtime/queries/godot-resource/injections.scm

raw symbols SCIP
1 ((comment) @injection.content
2 (#set! injection.language "comment"))
3
4 ; ((section) @injection.content
5 ; (#set! injection.language "comment"))
6
7 ((section
8 (attribute
9 (identifier) @_type
10 (string) @_is_shader)
11 (property
12 (path) @_is_code
13 (string) @injection.content))
14 (#eq? @_type "type")
15 (#match? @_is_shader "Shader")
16 (#eq? @_is_code "code")
17 (#set! injection.language "glsl")
18 )
19
20 ((section
21 (identifier) @_is_resource
22 (property
23 (path) @_is_code
24 (string) @injection.content))
25 (#eq? @_is_resource "resource")
26 (#eq? @_is_code "code")
27 (#set! injection.language "glsl")
28 )
29
30 ((section
31 (identifier) @_id
32 (property
33 (path) @_is_expression
34 (string) @injection.content))
35 (#eq? @_id "sub_resource")
36 (#eq? @_is_expression "expression")
37 (#set! injection.language "glsl")
38 )
39
40 ((section
41 (attribute
42 (identifier) @_type
43 (string) @_is_shader)
44 (property
45 (path) @_is_code
46 (string) @injection.content))
47 (#eq? @_type "type")
48 (#match? @_is_shader "GDScript")
49 (#eq? @_is_code "script/source")
50 (#set! injection.language "gdscript")
51 )