summaryrefslogtreecommitdiff
path: root/runtime/queries/d/indents.scm
diff options
context:
space:
mode:
authorGarrett D'Amore2022-10-20 21:54:17 +0000
committerGitHub2022-10-20 21:54:17 +0000
commit36f97b6aadec1a5c0cc61859d4f456f005983be0 (patch)
treee732a26348c6b35ca6025774a138a12e38202469 /runtime/queries/d/indents.scm
parentde607830a2e9643dfe99828b9329f533a4f31fa9 (diff)
Add support for D (#4372)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'runtime/queries/d/indents.scm')
-rw-r--r--runtime/queries/d/indents.scm17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/queries/d/indents.scm b/runtime/queries/d/indents.scm
new file mode 100644
index 00000000..73ff0b82
--- /dev/null
+++ b/runtime/queries/d/indents.scm
@@ -0,0 +1,17 @@
+[
+ (parameters)
+ (template_parameters)
+ (expression_statement)
+ (aggregate_body)
+ (function_body)
+ (scope_statement)
+ (block_statement)
+ (case_statement)
+] @indent
+
+[
+ (case)
+ (default)
+ "}"
+ "]"
+] @outdent