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
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/editor/common/tokens/contiguousTokensStore.ts')
-rw-r--r--src/vs/editor/common/tokens/contiguousTokensStore.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vs/editor/common/tokens/contiguousTokensStore.ts b/src/vs/editor/common/tokens/contiguousTokensStore.ts
index 86f13cfeb5c..b1aac9f8232 100644
--- a/src/vs/editor/common/tokens/contiguousTokensStore.ts
+++ b/src/vs/editor/common/tokens/contiguousTokensStore.ts
@@ -211,5 +211,7 @@ function getDefaultMetadata(topLevelLanguageId: LanguageId): number {
| (FontStyle.None << MetadataConsts.FONT_STYLE_OFFSET)
| (ColorId.DefaultForeground << MetadataConsts.FOREGROUND_OFFSET)
| (ColorId.DefaultBackground << MetadataConsts.BACKGROUND_OFFSET)
+ // If there is no grammar, we just take a guess and try to match brackets.
+ | (MetadataConsts.BALANCED_BRACKETS_MASK)
) >>> 0;
}