add support for glimmer

This commit is contained in:
Vadim Kazakov 2023-06-13 10:15:54 -06:00 committed by Lewis Russell
parent d0f03149ed
commit cf61804761
3 changed files with 120 additions and 1 deletions

View file

@ -45,6 +45,7 @@ use 'nvim-treesitter/nvim-treesitter-context'
- [x] `elixir`
- [x] `fish`
- [x] `fortran`
- [x] `glimmer`
- [x] `go`
- [x] `graphql`
- [x] `html_tags`
@ -114,7 +115,6 @@ use 'nvim-treesitter/nvim-treesitter-context'
- [ ] `gdscript`
- [ ] `git_rebase`
- [ ] `gleam`
- [ ] `glimmer`
- [ ] `glsl`
- [ ] `godot_resource`
- [ ] `gomod`

View file

@ -0,0 +1,4 @@
[
(element_node)
(block_statement)
] @context

115
test/test.hbs Normal file
View file

@ -0,0 +1,115 @@
<div>
</div>
<div>
<ul>
<li></li>
<li>
</li>
<li></li>
</ul>
{{#if this.test}}
<div>
</div>
{{else}}
<div>
</div>
{{/if}}
</div>