Files
AFFiNE-Mirror/blocksuite/affine/shared/src/consts/bracket-pairs.ts
T
2025-01-27 14:21:41 +09:00

69 lines
1009 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
interface BracketPair {
name: string;
left: string;
right: string;
}
export const BRACKET_PAIRS: BracketPair[] = [
{
name: 'parenthesis',
left: '(',
right: ')',
},
{
name: 'square bracket',
left: '[',
right: ']',
},
{
name: 'curly bracket',
left: '{',
right: '}',
},
{
name: 'single quote',
left: "'",
right: "'",
},
{
name: 'double quote',
left: '"',
right: '"',
},
{
name: 'fullwidth single quote',
left: '',
right: '',
},
{
name: 'fullwidth double quote',
left: '“',
right: '”',
},
{
name: 'fullwidth parenthesis',
left: '',
right: '',
},
{
name: 'fullwidth square bracket',
left: '【',
right: '】',
},
{
name: 'fullwidth angle bracket',
left: '《',
right: '》',
},
{
name: 'corner bracket',
left: '「',
right: '」',
},
{
name: 'white corner bracket',
left: '『',
right: '』',
},
];