feat(glimmer): add glimmer-javascript and glimmer-typescript (#7064)

This commit is contained in:
NullVoxPopuli 2024-08-31 13:15:40 -04:00 committed by GitHub
parent 0b61eb4923
commit 628f53e4cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 152 additions and 8 deletions

View file

@ -0,0 +1,15 @@
; 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
(#set! injection.language "glimmer")
(#set! injection.include-children))