mirror of https://github.com/helix-editor/helix
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 */)`). |
||
---|---|---|
.. | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml |