@@ -8,6 +8,7 @@ scriptencoding utf-8
88" Maintainer: Caleb Maclennan <caleb@alerque.com>
99" Contributor: David Sanson <dsanson@gmail.com>
1010" Contributor: Jorge Israel Peña <jorge.israel.p@gmail.com>
11+ " Contributor: Rob Muhlestein (twitch.tv/rwxrob) <rwx@robs.io>
1112" OriginalAuthor: Jeremy Schultz <taozhyn@gmail.com>
1213" Version: 5.0
1314
@@ -264,7 +265,7 @@ syn match pandocTitleBlockTitle /\%^%.*\n/ contained containedin=pandocTitleBloc
264265" }}}2
265266
266267" Blockquotes: {{{2
267- syn match pandocBlockQuote / ^\s\{ ,3}>.*\n\( .*\n\@ 1<!\n\) */ contains =@Spell,pandocEmphasis,pandocStrong,pandocPCite,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocUListItem,pandocNoFormatted,pandocAmpersandEscape,pandocLaTeXInlineMath,pandocEscapedDollar,pandocLaTeXCommand,pandocLaTeXMathBlock,pandocLaTeXRegion skipnl
268+ syn match pandocBlockQuote / ^\s\{ ,3}>.*\n\( .*\n\@ 1<!\n\) */ contains =@Spell,pandocEmphasis,pandocStrong,pandocPCite,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocUListItem,pandocNoFormatted,pandocAmpersandEscape,pandocLaTeXInlineMath,pandocEscapedDollar,pandocLaTeXCommand,pandocLaTeXMathBlock,pandocLaTeXRegion,pandocBeginQuote,pandocEndQuote,pandocBeginSQuote,pandocEndSQuote,pandocApostrophe skipnl
268269syn match pandocBlockQuoteMark / \_ ^\s\{ ,3}>/ contained containedin =pandocEmphasis,pandocStrong,pandocPCite,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocUListItem,pandocNoFormatted
269270" }}}2
270271
@@ -368,11 +369,11 @@ call s:WithConceal('strikeout', 'syn match pandocStrikeoutMark /\~\~/ contained
368369" }}}2
369370
370371" Headers: {{{2
371- syn match pandocAtxHeader / \(\% ^\| <.\+ >.*\n\| ^\s *\n\)\@ <=#\{ 1,6}.*\n / contains =pandocEmphasis,pandocStrong,pandocNoFormatted,pandocLaTeXInlineMath,pandocEscapedDollar,@Spell,pandocAmpersandEscape,pandocReferenceLabel,pandocReferenceURL display
372+ syn match pandocAtxHeader / \(\% ^\| <.\+ >.*\n\| ^\s *\n\)\@ <=#\{ 1,6}.*\n / contains =pandocEmphasis,pandocStrong,pandocNoFormatted,pandocLaTeXInlineMath,pandocEscapedDollar,pandocBeginQuote,pandocEndQuote,pandocBeginSQuote,pandocEndSQuote,pandocApostrophe,pandocEllipses, @Spell,pandocAmpersandEscape,pandocReferenceLabel,pandocReferenceURL display
372373syn match pandocAtxHeaderMark / \( ^#\{ 1,6}\|\\\@ <!#\+\(\s *.*$\)\@ =\) / contained containedin =pandocAtxHeader
373374call s: WithConceal (' atx' , ' syn match pandocAtxStart /#/ contained containedin=pandocAtxHeaderMark' , ' conceal cchar=' .s: cchars [' atx' ])
374- syn match pandocSetexHeader / ^.\+\n [=]\+ $/ contains =pandocEmphasis,pandocStrong,pandocNoFormatted,pandocLaTeXInlineMath,pandocEscapedDollar,@Spell,pandocAmpersandEscape
375- syn match pandocSetexHeader / ^.\+\n [-]\+ $/ contains =pandocEmphasis,pandocStrong,pandocNoFormatted,pandocLaTeXInlineMath,pandocEscapedDollar,@Spell,pandocAmpersandEscape
375+ syn match pandocSetexHeader / ^.\+\n [=]\+ $/ contains =pandocEmphasis,pandocStrong,pandocNoFormatted,pandocLaTeXInlineMath,pandocEscapedDollar,pandocBeginQuote,pandocEndQuote,pandocBeginSQuote,pandocEndSQuote,pandocApostrophe,pandocEllipses, @Spell,pandocAmpersandEscape
376+ syn match pandocSetexHeader / ^.\+\n [-]\+ $/ contains =pandocEmphasis,pandocStrong,pandocNoFormatted,pandocLaTeXInlineMath,pandocEscapedDollar,pandocBeginQuote,pandocEndQuote,pandocBeginSQuote,pandocEndSQuote,pandocApostrophe,pandocEllipses, @Spell,pandocAmpersandEscape
376377syn match pandocHeaderAttr / {.*}/ contained containedin =pandocAtxHeader,pandocSetexHeader
377378syn match pandocHeaderID / #[-_:.[:lower:][:upper:]]*/ contained containedin =pandocHeaderAttr
378379" }}}2
@@ -452,12 +453,12 @@ call s:WithConceal('abbrev', 'syn match pandocAbbreviationTail /\]/ contained co
452453syn match pandocFootnoteID / \[\^ [^\] ]\+\] / nextgroup =pandocFootnoteDef
453454
454455" Inline footnotes
455- syn region pandocFootnoteDef start =/ \^\[ / skip =/ \[ .\{ -}]/ end =/ \] / contains =pandocReferenceLabel,pandocReferenceURL,pandocLatex,pandocPCite,pandocCiteKey,pandocStrong,pandocEmphasis,pandocStrongEmphasis,pandocNoFormatted,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocEnDash,pandocEmDash,pandocEllipses,pandocBeginQuote,pandocEndQuote,@Spell,pandocAmpersandEscape skipnl keepend
456+ syn region pandocFootnoteDef start =/ \^\[ / skip =/ \[ .\{ -}]/ end =/ \] / contains =pandocReferenceLabel,pandocReferenceURL,pandocLatex,pandocPCite,pandocCiteKey,pandocStrong,pandocEmphasis,pandocStrongEmphasis,pandocNoFormatted,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocEnDash,pandocEmDash,pandocEllipses,pandocBeginQuote,pandocEndQuote,pandocBeginSQuote,pandocEndSQuote,pandocApostrophe, @Spell,pandocAmpersandEscape skipnl keepend
456457call s: WithConceal (' footnote' , ' syn match pandocFootnoteDefHead /\^\[/ contained containedin=pandocFootnoteDef' , ' conceal cchar=' .s: cchars [' footnote' ])
457458call s: WithConceal (' footnote' , ' syn match pandocFootnoteDefTail /\]/ contained containedin=pandocFootnoteDef' , ' conceal' )
458459
459460" regular footnotes
460- syn region pandocFootnoteBlock start =/ \[\^ .\{ -}\] :\s *\n */ end =/ ^\n ^\s\@ !/ contains =pandocReferenceLabel,pandocReferenceURL,pandocLatex,pandocPCite,pandocCiteKey,pandocStrong,pandocEmphasis,pandocNoFormatted,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocEnDash,pandocEmDash,pandocNewLine,pandocStrongEmphasis,pandocEllipses,pandocBeginQuote,pandocEndQuote,pandocLaTeXInlineMath,pandocEscapedDollar,pandocLaTeXCommand,pandocLaTeXMathBlock,pandocLaTeXRegion,pandocAmpersandEscape,@Spell skipnl
461+ syn region pandocFootnoteBlock start =/ \[\^ .\{ -}\] :\s *\n */ end =/ ^\n ^\s\@ !/ contains =pandocReferenceLabel,pandocReferenceURL,pandocLatex,pandocPCite,pandocCiteKey,pandocStrong,pandocEmphasis,pandocNoFormatted,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocEnDash,pandocEmDash,pandocNewLine,pandocStrongEmphasis,pandocEllipses,pandocBeginQuote,pandocEndQuote,pandocBeginSQuote,pandocEndSQuote,pandocApostophe, pandocLaTeXInlineMath,pandocEscapedDollar,pandocLaTeXCommand,pandocLaTeXMathBlock,pandocLaTeXRegion,pandocAmpersandEscape,@Spell skipnl
461462syn match pandocFootnoteBlockSeparator / :/ contained containedin =pandocFootnoteBlock
462463syn match pandocFootnoteID / \[\^ .\{ -}\] / contained containedin =pandocFootnoteBlock
463464call s: WithConceal (' footnote' , ' syn match pandocFootnoteIDHead /\[\^/ contained containedin=pandocFootnoteID' , ' conceal cchar=' .s: cchars [' footnote' ])
@@ -523,6 +524,19 @@ if &encoding ==# 'utf-8'
523524endif
524525" }}}3
525526
527+ " Apostrophes: {{{3
528+ if &encoding == # ' utf-8'
529+ call s: WithConceal (' apostrophes' , ' syn match pandocApostrophe /[*~_\n[:space:]]\@<!'' / containedin=pandocEmphasis,pandocStrong,pandocUListItem,pandocListItem,pandocListItemContinuation display' , ' conceal cchar=’' )
530+ endif
531+ " }}}3
532+
533+ " Single Quotes: {{{3
534+ if &encoding == # ' utf-8'
535+ call s: WithConceal (' squotes' , ' syn match pandocBeginSQuote /[_*\n[:space:]]\@<='' \</ containedin=pandocEmphasis,pandocStrong,pandocListItem,pandocListItemContinuation,pandocUListItem display' , ' conceal cchar=‘' )
536+ call s: WithConceal (' squotes' , ' syn match pandocEndSQuote /\(\>[[:punct:]]*\)\@<='' [[:blank:][:punct:]\n]\@=/ containedin=pandocEmphasis,pandocStrong,pandocUListItem,pandocListItem,pandocListItemContinuation display' , ' conceal cchar=’' )
537+ endif
538+ " }}}3
539+
526540" Hrule: {{{3
527541syn match pandocHRule / ^\s *\( [*\- _]\)\s *\% (\1\s *\)\{ 2,}$/ display
528542" }}}3
0 commit comments