mirror of
https://github.com/helix-editor/helix
synced 2026-05-05 05:42:27 +02:00
7b117bea8e
When typing an incomplete for-comprehension like `for {`, tree-sitter
creates an ERROR node instead of a for_expression. Add an
`(ERROR "for") @indent` pattern so indentation works during editing.
Signed-off-by: majiayu000 <1835304752@qq.com>
25 lines
339 B
Scheme
25 lines
339 B
Scheme
[
|
|
(block)
|
|
(arguments)
|
|
(parameter)
|
|
(class_definition)
|
|
(trait_definition)
|
|
(object_definition)
|
|
(function_definition)
|
|
(val_definition)
|
|
(import_declaration)
|
|
(while_expression)
|
|
(do_while_expression)
|
|
(for_expression)
|
|
(try_expression)
|
|
(match_expression)
|
|
] @indent
|
|
|
|
(ERROR "for") @indent
|
|
|
|
[
|
|
"}"
|
|
"]"
|
|
")"
|
|
] @outdent
|