Skip to content

Commit

Permalink
Restore auto-closing braces and parentheses (intersystems-community#1316
Browse files Browse the repository at this point in the history
)
  • Loading branch information
isc-bsaviano authored Feb 22, 2024
1 parent 69c684e commit 4abf622
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/languageConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ export function getLanguageConfiguration(lang: string): vscode.LanguageConfigura
close: "*/",
notIn: [vscode.SyntaxTokenType.Comment, vscode.SyntaxTokenType.String, vscode.SyntaxTokenType.RegEx],
},
{
open: "{",
close: "}",
notIn: [vscode.SyntaxTokenType.Comment, vscode.SyntaxTokenType.String, vscode.SyntaxTokenType.RegEx],
},
{
open: "(",
close: ")",
notIn: [vscode.SyntaxTokenType.Comment, vscode.SyntaxTokenType.String, vscode.SyntaxTokenType.RegEx],
},
{
open: '"',
close: '"',
notIn: [vscode.SyntaxTokenType.Comment, vscode.SyntaxTokenType.String, vscode.SyntaxTokenType.RegEx],
},
],
onEnterRules:
lang == "objectscript-class"
Expand Down

0 comments on commit 4abf622

Please sign in to comment.