mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat: add yuck
This commit is contained in:
parent
04b87c7b6e
commit
b9a7591b6c
8 changed files with 278 additions and 0 deletions
25
queries/yuck/indents.scm
Normal file
25
queries/yuck/indents.scm
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[
|
||||
(ast_block)
|
||||
(array)
|
||||
(expr)
|
||||
(json_array)
|
||||
(json_object)
|
||||
(parenthesized_expression)
|
||||
] @indent
|
||||
|
||||
; TODO: can't get this to work, goal is to indent at the property ":" prefix
|
||||
; ((list (identifier) (property)) @aligned_indent
|
||||
; (#set! "delimiter" ":"))
|
||||
|
||||
[")" "}" "]"] @indent_end
|
||||
|
||||
[ "{" "}" ] @branch
|
||||
|
||||
[ "(" ")" ] @branch
|
||||
|
||||
[ "[" "]" ] @branch
|
||||
|
||||
[
|
||||
(ERROR)
|
||||
(comment)
|
||||
] @auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue