From d89d05734597141b87b25a2d4e27cd01450a0f77 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Tue, 28 Nov 2023 11:57:11 +0000 Subject: [PATCH] Clarify parameter name --- src/parse/syntax.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()