From 79fdb93a633d97fd486f7ebd25de47bf67d80d53 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Tue, 16 Aug 2022 10:48:45 +0200 Subject: [PATCH] Extend pandoc-syntax --- .vim/after/syntax/pandoc.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .vim/after/syntax/pandoc.vim diff --git a/.vim/after/syntax/pandoc.vim b/.vim/after/syntax/pandoc.vim new file mode 100644 index 0000000..e106f3b --- /dev/null +++ b/.vim/after/syntax/pandoc.vim @@ -0,0 +1,14 @@ +" Override the pandoc-syntax highlighting colors for more subtle citations +hi! link pandocPCite Comment +hi! link pandocICite Comment +hi! link pandocCiteKey Comment +hi! link pandocCiteAnchor Comment +hi! link pandocCiteLocator Comment + +" Match cloze delimiters e.g. `{{c1::` and `}}` +syn match ClozeDelimiter /{{c\d::/ conceal containedin=pandocUListItem,pandocListItem +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 Cloze Comment