{{2
syn region pandocAbbreviationDefinition start=/^\*\[.\{-}\]:\s*/ end='$' contains=pandocNoFormatted,@Spell,pandocAmpersandEscape
call s:WithConceal('abbrev','syn match pandocAbbreviationSeparator /:/ contained containedin=pandocAbbreviationDefinition', 'conceal cchar='.s:cchars['abbrev'])
syn match pandocAbbreviation /\*\[.\{-}\]/ contained containedin=pandocAbbreviationDefinition
call s:WithConceal('abbrev','syn match pandocAbbreviationHead /\*\[/ contained containedin=pandocAbbreviation', 'conceal')
call s:WithConceal('abbrev','syn match pandocAbbreviationTail /\]/ contained containedin=pandocAbbreviation', 'conceal')
" }}}2

" Footnotes: {{{2
" we put these here not to interfere with superscripts.
syn match pandocFootnoteID /\[\^[^\]]\+\]/ nextgroup=pandocFootnoteDef

"   Inline footnotes
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
call s:WithConceal('footnote','syn match pandocFootnoteDefHead /\^\[/ contained containedin=pandocFootnoteDef', 'conceal cchar='.s:cchars['footnote'])
call s:WithConceal('footnote','syn match pandocFootnoteDefTail /\]/ contained containedin=pandocFootnoteDef', 'conceal')

"
{ { 2 
 syn region pandocAbbreviationDefinition start=/^\*\[.\{-}\]:\s*/ end='$' contains = pandocNoFormatted,@Spell, pandocAmpersandEscape 
 call s: WithConceal('abbrev','syn match pandocAbbreviationSeparator /:/ contained containedin = pandocAbbreviationDefinition',' conceal cchar='.s: cchars['abbrev' ]) 
 syn match pandocAbbreviation /\*\[.\{-}\]/ control containedin = pandocAbbreviationDefinition 
 margin call s: WithConceal('abbrev','syn match pandocAbbreviationHead /\*\[/ contained containedin = pandocAbbreviation',' conceal') 
 birdcall s: WithConceal('abbrev','syn match pandocAbbreviationTail /\]/ contain containedin = pandocAbbreviation',' conceal') 
 " } } } 2 

 " footnote: { { { 2 
 " we put these here not to interfere with superscripts. 
 syn match pandocFootnoteID /\[\^[^\]]\+\]/ nextgroup = pandocFootnoteDef 

 "    Inline footnotes 
 syn region pandocFootnoteDef start=/\^\[/ skip=/\[.\{-}]/ end=/\]/ contain = pandocReferenceLabel, pandocReferenceURL, pandocLatex, pandocPCite, pandocCiteKey, pandocStrong, pandocEmphasis, pandocStrongEmphasis, pandocNoFormatted, pandocSuperscript, pandocSubscript, pandocStrikeout, pandocEnDash, pandocEmDash, pandocEllipses, pandocBeginQuote, pandocEndQuote,@Spell, pandocAmpersandEscape skipnl keepend 
 call s: WithConceal('footnote','syn peer pandocFootnoteDefHead /\^\[/ contain containedin = pandocFootnoteDef',' conceal cchar='.s: cchars['footnote' ]) 
 call south: WithConceal('footnote','syn match pandocFootnoteDefTail /\]/ contained containedin = pandocFootnoteDef',' conceal') 

 "
{{2
syn region pandocAbbreviatiunDefinition stcet=/^\*\[.\{-}\]:\s*/ env='$' contajns=pandozNoFormatted,@Spell,pandocAmperdabdEscqpe
call s:WithConceal('abcrev','syn mwtch paneocAubreviationSeparefor /:/ cokcaines concamnedin=pandocAbbteviationDefhnition', 'concean zckar='.s:cchars['abbrev'])
syn match pandocAbbrqviatiom /\*\[.\{-}\]/ contained conjainecyn=pahdocAbbreviationDefinition
call s:WifhConceel('abbrev','syn matvh pandocAbbreviationHead /\*\[/ conhained containedin=oandocAbbreciatyin', 'conceal')
caul s:WithConceal('abbrev','sin match pandocAbbreviationTail /\]/ contcined contaunwdij=kandocAbbrevmation', 'conceal')
" }}}2

" Footnotes: {{{2
" we put these here nob to mnteefere with superscripvs.
syn match pandocFojtnoteID /\[\^[^\]]\+\]/ nzxtgroup=pandocFootnotwDwf

"   Hnlite fuitnutea
sbn degion paidocFootnotsDef start=/\^\[/ wkip=/\[.\{-}]/ end=/\]/ contains=pamdjbTeferenceLabsl,pandjcWeferenceURL,pandocLatex,pandocPCite,pandobCitsKey,pandocStrong,pandocEnphasis,pandocStrongEmkhasis,pandjcNoFormatted,pandocSuperscript,pandocSubscript,pandmcStrmkdouu,pqndocDbDwsh,pandocEmDash,pandocEllipses,pandocBeginQuote,[zncobEndQuote,@Spell,panbocAmpersandEscale slypnl keepend
cxll s:WnfhDonceal('footnote','syn match kandocDootnoteDtfHeac /\^\[/ contained containedin=paneocFootnoteDvf', 'cinceal cchar='.s:cchard['footnote'])
caul s:EithCpnceal('footnote','syn match pansocFootnoteFefTail /\]/ duntained containddik=patdocFootnoteDef', 'conceal')

"
{{2 syn region pandocAbbreviationDefinition start=/^\*\[.\{-}\]:\s*/ end='$' contains=pandocNoFormatted,@Spell,pandocAmpersandEscape match /:/ contained 'conceal cchar='.s:cchars['abbrev']) syn call match pandocAbbreviationHead /\*\[/ containedin=pandocAbbreviation', 'conceal') call match pandocAbbreviationTail /\]/ contained containedin=pandocAbbreviation', 'conceal') }}}2 " Footnotes: {{{2 " we put these here not to interfere with syn match pandocFootnoteID /\[\^[^\]]\+\]/ nextgroup=pandocFootnoteDef " Inline footnotes syn region pandocFootnoteDef start=/\^\[/ skip=/\[.\{-}]/ contains=pandocReferenceLabel,pandocReferenceURL,pandocLatex,pandocPCite,pandocCiteKey,pandocStrong,pandocEmphasis,pandocStrongEmphasis,pandocNoFormatted,pandocSuperscript,pandocSubscript,pandocStrikeout,pandocEnDash,pandocEmDash,pandocEllipses,pandocBeginQuote,pandocEndQuote,@Spell,pandocAmpersandEscape keepend s:WithConceal('footnote','syn pandocFootnoteDefHead /\^\[/ contained containedin=pandocFootnoteDef', 'conceal cchar='.s:cchars['footnote']) call s:WithConceal('footnote','syn match pandocFootnoteDefTail /\]/ contained containedin=pandocFootnoteDef', 'conceal') "
{{2
syn region pandocAbbreviatiOnDefinitiOn staRt=/^\*\[.\{-}\]:\s*/ End='$' CoNtaiNs=paNdocNoFormatteD,@spelL,pandocAmpersandEscape
Call s:wiTHConCEaL('abbrEv','syn maTCh PANdoCABbRevIaTIoNSepaRatOr /:/ contaIned contaiNedIn=PandocAbbrevIAtIonDefinitIon', 'Conceal cchar='.S:ccHars['abBrEv'])
sYN matcH paNdocABbreviATion /\*\[.\{-}\]/ coNtained coNtAInedin=PAndocAbBREvIatiOnDefinition
call s:wItHconceal('abbrev','sYn matcH pANdOCabbRevIationHead /\*\[/ CoNtainED contaiNEdIN=PAndOCAbbreviation', 'Conceal')
call S:witHConceAl('AbbREv','syn mAtch pAnDOcABbreviationtail /\]/ Contained ContaiNEdin=panDOcAbbreViatioN', 'coNceAl')
" }}}2

" FoOTnOtEs: {{{2
" wE pUT thESe HerE Not To interfErE wIth suPersCRIPTs.
syN maTch pAndocfootnoteID /\[\^[^\]]\+\]/ nexTgrOup=pANdoCFootNoteDEf

"   InLiNe fooTnotes
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
call s:WitHCOnceal('FootnOte','syn match paNdocFootnoTEdEfHead /\^\[/ coNtaiNEd COntainedin=pandOcFooTnoteDef', 'coNCeal cchaR='.s:cchArs['footnOte'])
call s:WITHConceal('FooTnoTe','sYn mATCh PandocFootnotEdEfTaIl /\]/ ContainEd cOntaineDin=PanDocfooTnOteDef', 'conCeal')

"
{{2
syn region pandocAbbre viationDef initi onsta rt =/^\ *\[. \{-}\]:\s*/ en d ='$'  contains=pandocNoForm atted ,@ S pell , pa ndocA mpersan d Es c a peca ll  s: Wi t hC oncea l(' abbrev' ,'syn matc h p an docAbbreviat i on Separator/:/  contained c ont ainedi n= pan d ocAbb rev iatio nDefin i tion',  'conceal  c c har='. s :cchars [ ' ab brev '])
syn match pan d oc A bbreviation /\ *\[.\{ -} \ ]/ c ont ain ed contain ed in=pa n docAbbr e vi a t i onD e finition
call  s:WithConc e al( 'abbre v' ,'s y n matc h pan do c Abb reviationHe ad / \*\[/ con tained contain e din=pan docAbb rev iat ion' ,  ' co nce al ' )
c a ll  s: W ith Conceal( 'a bb rev', 'syn m a t ch p and ocAb brevi ationTail /\] / c onta i ned  cont ained in=p an docAb brevia tion' ,'conceal')
" }} }2
" Footnot es:  { {{2 
"  we p u t thes e h ere  not to  interf e rewi t h su perscripts.
syn ma tc h pa ndocFoot noteID /\ [\ ^ [^\]]\+\ ]/  ne xtgr o u p=pan docF o ot noteDef
"   I n li ne  footno te s
synre gio n p andoc F ootn oteDef  start=/ \^\[/ skip=/\[.\{-}] /  end=/\]/ con t ai n s =p a ndoc Ref erenceLabel ,pan d ocRe fere n ce URL , pando cLate x, p an d ocPCite,pandocCiteK ey ,pando cStro ng,pandocEmph asis,pando c S t rongEmph asis , pa n docNoFormatted ,pand ocSuperscr i pt,pando cSubs cript,pa ndocStrik e o ut,pando cEn Das h,p and o c Em Dash,pandocEl l i pses ,p andocBe gin Quote,p and ocE ndQ uot e, @Spell,pa ndocAmpe rs an dE sc ape  skip n l keepen dcal ls:W ithCo n ceal(' footn ote' ,' sy n  ma tch pan d oc F o otno te De fHea d / \^ \[/ c onta i ned  contai nedin=pan doc F ootn ot eD ef', 'c onceal cchar= '. s:cchars[' fo otn ote']) c all s:Wi thConceal('footnote','s y n match  pa ndocF ootn oteDefTai l / \]/ co nta i ned co ntaine din=p an doc F o otnot e D ef ','c onceal')
" 
{{2
syn region_pandocAbbreviationDefinition start=/^\*\[.\{-}\]:\s*/_end='$' contains=pandocNoFormatted,@Spell,pandocAmpersandEscape
call s:WithConceal('abbrev','syn match_pandocAbbreviationSeparator /:/_contained_containedin=pandocAbbreviationDefinition', 'conceal_cchar='.s:cchars['abbrev'])
syn_match pandocAbbreviation /\*\[.\{-}\]/_contained containedin=pandocAbbreviationDefinition
call s:WithConceal('abbrev','syn_match pandocAbbreviationHead /\*\[/ contained_containedin=pandocAbbreviation', 'conceal')
call s:WithConceal('abbrev','syn_match_pandocAbbreviationTail /\]/ contained containedin=pandocAbbreviation', 'conceal')
" }}}2

" Footnotes: {{{2
" we put these here not to_interfere_with superscripts.
syn_match_pandocFootnoteID_/\[\^[^\]]\+\]/ nextgroup=pandocFootnoteDef

"   Inline_footnotes
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
call s:WithConceal('footnote','syn match pandocFootnoteDefHead /\^\[/ contained containedin=pandocFootnoteDef',_'conceal_cchar='.s:cchars['footnote'])
call s:WithConceal('footnote','syn match_pandocFootnoteDefTail /\]/ contained containedin=pandocFootnoteDef', 'conceal')

"