diff options
Diffstat (limited to 'vendor/queries/README.md')
| -rw-r--r-- | vendor/queries/README.md | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/vendor/queries/README.md b/vendor/queries/README.md index 082f4e6b..2977e1cc 100644 --- a/vendor/queries/README.md +++ b/vendor/queries/README.md @@ -1,4 +1,4 @@ -# Textobject queries +# Textobject and indent queries `<grammar>/textobjects.scm` is helix's own query for that grammar, vendored from helix (https://github.com/helix-editor/helix) at 278b24389, the @@ -16,3 +16,16 @@ them), and erlang, whose helix query does not compile against the grammar version pardes builds. Those grammars have no textobjects, and the keys do nothing there, as in helix without a query. + +`<grammar>/indents.scm` is helix's indent query for that grammar, vendored +the same way from the same commit, for src/indent.zig: the indent a new line +takes on Enter, `o` and `O`. Vendored for bash, c, c_sharp, clojure, cpp +(with c's inlined), css, elixir, fortran, go, html, java, javascript (ecma's +inlined), json, kotlin, ocaml, php, python, ruby, rust, scala and zig. +`zig/indents.scm` is MODIFIED for this zig grammar's node names, and +`rust/indents.scm` writes its three `#match?` regexes with `^` where helix's +open with `\A`, which mvzr does not know; their headers say so. Not vendored: +ada, haskell, markdown, pascal, powershell and typst (helix has no indent +query for them), and erlang, whose query does not compile against the +grammar version pardes builds. A file of those keeps acme's autoindent, the +line's own indent as it is. |
