mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat(thrift): improve queries
This commit is contained in:
parent
17d7cf6f4b
commit
93386fc725
5 changed files with 57 additions and 2 deletions
20
queries/thrift/indents.scm
Normal file
20
queries/thrift/indents.scm
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
(definition) @indent
|
||||
|
||||
; (function (function_identifier) @aligned_indent)
|
||||
|
||||
((function_parameters (function_parameter)) @aligned_indent
|
||||
(#set! "delimiter" "()"))
|
||||
|
||||
((exception_parameters (exception_parameter)) @aligned_indent
|
||||
(#set! "delimiter" "()"))
|
||||
|
||||
"}" @indent_end
|
||||
|
||||
[ "{" "}" ] @branch
|
||||
|
||||
[ "(" ")" ] @branch
|
||||
|
||||
[
|
||||
(ERROR)
|
||||
(comment)
|
||||
] @auto
|
||||
Loading…
Add table
Add a link
Reference in a new issue