aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/nix/indents.scm
diff options
context:
space:
mode:
authorTimothy DeHerrera2022-05-30 18:47:18 +0000
committerGitHub2022-05-30 18:47:18 +0000
commiteba82250bb4403fcb2e3ade74ba7301a680bc561 (patch)
treed308322dec1d35180317918921f21750a48769a4 /runtime/queries/nix/indents.scm
parent370a16d0f00d6146fdeb87cc16fb352e860e2377 (diff)
feat(lang): Update Nix grammar & improve queries (#2472)
Diffstat (limited to 'runtime/queries/nix/indents.scm')
-rw-r--r--runtime/queries/nix/indents.scm33
1 files changed, 20 insertions, 13 deletions
diff --git a/runtime/queries/nix/indents.scm b/runtime/queries/nix/indents.scm
index 0790ce29..a12376e7 100644
--- a/runtime/queries/nix/indents.scm
+++ b/runtime/queries/nix/indents.scm
@@ -1,18 +1,25 @@
+
[
- ; "function",
- (bind)
- (assert)
- (with)
+ ; Bracket like
(let)
- (if)
-
(attrset)
- (list)
- (indented_string)
+ (rec_attrset)
+ (let_attrset)
(parenthesized)
-] @indent
+ (list)
-[
- "}"
- "]"
-] @outdent
+ ; Binding
+ (bind)
+ (inherit)
+ (inherit_from)
+ (formal)
+
+ ; Binary operations
+ (binary)
+ (has_attr)
+ (select)
+ (app)
+
+ ; Conditional
+ (if)
+] @indent \ No newline at end of file