Merge pull request #149 from jonatanklosko/jk-md-fence-closing

Properly tokenize fence closing in GitHub style code blocks
This commit is contained in:
Henning Dieterichs 2021-07-22 22:07:55 +02:00 committed by GitHub
commit 52597f7064
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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']
], ],