From 2444cba1cbdbe1f9ea8381605fc942439bdd722d Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Tue, 8 Oct 2024 20:35:51 +0200 Subject: [PATCH] Update 'pandocCiteKey' syntax highlighting --- .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 ee6405e..dd4cad3 100644 --- a/.vim/after/syntax/pandoc.vim +++ b/.vim/after/syntax/pandoc.vim @@ -5,6 +5,9 @@ hi! link pandocCiteKey Comment hi! link pandocCiteAnchor Comment hi! link pandocCiteLocator Comment +" Don't show the CiteKey within the CiteLocator +syn match pandocCiteKey /\v\[[^]]+\]/ contained + " Match cloze delimiters e.g. `{{c1::` and `}}` syn match ClozeDelimiter /{{c\d\+::/ conceal containedin=pandocUListItem,pandocListItem syn match ClozeDelimiter /}}/ conceal containedin=pandocUListItem,pandocListItem