nvim-treesitter/queries/gleam/indents.scm
George Harker cb568af539 use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md

adjust indents for bass

fix doc capture comment
2023-03-24 13:07:53 -04:00

30 lines
520 B
Scheme

; Gleam indents similar to Rust and JavaScript
[
(assert)
(case)
(case_clause)
(constant)
(expression_group)
(external_function)
(function)
(import)
(let)
(list)
(constant)
(external_function)
(function)
(type_definition)
(type_alias)
(todo)
(try)
(tuple)
] @indent.begin
[
")"
"]"
"}"
] @indent.end @indent.branch
; Gleam pipelines are not indented, but other binary expression chains are
((binary_expression operator: _ @_operator) @indent.begin (#not-eq? @_operator "|>"))