mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
Merge pull request #149 from jonatanklosko/jk-md-fence-closing
Properly tokenize fence closing in GitHub style code blocks
This commit is contained in:
commit
52597f7064
1 changed files with 1 additions and 1 deletions
|
|
@ -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']
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue