aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/rust/indents.toml
Commit message (Collapse)AuthorAge
* Add basic indentation for languages without treesitter-based indentation ↵Triton1712022-01-03
| | | | | | | rules (always use the indent of the current line for a new line). (#1341) Fix several bugs in the treesitter indentation calculation. Co-authored-by: Triton171 <triton0171@gmail.com>
* rust: Indent multi line call expressions one level deeperBlaž Hrastnik2021-07-26
|
* Improve rust indentation queriesBlaž Hrastnik2021-07-26
| | | | | if/if let are already handled by block, and keeping these scopes would indent else blocks one level too far.
* Adjust rust indentsBlaž Hrastnik2021-05-30
|
* Hacky way to specify indent scopes per language via toml configs.Blaž Hrastnik2021-05-14
Can't do it via a scm query nicely because it returns an iterator over all the matches, whereas we want to traverse the tree ourselves. Can't extract the pattern data from a parsed query either. Oh well, toml files for now.