From 69acf66cd81c21a2da57a5a3e017aaf64fe22309 Mon Sep 17 00:00:00 2001 From: adiabatic Date: Tue, 18 Jun 2024 01:40:19 -0700 Subject: [PATCH] Add curly single and double quotes to BRACKETS (#10971) --- helix-core/src/match_brackets.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helix-core/src/match_brackets.rs b/helix-core/src/match_brackets.rs index 5351b56dc..7520d3e46 100644 --- a/helix-core/src/match_brackets.rs +++ b/helix-core/src/match_brackets.rs @@ -9,11 +9,13 @@ use crate::Syntax; const MAX_PLAINTEXT_SCAN: usize = 10000; const MATCH_LIMIT: usize = 16; -pub const BRACKETS: [(char, char); 7] = [ +pub const BRACKETS: [(char, char); 9] = [ ('(', ')'), ('{', '}'), ('[', ']'), ('<', '>'), + ('‘', '’'), + ('“', '”'), ('«', '»'), ('「', '」'), ('(', ')'),