diff --git a/src/parse/syntax.rs b/src/parse/syntax.rs index fc461482b..73a78e416 100644 --- a/src/parse/syntax.rs +++ b/src/parse/syntax.rs @@ -754,7 +754,7 @@ impl MatchedPos { ck: ChangeKind, highlight: TokenKind, pos: &[SingleLineSpan], - is_close: bool, + is_close_delim: bool, ) -> Vec { match ck { ReplacedComment(this, opposite) | ReplacedString(this, opposite) => { @@ -790,7 +790,7 @@ impl MatchedPos { close_position, .. } => { - if is_close { + if is_close_delim { close_position.clone() } else { open_position.clone()