From f044e32ca80403fa536c55c64fe74ca5d3322195 Mon Sep 17 00:00:00 2001 From: Nathan Galt Date: Sat, 15 Jun 2024 19:55:11 -0700 Subject: [PATCH] Add curly single and double quotes to BRACKETS --- 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 5351b56dcae2..7520d3e4646a 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] = [ ('(', ')'), ('{', '}'), ('[', ']'), ('<', '>'), + ('‘', '’'), + ('“', '”'), ('«', '»'), ('「', '」'), ('(', ')'),