mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 22:24:04 +02:00
feat: add Capnp
This commit is contained in:
parent
922ba682fd
commit
c8626af1de
3 changed files with 1269 additions and 1 deletions
|
@ -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
31
queries/capnp/context.scm
Normal 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
1237
test/test.capnp
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue