mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
indents(sql): initial support (#4857)
* indents(sql): initial support * indents(sql): fix queries and lua style
This commit is contained in:
parent
9bef726044
commit
dae928b3bb
9 changed files with 86 additions and 0 deletions
27
queries/sql/indents.scm
Normal file
27
queries/sql/indents.scm
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
[
|
||||
(select)
|
||||
(cte)
|
||||
(column_definitions)
|
||||
(case)
|
||||
(subquery)
|
||||
(insert)
|
||||
] @indent.begin
|
||||
|
||||
|
||||
(compound_statement
|
||||
(keyword_begin)
|
||||
) @indent.begin
|
||||
|
||||
(column_definitions ")" @indent.branch)
|
||||
|
||||
(subquery ")" @indent.branch)
|
||||
|
||||
(cte ")" @indent.branch)
|
||||
|
||||
[
|
||||
(keyword_end)
|
||||
(keyword_values)
|
||||
(keyword_into)
|
||||
] @indent.branch
|
||||
|
||||
(keyword_end) @indent.end
|
||||
Loading…
Add table
Add a link
Reference in a new issue