summaryrefslogtreecommitdiff
path: root/runtime/queries/scala/indents.toml
diff options
context:
space:
mode:
authorOliver Hechtl2021-12-18 04:40:34 +0000
committerGitHub2021-12-18 04:40:34 +0000
commit0683f0a20ae1c1ce3e7788e303c468767381e6fd (patch)
tree8841bf08164e81462bae031be25958a8ad5d9212 /runtime/queries/scala/indents.toml
parent3ef115d4203fab93f7efe4f65d8dd63cc4535b91 (diff)
Add scala syntax highlights (#1278)
* add partial scala syntax highlights * ran cargo xtask docgen * updated tree-sitter-scala, fixed highlights * fix comments * move identifier to the end of the highlights * add indents
Diffstat (limited to 'runtime/queries/scala/indents.toml')
-rw-r--r--runtime/queries/scala/indents.toml23
1 files changed, 23 insertions, 0 deletions
diff --git a/runtime/queries/scala/indents.toml b/runtime/queries/scala/indents.toml
new file mode 100644
index 00000000..6de54844
--- /dev/null
+++ b/runtime/queries/scala/indents.toml
@@ -0,0 +1,23 @@
+
+indent = [
+ "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"
+]
+
+outdent = [
+ "}",
+ "]",
+ ")"
+]