Extend pandoc-syntax

master
Hektor Misplon 2022-08-16 10:48:45 +02:00
parent b2234aa463
commit 79fdb93a63
1 changed files with 14 additions and 0 deletions

View File

@ -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