mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
Gleam indentation tests
This commit is contained in:
parent
4a5720332d
commit
b62750e328
16 changed files with 239 additions and 0 deletions
|
|
@ -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 "|>"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue