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