Debian Codegraph @

runtime/queries/_gjs/injections.scm

raw symbols SCIP
1 ; PARSE GLIMMER TEMPLATES
2 (call_expression
3 function: [
4 (identifier) @injection.language
5 (member_expression
6 property: (property_identifier) @injection.language)
7 ]
8 arguments: (template_string) @injection.content)
9
10 ; e.g.: <template><SomeComponent @arg={{double @value}} /></template>
11 ((glimmer_template) @injection.content
12 (#set! injection.language "glimmer")
13 (#set! injection.include-children))
14
15 ; Parse Ember/Glimmer/Handlebars/HTMLBars/etc. template literals
16 ; e.g.: await render(hbs`<SomeComponent />`)
17 ((call_expression
18 function: ((identifier) @_name
19 (#eq? @_name "hbs"))
20 arguments: (template_string) @injection.content)
21 (#set! injection.language "glimmer"))