Skip to content

Commit

Permalink
feat: add Capnp
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq authored and lewis6991 committed May 7, 2023
1 parent 922ba68 commit c8626af
Show file tree
Hide file tree
Showing 3 changed files with 1,269 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use 'nvim-treesitter/nvim-treesitter-context'
- [x] `bash`
- [x] `c`
- [x] `c_sharp`
- [x] `capnp`
- [x] `cpp`
- [x] `css`
- [x] `dart`
Expand Down Expand Up @@ -77,7 +78,6 @@ use 'nvim-treesitter/nvim-treesitter-context'
- [ ] `bibtex`
- [ ] `bicep`
- [ ] `blueprint`
- [ ] `capnp`
- [ ] `chatito`
- [ ] `clojure`
- [ ] `cmake`
Expand Down
31 changes: 31 additions & 0 deletions queries/capnp/context.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
(enum
"{" (_) @context.end
) @context

(struct
"{" (_) @context.end
) @context

(group
"{" (_) @context.end
) @context

(union
"{" (_) @context.end
) @context

(interface
"{" (_) @context.end
) @context

(field
"=" (_) @context.end
) @context

(_
(struct_shorthand "(" (_) @context.end)
) @context

(_
(const_list "[" (_) @context.end)
) @context
Loading

0 comments on commit c8626af

Please sign in to comment.