1
0
mirror of https://github.com/helix-editor/helix synced 2026-05-05 05:42:27 +02:00
Files
helix/runtime/queries/scala/indents.scm
lif 7b117bea8e fix: handle Scala for-comprehension indentation in ERROR nodes (#15512)
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>
2026-03-26 10:10:45 -05:00

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