summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Lay (Clay) <connorlay@pm.me>2022-02-06 12:48:38 -0800
committerStephan Seitz <stephan.seitz@fau.de>2022-02-15 19:01:02 +0100
commitda6132ebbe39424c14e73fe1a7d2e3a9c028c645 (patch)
treeae9cb23503edd994a92d48d00582777670529597
parentce7aaa6720f60dcec13e5692d0e519afb84d5177 (diff)
Add Gleam indents
-rw-r--r--queries/gleam/indents.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/queries/gleam/indents.scm b/queries/gleam/indents.scm
new file mode 100644
index 00000000..e795ea09
--- /dev/null
+++ b/queries/gleam/indents.scm
@@ -0,0 +1,21 @@
+; Gleam indents similar to Rust and JavaScript
+[
+ (case)
+ (case_clause)
+ (constant)
+ (expression_group)
+ (function)
+ (let)
+ (list)
+ (public_function)
+ (public_opaque_type_definition)
+ (public_type_definition)
+ (tuple)
+ (type_definition)
+] @indent
+
+[
+ ")"
+ "]"
+ "}"
+] @indent_end @branch