Skip to content

Commit 4abf622

Browse files
authored
Restore auto-closing braces and parentheses (#1316)
1 parent 69c684e commit 4abf622

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/languageConfiguration.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@ export function getLanguageConfiguration(lang: string): vscode.LanguageConfigura
1818
close: "*/",
1919
notIn: [vscode.SyntaxTokenType.Comment, vscode.SyntaxTokenType.String, vscode.SyntaxTokenType.RegEx],
2020
},
21+
{
22+
open: "{",
23+
close: "}",
24+
notIn: [vscode.SyntaxTokenType.Comment, vscode.SyntaxTokenType.String, vscode.SyntaxTokenType.RegEx],
25+
},
26+
{
27+
open: "(",
28+
close: ")",
29+
notIn: [vscode.SyntaxTokenType.Comment, vscode.SyntaxTokenType.String, vscode.SyntaxTokenType.RegEx],
30+
},
31+
{
32+
open: '"',
33+
close: '"',
34+
notIn: [vscode.SyntaxTokenType.Comment, vscode.SyntaxTokenType.String, vscode.SyntaxTokenType.RegEx],
35+
},
2136
],
2237
onEnterRules:
2338
lang == "objectscript-class"

0 commit comments

Comments
 (0)