Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/vs
diff options
context:
space:
mode:
authorHenning Dieterichs <notify.henning.dieterichs@live.de>2022-07-27 18:53:47 +0300
committerGitHub <noreply@github.com>2022-07-27 18:53:47 +0300
commit482da8664a8e28e86439bd6eb9a8c743b9997ada (patch)
treeceaec72244b0a5645a77520d2950aca1866b6583 /src/vs
parentc6990190a4a670a32d89d1f7cf5f21a9a1af8e2a (diff)
Re-Enables bracket pair matching/colorization for monarch (#156450)
Diffstat (limited to 'src/vs')
-rw-r--r--src/vs/editor/common/languages/supports/tokenization.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vs/editor/common/languages/supports/tokenization.ts b/src/vs/editor/common/languages/supports/tokenization.ts
index 7fa14b20a5c..19d637e2e2e 100644
--- a/src/vs/editor/common/languages/supports/tokenization.ts
+++ b/src/vs/editor/common/languages/supports/tokenization.ts
@@ -230,10 +230,12 @@ export class TokenTheme {
if (typeof result === 'undefined') {
const rule = this._match(token);
const standardToken = toStandardTokenType(token);
+
result = (
rule.metadata
| (standardToken << MetadataConsts.TOKEN_TYPE_OFFSET)
) >>> 0;
+ result |= MetadataConsts.BALANCED_BRACKETS_MASK;
this._cache.set(token, result);
}