diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 03:35:02 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-10 04:08:16 -0300 |
| commit | e398c24ba19948727affdc6a29254ac69a6b7699 (patch) | |
| tree | 0770792049a135447b54be2a52367233e786c654 /vendor/queries/elixir | |
| parent | 22b981446238977d9c3f85eb4856324a9daa9753 (diff) | |
| download | pardes-e398c24ba19948727affdc6a29254ac69a6b7699.tar.gz pardes-e398c24ba19948727affdc6a29254ac69a6b7699.zip | |
syntax: helix's indents.scm vendored beside each grammar's textobjects.scm and embedded the same way (zig's adapted to this grammar's node names, rust's \A regexes written with ^, erlang's left out as it does not compile here), compiled when first asked for as a Lazy beside the textobjects, so a new line can take its indent from the tree
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'vendor/queries/elixir')
| -rw-r--r-- | vendor/queries/elixir/indents.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/queries/elixir/indents.scm b/vendor/queries/elixir/indents.scm new file mode 100644 index 00000000..cc535930 --- /dev/null +++ b/vendor/queries/elixir/indents.scm @@ -0,0 +1,27 @@ +; Vendored from helix (https://github.com/helix-editor/helix) at 278b24389: +; runtime/queries/elixir/indents.scm. +; Licensed under the Mozilla Public License 2.0 (vendor/queries/helix.LICENSE, +; https://mozilla.org/MPL/2.0/). + +[ + (anonymous_function) + (do_block) + (stab_clause) + (map) + (list) + (tuple) +] @indent + +; The else/rescue/catch/after clause blocks nest *inside* the do_block, which +; already provides the body's one level of indent; the keyword itself outdents +; back to the construct's level. +[ + "end" + "else" + "rescue" + "catch" + "after" + "]" + "}" + ")" +] @outdent |
