feat: add Capnp

This commit is contained in:
Amaan Qureshi 2023-05-07 05:11:20 -04:00 committed by Lewis Russell
parent 922ba682fd
commit c8626af1de
3 changed files with 1269 additions and 1 deletions

View file

@ -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`
@ -77,7 +78,6 @@ use 'nvim-treesitter/nvim-treesitter-context'
- [ ] `bibtex`
- [ ] `bicep`
- [ ] `blueprint`
- [ ] `capnp`
- [ ] `chatito`
- [ ] `clojure`
- [ ] `cmake`

31
queries/capnp/context.scm Normal file
View file

@ -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

1237
test/test.capnp Normal file

File diff suppressed because it is too large Load diff