From 7542dd90c1936223daa40872f7dbd842f33d009e Mon Sep 17 00:00:00 2001 From: purocean Date: Tue, 23 Jul 2024 15:24:03 +0800 Subject: [PATCH] fix: fix todo list completion https://github.com/microsoft/vscode/issues/209861 --- src/renderer/plugins/editor-md-syntax.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/plugins/editor-md-syntax.ts b/src/renderer/plugins/editor-md-syntax.ts index 746407ed..eba74024 100644 --- a/src/renderer/plugins/editor-md-syntax.ts +++ b/src/renderer/plugins/editor-md-syntax.ts @@ -235,6 +235,7 @@ export default { ctx.editor.tapMarkdownMonarchLanguage(mdLanguage => { mdLanguage.tokenizer.root.unshift( + [/^\s*[+\-*] \[[ xX]\]\s/, 'keyword'], [/==\S.*\S?==/, 'keyword'], [/(\[\[)([^[\]]+)(\]\])/, ['keyword.predefined', 'string', 'keyword.predefined']], [/~\S[^~]*\S?~/, 'string'],