summaryrefslogtreecommitdiff
path: root/vendor/queries/scala/indents.scm
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/queries/scala/indents.scm')
-rw-r--r--vendor/queries/scala/indents.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/queries/scala/indents.scm b/vendor/queries/scala/indents.scm
new file mode 100644
index 00000000..0583c186
--- /dev/null
+++ b/vendor/queries/scala/indents.scm
@@ -0,0 +1,29 @@
+; Vendored from helix (https://github.com/helix-editor/helix) at 278b24389:
+; runtime/queries/scala/indents.scm.
+; Licensed under the Mozilla Public License 2.0 (vendor/queries/helix.LICENSE,
+; https://mozilla.org/MPL/2.0/).
+
+[
+ (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