helix/helix-core/src
Michael Davis b1f4717356
Allow multiple `#not-kind-eq?` predicates in indent queries
This fixes a regression from the switch to tree-house with one of the
custom predicates in indent queries: `#not-kind-eq?`. This predicate
should be allowed to be written multiple times in a pattern. For example
in the Go indents:

    ; Switches and selects aren't indented, only their case bodies are.
    ; Outdent all closing braces except those closing switches or selects.
    (
        (_ "}" @outdent) @outer
        (#not-kind-eq? @outer "select_statement")
        (#not-kind-eq? @outer "type_switch_statement")
        (#not-kind-eq? @outer "expression_switch_statement")
    )

So instead of an `Option<T>` of one we need a `Vec<T>` and we need to
check that all of these predicates are individually satisfied (basically
`iter().all(/* node kind is not expected kind for that capture */)`).
2025-06-06 12:14:43 -04:00
..
doc_formatter Use the first char in a grapheme for classification (#12483) 2025-02-01 17:09:45 -06:00
increment Use non-deprecated chrono Duration functions 2024-03-14 14:13:56 +09:00
snippets Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
syntax Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
auto_pairs.rs chore: clean up clippy lints (#11377) 2024-08-01 06:39:46 +09:00
case_conversion.rs add snippet system to helix core 2024-12-17 13:34:39 -05:00
chars.rs Revert "Replace unicode-general-category with icu-properties (#10989)" (#11006) 2024-06-23 10:05:53 +09:00
command_line.rs feat: give formatters access to filename (#13429) 2025-04-28 17:34:05 -05:00
comment.rs syntax: Move config types to a separate module 2025-05-13 18:30:21 -04:00
completion.rs core: Make completion item documentation optional 2025-02-01 21:24:25 -05:00
config.rs syntax: Move config types to a separate module 2025-05-13 18:30:21 -04:00
diagnostic.rs Add pull diagnostics `identifier` to LSP diagnostic provider 2025-03-22 09:25:29 -04:00
diff.rs delete outdated reference to cessen/ropey#25 (#4928) 2022-11-28 19:07:47 -06:00
doc_formatter.rs Move rope grapheme iterators from core to stdx 2025-01-27 09:24:40 -05:00
editor_config.rs Support EditorConfig (#13056) 2025-03-22 16:06:41 +09:00
fuzzy.rs Bump nucleo to v0.4.1 2024-07-15 09:31:32 -04:00
graphemes.rs Use the first char in a grapheme for classification (#12483) 2025-02-01 17:09:45 -06:00
history.rs Prefer RopeSlice to &Rope in helix_core::syntax 2023-07-27 11:50:19 +09:00
indent.rs Allow multiple `#not-kind-eq?` predicates in indent queries 2025-06-06 12:14:43 -04:00
lib.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
line_ending.rs Add config for default line ending (#5621) 2023-06-16 12:02:15 -05:00
macros.rs Split parts of helix-term into helix-view. 2020-09-21 18:24:16 +09:00
match_brackets.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
movement.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
object.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
position.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
rope_reader.rs search buffer contents during global search (#5652) 2023-07-11 21:26:11 +09:00
search.rs Jump to the next number on the line before incrementing (#1778) 2022-04-01 22:14:37 +09:00
selection.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
snippets.rs add snippet system to helix core 2024-12-17 13:34:39 -05:00
surround.rs test: match around closest pair tree-sitter version 2024-04-24 16:36:13 -04:00
syntax.rs Consistently use `helix_core::config::default_{lang,config}_loader` 2025-05-29 09:55:26 -04:00
test.rs perf: use `next_back` on `DoubleEndedIterator` 2025-04-06 12:03:14 -05:00
text_annotations.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
textobject.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
transaction.rs fix(clippy): clippy 1.83 lints (#12150) 2024-12-02 08:23:32 -06:00
uri.rs Make helix_core::Uri cheap to clone 2024-09-03 09:50:31 -04:00
wrap.rs fix: simplify text reflowing strategy to improve language compatibility (#12048) 2024-11-20 16:40:43 -06:00