@@ -8,6 +8,7 @@ scriptencoding utf-8
8
8
" Maintainer: Caleb Maclennan <[email protected] >
9
9
" Contributor: David Sanson <[email protected] >
10
10
" Contributor: Jorge Israel Peña <[email protected] >
11
+ " Contributor: Rob Muhlestein (twitch.tv/rwxrob) <[email protected] >
11
12
" OriginalAuthor: Jeremy Schultz <[email protected] >
12
13
" Version: 5.0
13
14
@@ -264,7 +265,7 @@ syn match pandocTitleBlockTitle /\%^%.*\n/ contained containedin=pandocTitleBloc
264
265
" }}}2
265
266
266
267
" 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
268
269
syn match pandocBlockQuoteMark / \_ ^\s\{ ,3}>/ contained containedin =pandocEmphasis,pandocStrong,pandocPCite,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocUListItem,pandocNoFormatted
269
270
" }}}2
270
271
@@ -368,11 +369,11 @@ call s:WithConceal('strikeout', 'syn match pandocStrikeoutMark /\~\~/ contained
368
369
" }}}2
369
370
370
371
" 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
372
373
syn match pandocAtxHeaderMark / \( ^#\{ 1,6}\|\\\@ <!#\+\(\s *.*$\)\@ =\) / contained containedin =pandocAtxHeader
373
374
call 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
376
377
syn match pandocHeaderAttr / {.*}/ contained containedin =pandocAtxHeader,pandocSetexHeader
377
378
syn match pandocHeaderID / #[-_:.[:lower:][:upper:]]*/ contained containedin =pandocHeaderAttr
378
379
" }}}2
@@ -452,12 +453,12 @@ call s:WithConceal('abbrev', 'syn match pandocAbbreviationTail /\]/ contained co
452
453
syn match pandocFootnoteID / \[\^ [^\] ]\+\] / nextgroup =pandocFootnoteDef
453
454
454
455
" 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
456
457
call s: WithConceal (' footnote' , ' syn match pandocFootnoteDefHead /\^\[/ contained containedin=pandocFootnoteDef' , ' conceal cchar=' .s: cchars [' footnote' ])
457
458
call s: WithConceal (' footnote' , ' syn match pandocFootnoteDefTail /\]/ contained containedin=pandocFootnoteDef' , ' conceal' )
458
459
459
460
" 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
461
462
syn match pandocFootnoteBlockSeparator / :/ contained containedin =pandocFootnoteBlock
462
463
syn match pandocFootnoteID / \[\^ .\{ -}\] / contained containedin =pandocFootnoteBlock
463
464
call s: WithConceal (' footnote' , ' syn match pandocFootnoteIDHead /\[\^/ contained containedin=pandocFootnoteID' , ' conceal cchar=' .s: cchars [' footnote' ])
@@ -523,6 +524,19 @@ if &encoding ==# 'utf-8'
523
524
endif
524
525
" }}}3
525
526
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
+
526
540
" Hrule: {{{3
527
541
syn match pandocHRule / ^\s *\( [*\- _]\)\s *\% (\1\s *\)\{ 2,}$/ display
528
542
" }}}3
0 commit comments