From 0ab2dffd3b10c3559d5d83aca22e705eb8034d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Thu, 22 Jul 2021 16:10:45 +0200 Subject: [PATCH] Properly tokenize fence closing in GitHub style code blocks --- src/markdown/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/markdown/markdown.ts b/src/markdown/markdown.ts index 92e5d4e9..358ec6fe 100644 --- a/src/markdown/markdown.ts +++ b/src/markdown/markdown.ts @@ -135,7 +135,7 @@ export const language = { // github style code blocks codeblockgh: [ - [/```\s*$/, { token: 'variable.source', next: '@pop', nextEmbedded: '@pop' }], + [/```\s*$/, { token: 'string', next: '@pop', nextEmbedded: '@pop' }], [/[^`]+/, 'variable.source'] ],