Gleam indentation tests

This commit is contained in:
Connor Lay (Clay) 2022-02-12 15:12:05 -08:00 committed by Stephan Seitz
parent 4a5720332d
commit b62750e328
16 changed files with 239 additions and 0 deletions

View file

@ -1,16 +1,25 @@
; Gleam indents similar to Rust and JavaScript
[
(assert)
(case)
(case_clause)
(constant)
(expression_group)
(external_function)
(function)
(import)
(let)
(list)
(public_constant)
(public_external_function)
(public_function)
(public_opaque_type_definition)
(public_type_alias)
(public_type_definition)
(todo)
(try)
(tuple)
(type_alias)
(type_definition)
] @indent
@ -19,3 +28,6 @@
"]"
"}"
] @indent_end @branch
; Gleam pipelines are not indented, but other binary expression chains are
((binary_expression operator: _ @_operator) @indent (#not-eq? @_operator "|>"))