fix(injections): dtd, glimmer.*, razor, tablegen, teal

This commit is contained in:
Christian Clason 2025-04-27 11:04:54 +02:00
parent 4c7509e7b0
commit 3b308861a8
6 changed files with 5 additions and 20 deletions

View file

@ -1,13 +1,5 @@
; inherits: ecma
; Parse Ember/Glimmer/Handlebars/HTMLBars/etc. template literals
; e.g.: await render(hbs`<SomeComponent />`)
(call_expression
function: ((identifier) @_name
(#eq? @_name "hbs"))
arguments: ((template_string) @glimmer
(#offset! @glimmer 0 1 0 -1)))
; Ember Unified <template> syntax
; e.g.: <template><SomeComponent @arg={{double @value}} /></template>
((glimmer_template) @injection.content