From 8dd31453b7b4c9ff6ba2e18525c51f433412d6d5 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sat, 29 Apr 2023 17:47:53 +0200 Subject: [PATCH] Update pandoc syntax --- .vim/after/syntax/pandoc.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vim/after/syntax/pandoc.vim b/.vim/after/syntax/pandoc.vim index 224e98b..770d990 100644 --- a/.vim/after/syntax/pandoc.vim +++ b/.vim/after/syntax/pandoc.vim @@ -11,6 +11,9 @@ syn match ClozeDelimiter /}}/ conceal containedin=pandocUListItem,pandocListItem " Match text between cloze delimiters syn match Cloze /\({{c\d\+::\)\@<=\(\_[A-Za-z0-9$\ \\\-\*,_`()]*\)\(}}\)\@=/ containedin=pandocUListItem,pandocListItem +hi! link ClozeDelimiter Special +hi! link Cloze Special + " Fix task UUIDs not being highlighted correctly in pandoc lists syn match pandocUListItem /^>\=\s*[*+-]\s\+-\@!.*$/ nextgroup=pandocUListItem,pandocLaTeXMathBlock,pandocLaTeXInlineMath,pandocEscapedDollar,pandocDelimitedCodeBlock,pandocListItemContinuation contains=@Spell,pandocEmphasis,pandocStrong,pandocNoFormatted,pandocStrikeout,pandocSubscript,pandocSuperscript,pandocStrongEmphasis,pandocStrongEmphasis,pandocPCite,pandocICite,pandocCiteKey,pandocReferenceLabel,pandocLaTeXCommand,pandocLaTeXMathBlock,pandocLaTeXInlineMath,pandocEscapedDollar,pandocReferenceURL,pandocAutomaticLink,pandocFootnoteDef,pandocFootnoteBlock,pandocFootnoteID,pandocAmpersandEscape,TaskWikiTaskUuid skipempty display syn match TaskWikiTaskUuid containedin=TaskWikiTask /\v#([A-Z]:)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/