diff options
| author | George Harker <george@george-graphics.co.uk> | 2023-03-20 14:44:39 -0700 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-24 13:07:53 -0400 |
| commit | cb568af5393241e5dbc9c19157c5df5e9ca9af2d (patch) | |
| tree | e3a1848a3f1c7a03a4ecadd14f95022eaeb52f0f /queries/capnp | |
| parent | split delimiter into open_delimiter and close_delimiter (diff) | |
| download | nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.gz nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.bz2 nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.lz nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.xz nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.tar.zst nvim-treesitter-cb568af5393241e5dbc9c19157c5df5e9ca9af2d.zip | |
use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md
adjust indents for bass
fix doc capture comment
Diffstat (limited to 'queries/capnp')
| -rw-r--r-- | queries/capnp/indents.scm | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/queries/capnp/indents.scm b/queries/capnp/indents.scm index 601862d9d..e54ca9566 100644 --- a/queries/capnp/indents.scm +++ b/queries/capnp/indents.scm @@ -11,26 +11,26 @@ (struct) (struct_shorthand) (union) -] @indent +] @indent.begin -((struct_shorthand (property)) @aligned_indent - (#set! "open_delimiter" "(") - (#set! "close_delimiter" ")")) +((struct_shorthand (property)) @indent.align + (#set! indent.open_delimiter "(") + (#set! indent.close_delimiter ")")) -((const_list (const_value)) @aligned_indent - (#set! "open_delimiter" "(") - (#set! "close_delimiter" ")")) +((const_list (const_value)) @indent.align + (#set! indent.open_delimiter "(") + (#set! indent.close_delimiter ")")) [ "}" ")" -] @indent_end +] @indent.end -[ "{" "}" ] @branch +[ "{" "}" ] @indent.branch -[ "(" ")" ] @branch +[ "(" ")" ] @indent.branch [ (ERROR) (comment) -] @auto +] @indent.auto |
