Skip to content

Commit f642203

Browse files
the-mikedavispostsolar
authored andcommitted
highlighting: Gate multiple captures behind #is-not? local predicates (helix-editor#9390)
1 parent 9c2b170 commit f642203

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

helix-core/src/syntax.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2306,6 +2306,7 @@ impl<'a> Iterator for HighlightIter<'a> {
23062306
// highlighting patterns that are disabled for local variables.
23072307
if definition_highlight.is_some() || reference_highlight.is_some() {
23082308
while layer.config.non_local_variable_patterns[match_.pattern_index] {
2309+
match_.remove();
23092310
if let Some((next_match, next_capture_index)) = captures.peek() {
23102311
let next_capture = next_match.captures[*next_capture_index];
23112312
if next_capture.node == capture.node {

0 commit comments

Comments
 (0)