nix: add indent TS query (#12829)

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
pull/12753/head
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

@ -148,7 +148,7 @@
| nginx | ✓ | | | | | nginx | ✓ | | | |
| nickel | ✓ | | ✓ | `nls` | | nickel | ✓ | | ✓ | `nls` |
| nim | ✓ | ✓ | ✓ | `nimlangserver` | | nim | ✓ | ✓ | ✓ | `nimlangserver` |
| nix | ✓ | ✓ | | `nil`, `nixd` | | nix | ✓ | ✓ | | `nil`, `nixd` |
| nu | ✓ | | | `nu` | | nu | ✓ | | | `nu` |
| nunjucks | ✓ | | | | | nunjucks | ✓ | | | |
| ocaml | ✓ | | ✓ | `ocamllsp` | | ocaml | ✓ | | ✓ | `ocamllsp` |

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