Add curly single and double quotes to BRACKETS (#10971)

pull/10989/head
adiabatic 5 months ago committed by GitHub
parent afe9049a0e
commit 69acf66cd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -9,11 +9,13 @@ use crate::Syntax;
const MAX_PLAINTEXT_SCAN: usize = 10000; const MAX_PLAINTEXT_SCAN: usize = 10000;
const MATCH_LIMIT: usize = 16; const MATCH_LIMIT: usize = 16;
pub const BRACKETS: [(char, char); 7] = [ pub const BRACKETS: [(char, char); 9] = [
('(', ')'), ('(', ')'),
('{', '}'), ('{', '}'),
('[', ']'), ('[', ']'),
('<', '>'), ('<', '>'),
('', ''),
('“', '”'),
('«', '»'), ('«', '»'),
('「', '」'), ('「', '」'),
('', ''), ('', ''),

Loading…
Cancel
Save