aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/dart/indents.toml
diff options
context:
space:
mode:
authorLuke Jones2021-12-18 04:41:32 +0000
committerGitHub2021-12-18 04:41:32 +0000
commitedf3c70c302aef628dc1a63895e2492d34e82507 (patch)
treea7719bb14513747d1fb6c868b473fa36823547f9 /runtime/queries/dart/indents.toml
parent0683f0a20ae1c1ce3e7788e303c468767381e6fd (diff)
Add dart lsp config and queries (#1250)
* Add language: dart The setup requires that dart be in the users path, such as: ``` export PATH="$HOME/Android/flutter/bin/cache/dart-sdk/bin/:$PATH" ``` Refactor the dart highlights * lang: dart: add indents and locals * lang: dart: corrections to local scope Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'runtime/queries/dart/indents.toml')
-rw-r--r--runtime/queries/dart/indents.toml20
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/queries/dart/indents.toml b/runtime/queries/dart/indents.toml
new file mode 100644
index 00000000..5c11e05d
--- /dev/null
+++ b/runtime/queries/dart/indents.toml
@@ -0,0 +1,20 @@
+indent = [
+ "class_body",
+ "function_body",
+ "function_expression_body",
+ "declaration",
+ "initializers",
+ "switch_block",
+ "if_statement",
+ "formal_parameter_list",
+ "formal_parameter",
+ "list_literal",
+ "return_statement",
+ "arguments"
+]
+
+outdent = [
+ "}",
+ "]",
+ ")"
+]