1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:50:04 +08:00
SpaceVim/bundle/nvim-treesitter/queries/dart/indents.scm
2022-04-14 12:01:23 +08:00

28 lines
381 B
Scheme

[
(class_body)
(function_body)
(function_expression_body)
(declaration (initializers))
(switch_block)
(if_statement)
(formal_parameter_list)
(formal_parameter)
(list_literal)
(return_statement)
(arguments)
] @indent
[
"("
")"
"{"
"}"
"["
"]"
] @branch
; this one is for dedenting the else block
(if_statement (block) @branch)
(comment) @ignore