mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 22:24:04 +02:00
add support for glimmer
This commit is contained in:
parent
d0f03149ed
commit
cf61804761
3 changed files with 120 additions and 1 deletions
|
@ -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`
|
||||
|
|
4
queries/glimmer/context.scm
Normal file
4
queries/glimmer/context.scm
Normal file
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
(element_node)
|
||||
(block_statement)
|
||||
] @context
|
115
test/test.hbs
Normal file
115
test/test.hbs
Normal 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>
|
Loading…
Reference in a new issue