diff options
| author | Matthias Q <35303817+matthias-Q@users.noreply.github.com> | 2023-05-25 07:53:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-25 05:53:14 +0000 |
| commit | dae928b3bbbcdd3890c61549bdc4c50e1e0d3094 (patch) | |
| tree | 94166668dc2cad42bcb23a4c18b8278d893c6f2d /queries/sql | |
| parent | Update parsers: c, cuda, scala, t32 (diff) | |
| download | nvim-treesitter-dae928b3bbbcdd3890c61549bdc4c50e1e0d3094.tar nvim-treesitter-dae928b3bbbcdd3890c61549bdc4c50e1e0d3094.tar.gz nvim-treesitter-dae928b3bbbcdd3890c61549bdc4c50e1e0d3094.tar.bz2 nvim-treesitter-dae928b3bbbcdd3890c61549bdc4c50e1e0d3094.tar.lz nvim-treesitter-dae928b3bbbcdd3890c61549bdc4c50e1e0d3094.tar.xz nvim-treesitter-dae928b3bbbcdd3890c61549bdc4c50e1e0d3094.tar.zst nvim-treesitter-dae928b3bbbcdd3890c61549bdc4c50e1e0d3094.zip | |
indents(sql): initial support (#4857)
* indents(sql): initial support
* indents(sql): fix queries and lua style
Diffstat (limited to 'queries/sql')
| -rw-r--r-- | queries/sql/indents.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/queries/sql/indents.scm b/queries/sql/indents.scm new file mode 100644 index 000000000..a807c2bc4 --- /dev/null +++ b/queries/sql/indents.scm @@ -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 |
