Unnamed repository; edit this file 'description' to name the repository.
Add curly single and double quotes to BRACKETS (#10971)
adiabatic 2024-06-18
parent afe9049 · commit 69acf66
-rw-r--r--helix-core/src/match_brackets.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-core/src/match_brackets.rs b/helix-core/src/match_brackets.rs
index 5351b56d..7520d3e4 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] = [
('(', ')'),
('{', '}'),
('[', ']'),
('<', '>'),
+ ('‘', '’'),
+ ('“', '”'),
('«', '»'),
('「', '」'),
('(', ')'),