UNPKG

1.1 kBTypeScriptView Raw
1import '../../';
2
3declare module '../../' {
4 interface MatchBrackets {
5 /**
6 * Only use the character after the start position, never the one before it.
7 */
8 afterCursor?: boolean | undefined;
9
10 /**
11 * Causes only matches where both brackets are at the same side of the start position to be considered.
12 */
13 strict?: boolean | undefined;
14
15 /**
16 * Stop after scanning this amount of lines without a successful match. Defaults to 1000.
17 */
18 maxScanLines?: number | undefined;
19
20 /**
21 * Ignore lines longer than this. Defaults to 10000.
22 */
23 maxScanLineLength?: number | undefined;
24
25 /**
26 * Don't highlight a bracket in a line longer than this. Defaults to 1000.
27 */
28 maxHighlightLineLength?: number | undefined;
29 }
30
31 interface EditorConfiguration {
32 // When set to true or an options object, causes matching brackets to be highlighted whenever the cursor is next to them.
33 matchBrackets?: MatchBrackets | boolean | undefined;
34 }
35}