nix: add indent TS query (#12829)

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
This commit is contained in:
Milo Moisson 2025-02-10 21:47:31 +01:00 committed by GitHub
parent a6f94e04e6
commit a03becf021
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,22 @@
[
(indented_string_expression)
(string_expression)
; these are all direct parents of (binding_set)
(attrset_expression)
(let_attrset_expression)
(rec_attrset_expression)
(let_expression)
(list_expression)
(parenthesized_expression)
] @indent
(if_expression [ "if" "then" "else" ] @align)
[
"}"
"]"
")"
] @outdent