mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat: add liquidsoap
Co-authored-by: Christian Clason <c.clason@uni-graz.at>
This commit is contained in:
parent
eb96ca52a7
commit
691fdc61a1
7 changed files with 187 additions and 0 deletions
54
queries/liquidsoap/indents.scm
Normal file
54
queries/liquidsoap/indents.scm
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
[
|
||||
"%ifdef"
|
||||
"%ifndef"
|
||||
"%ifencoder"
|
||||
"%ifnencoder"
|
||||
"%ifversion"
|
||||
"%else"
|
||||
"%endif"
|
||||
"%argsof"
|
||||
"%include"
|
||||
] @indent.zero
|
||||
|
||||
[
|
||||
"if"
|
||||
"def"
|
||||
"let"
|
||||
"for"
|
||||
"while"
|
||||
"try"
|
||||
"{"
|
||||
"["
|
||||
"("
|
||||
] @indent.begin
|
||||
|
||||
(ERROR "def") @indent.begin
|
||||
|
||||
(def "def_end" @indent.end)
|
||||
(if "if_end" @indent.end)
|
||||
(block "block_end" @indent.end)
|
||||
(for "for_end" @indent.end)
|
||||
(while "while_end" @indent.end)
|
||||
(try "try_end" @indent.end)
|
||||
|
||||
[
|
||||
"then"
|
||||
"do"
|
||||
"else"
|
||||
"elsif"
|
||||
"catch"
|
||||
] @indent.branch
|
||||
|
||||
[
|
||||
"def_end"
|
||||
"if_end"
|
||||
"block_end"
|
||||
"for_end"
|
||||
"while_end"
|
||||
"try_end"
|
||||
"}"
|
||||
"]"
|
||||
")"
|
||||
] @indent.branch @indent.end
|
||||
|
||||
(comment) @indent.auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue