diff options
author | Oliver Hechtl | 2021-12-18 04:40:34 +0000 |
---|---|---|
committer | GitHub | 2021-12-18 04:40:34 +0000 |
commit | 0683f0a20ae1c1ce3e7788e303c468767381e6fd (patch) | |
tree | 8841bf08164e81462bae031be25958a8ad5d9212 /runtime/queries/scala/indents.toml | |
parent | 3ef115d4203fab93f7efe4f65d8dd63cc4535b91 (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.toml | 23 |
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 = [ + "}", + "]", + ")" +] |