@@ -246,11 +246,11 @@ syn region pandocCodeBlockInsideIndent start=/\(\(\d\|\a\|*\).*\n\)\@<!\(^\(\s
246
246
" Links: {{{2
247
247
"
248
248
" Base: {{{3
249
- syn region pandocReferenceLabel matchgroup =Operator start =/ !\{ ,1}\\\@ <!\[ / skip =/ \(\\\@ <!\]\]\@ =\| `.*\\\@ <!].*`\) / end =/ \\\@ <!\] / keepend display
249
+ syn region pandocReferenceLabel matchgroup =pandocOperator start =/ !\{ ,1}\\\@ <!\[ / skip =/ \(\\\@ <!\]\]\@ =\| `.*\\\@ <!].*`\) / end =/ \\\@ <!\] / keepend display
250
250
if g: pandoc #syntax #conceal#urls == 1
251
- syn region pandocReferenceURL matchgroup =Operator start =/ \]\@ 1<=(/ end =/ )/ keepend display conceal
251
+ syn region pandocReferenceURL matchgroup =pandocOperator start =/ \]\@ 1<=(/ end =/ )/ keepend display conceal
252
252
else
253
- syn region pandocReferenceURL matchgroup =Operator start =/ \]\@ 1<=(/ end =/ )/ keepend display
253
+ syn region pandocReferenceURL matchgroup =pandocOperator start =/ \]\@ 1<=(/ end =/ )/ keepend display
254
254
endif
255
255
" let's not consider "a [label] a" as a label, remove formatting - Note: breaks implicit links
256
256
syn match pandocNoLabel / \]\@ 1<!\(\s\{ ,3}\| ^\)\[ [^\[\] ]\{ -}\]\(\s\+\| $\) [\[ (]\@ !/ contains =pandocPCite
@@ -281,35 +281,35 @@ syn match pandocCiteLocator /[\[\]]/ contained containedin=pandocPCite,pandocICi
281
281
282
282
" Emphasis: {{{3
283
283
"
284
- call s: WithConceal (" block" , ' syn region pandocEmphasis matchgroup=Operator start=/\\\@1<!\(\_^\|\s\|[[:punct:]]\)\@<=\*\S\@=/ skip=/\(\*\*\|__\)/ end=/\*\([[:punct:]]\|\s\|\_$\)\@=/ contains=@Spell,pandocNoFormattedInEmphasis,pandocLatexInlineMath' , ' concealends' )
285
- call s: WithConceal (" block" , ' syn region pandocEmphasis matchgroup=Operator start=/\\\@1<!\(\_^\|\s\|[[:punct:]]\)\@<=_\S\@=/ skip=/\(\*\*\|__\)/ end=/\S\@1<=_\([[:punct:]]\|\s\|\_$\)\@=/ contains=@Spell,pandocNoFormattedInEmphasis,pandocLatexInlineMath' , ' concealends' )
284
+ call s: WithConceal (" block" , ' syn region pandocEmphasis matchgroup=pandocOperator start=/\\\@1<!\(\_^\|\s\|[[:punct:]]\)\@<=\*\S\@=/ skip=/\(\*\*\|__\)/ end=/\*\([[:punct:]]\|\s\|\_$\)\@=/ contains=@Spell,pandocNoFormattedInEmphasis,pandocLatexInlineMath' , ' concealends' )
285
+ call s: WithConceal (" block" , ' syn region pandocEmphasis matchgroup=pandocOperator start=/\\\@1<!\(\_^\|\s\|[[:punct:]]\)\@<=_\S\@=/ skip=/\(\*\*\|__\)/ end=/\S\@1<=_\([[:punct:]]\|\s\|\_$\)\@=/ contains=@Spell,pandocNoFormattedInEmphasis,pandocLatexInlineMath' , ' concealends' )
286
286
" }}}
287
287
" Strong: {{{3
288
288
"
289
- call s: WithConceal (" block" , ' syn region pandocStrong matchgroup=Operator start=/\(\\\@<!\*\)\{2}/ end=/\(\\\@<!\*\)\{2}/ contains=@Spell,pandocNoFormattedInStrong,pandocLatexInlineMath' , ' concealends' )
290
- call s: WithConceal (" block" , ' syn region pandocStrong matchgroup=Operator start=/__/ end=/__/ contains=@Spell,pandocNoFormattedInStrong,pandocLatexInlineMath' , ' concealends' )
289
+ call s: WithConceal (" block" , ' syn region pandocStrong matchgroup=pandocOperator start=/\(\\\@<!\*\)\{2}/ end=/\(\\\@<!\*\)\{2}/ contains=@Spell,pandocNoFormattedInStrong,pandocLatexInlineMath' , ' concealends' )
290
+ call s: WithConceal (" block" , ' syn region pandocStrong matchgroup=pandocOperator start=/__/ end=/__/ contains=@Spell,pandocNoFormattedInStrong,pandocLatexInlineMath' , ' concealends' )
291
291
" }}}
292
292
" Strong Emphasis: {{{3
293
293
"
294
- call s: WithConceal (" block" , ' syn region pandocStrongEmphasis matchgroup=Operator start=/\*\{3}\(\S[^*]*\(\*\S\|\n[^*]*\*\S\)\)\@=/ end=/\S\@<=\*\{3}/ contains=@Spell' , ' concealends' )
295
- call s: WithConceal (" block" , ' syn region pandocStrongEmphasis matchgroup=Operator start=/\(___\)\S\@=/ end=/\S\@<=___/ contains=@Spell' , ' concealends' )
294
+ call s: WithConceal (" block" , ' syn region pandocStrongEmphasis matchgroup=pandocOperator start=/\*\{3}\(\S[^*]*\(\*\S\|\n[^*]*\*\S\)\)\@=/ end=/\S\@<=\*\{3}/ contains=@Spell' , ' concealends' )
295
+ call s: WithConceal (" block" , ' syn region pandocStrongEmphasis matchgroup=pandocOperator start=/\(___\)\S\@=/ end=/\S\@<=___/ contains=@Spell' , ' concealends' )
296
296
" }}}
297
297
" Mixed: {{{3
298
- call s: WithConceal (" block" , ' syn region pandocStrongInEmphasis matchgroup=Operator start=/\*\*/ end=/\*\*/ contained containedin=pandocEmphasis contains=@Spell' , ' concealends' )
299
- call s: WithConceal (" block" , ' syn region pandocStrongInEmphasis matchgroup=Operator start=/__/ end=/__/ contained containedin=pandocEmphasis contains=@Spell' , ' concealends' )
300
- call s: WithConceal (" block" , ' syn region pandocEmphasisInStrong matchgroup=Operator start=/\\\@1<!\(\_^\|\s\|[[:punct:]]\)\@<=\*\S\@=/ skip=/\(\*\*\|__\)/ end=/\S\@<=\*\([[:punct:]]\|\s\|\_$\)\@=/ contained containedin=pandocStrong contains=@Spell' , ' concealends' )
301
- call s: WithConceal (" block" , ' syn region pandocEmphasisInStrong matchgroup=Operator start=/\\\@<!\(\_^\|\s\|[[:punct:]]\)\@<=_\S\@=/ skip=/\(\*\*\|__\)/ end=/\S\@<=_\([[:punct:]]\|\s\|\_$\)\@=/ contained containedin=pandocStrong contains=@Spell' , ' concealends' )
298
+ call s: WithConceal (" block" , ' syn region pandocStrongInEmphasis matchgroup=pandocOperator start=/\*\*/ end=/\*\*/ contained containedin=pandocEmphasis contains=@Spell' , ' concealends' )
299
+ call s: WithConceal (" block" , ' syn region pandocStrongInEmphasis matchgroup=pandocOperator start=/__/ end=/__/ contained containedin=pandocEmphasis contains=@Spell' , ' concealends' )
300
+ call s: WithConceal (" block" , ' syn region pandocEmphasisInStrong matchgroup=pandocOperator start=/\\\@1<!\(\_^\|\s\|[[:punct:]]\)\@<=\*\S\@=/ skip=/\(\*\*\|__\)/ end=/\S\@<=\*\([[:punct:]]\|\s\|\_$\)\@=/ contained containedin=pandocStrong contains=@Spell' , ' concealends' )
301
+ call s: WithConceal (" block" , ' syn region pandocEmphasisInStrong matchgroup=pandocOperator start=/\\\@<!\(\_^\|\s\|[[:punct:]]\)\@<=_\S\@=/ skip=/\(\*\*\|__\)/ end=/\S\@<=_\([[:punct:]]\|\s\|\_$\)\@=/ contained containedin=pandocStrong contains=@Spell' , ' concealends' )
302
302
303
303
" Inline Code: {{{3
304
304
305
305
" Using single back ticks
306
- call s: WithConceal (" inlinecode" , ' syn region pandocNoFormatted matchgroup=Operator start=/\\\@<!`/ end=/\\\@<!`/ nextgroup=pandocNoFormattedAttrs' , ' concealends' )
307
- call s: WithConceal (" inlinecode" , ' syn region pandocNoFormattedInEmphasis matchgroup=Operator start=/\\\@<!`/ end=/\\\@<!`/ nextgroup=pandocNoFormattedAttrs contained' , ' concealends' )
308
- call s: WithConceal (" inlinecode" , ' syn region pandocNoFormattedInStrong matchgroup=Operator start=/\\\@<!`/ end=/\\\@<!`/ nextgroup=pandocNoFormattedAttrs contained' , ' concealends' )
306
+ call s: WithConceal (" inlinecode" , ' syn region pandocNoFormatted matchgroup=pandocOperator start=/\\\@<!`/ end=/\\\@<!`/ nextgroup=pandocNoFormattedAttrs' , ' concealends' )
307
+ call s: WithConceal (" inlinecode" , ' syn region pandocNoFormattedInEmphasis matchgroup=pandocOperator start=/\\\@<!`/ end=/\\\@<!`/ nextgroup=pandocNoFormattedAttrs contained' , ' concealends' )
308
+ call s: WithConceal (" inlinecode" , ' syn region pandocNoFormattedInStrong matchgroup=pandocOperator start=/\\\@<!`/ end=/\\\@<!`/ nextgroup=pandocNoFormattedAttrs contained' , ' concealends' )
309
309
" Using double back ticks
310
- call s: WithConceal (" inlinecode" , ' syn region pandocNoFormatted matchgroup=Operator start=/\\\@<!``/ end=/\\\@<!``/ nextgroup=pandocNoFormattedAttrs' , ' concealends' )
311
- call s: WithConceal (" inlinecode" , ' syn region pandocNoFormattedInEmphasis matchgroup=Operator start=/\\\@<!``/ end=/\\\@<!``/ nextgroup=pandocNoFormattedAttrs contained' , ' concealends' )
312
- call s: WithConceal (" inlinecode" , ' syn region pandocNoFormattedInStrong matchgroup=Operator start=/\\\@<!``/ end=/\\\@<!``/ nextgroup=pandocNoFormattedAttrs contained' , ' concealends' )
310
+ call s: WithConceal (" inlinecode" , ' syn region pandocNoFormatted matchgroup=pandocOperator start=/\\\@<!``/ end=/\\\@<!``/ nextgroup=pandocNoFormattedAttrs' , ' concealends' )
311
+ call s: WithConceal (" inlinecode" , ' syn region pandocNoFormattedInEmphasis matchgroup=pandocOperator start=/\\\@<!``/ end=/\\\@<!``/ nextgroup=pandocNoFormattedAttrs contained' , ' concealends' )
312
+ call s: WithConceal (" inlinecode" , ' syn region pandocNoFormattedInStrong matchgroup=pandocOperator start=/\\\@<!``/ end=/\\\@<!``/ nextgroup=pandocNoFormattedAttrs contained' , ' concealends' )
313
313
syn match pandocNoFormattedAttrs / {.\{ -}}/ contained
314
314
" }}}
315
315
" Subscripts: {{{3
@@ -486,6 +486,8 @@ syn region pandocYAMLHeader start=/\%(\%^\|\_^\s*\n\)\@<=\_^-\{3}\ze\n.\+/ end=/
486
486
" }}}1
487
487
488
488
" Styling: {{{1
489
+ hi link pandocOperator Operator
490
+
489
491
" override this for consistency
490
492
hi pandocTitleBlock term = italic gui = italic
491
493
hi link pandocTitleBlockTitle Directory
0 commit comments