Properly tokenize fence closing in GitHub style code blocks

This commit is contained in:
Jonatan Kłosko 2021-07-22 16:10:45 +02:00
parent 0500e21d95
commit 0ab2dffd3b

View file

@ -135,7 +135,7 @@ export const language = <languages.IMonarchLanguage>{
// github style code blocks // github style code blocks
codeblockgh: [ codeblockgh: [
[/```\s*$/, { token: 'variable.source', next: '@pop', nextEmbedded: '@pop' }], [/```\s*$/, { token: 'string', next: '@pop', nextEmbedded: '@pop' }],
[/[^`]+/, 'variable.source'] [/[^`]+/, 'variable.source']
], ],