@@ -106,7 +106,8 @@ exe 'syn region markdownBoldItalic matchgroup=markdownBoldItalicDelimiter start=
106
106
107
107
syn region markdownCode matchgroup =markdownCodeDelimiter start =" `" end =" `" keepend contains =markdownLineStart
108
108
syn region markdownCode matchgroup =markdownCodeDelimiter start =" `` \= " end =" \= ``" keepend contains =markdownLineStart
109
- syn region markdownCode matchgroup =markdownCodeDelimiter start =" ^\s *````*.*$" end =" ^\s *````*\z e\s *$" keepend
109
+ syn region markdownCode matchgroup =markdownCodeDelimiter start =" ^\s *\z (`\{ 3,\}\) .*$" end =" ^\s *\z 1\z e\s *$" keepend
110
+ syn region markdownCode matchgroup =markdownCodeDelimiter start =" ^\s *\z (\~\{ 3,\}\) .*$" end =" ^\s *\z 1\z e\s *$" keepend
110
111
111
112
syn match markdownFootnote " \[ ^[^\] ]\+\] "
112
113
syn match markdownFootnoteDefinition " ^\[ ^[^\] ]\+\] :"
@@ -117,7 +118,8 @@ if main_syntax ==# 'markdown'
117
118
if has_key (s: done_include , matchstr (s: type ,' [^.]*' ))
118
119
continue
119
120
endif
120
- exe ' syn region markdownHighlight' .substitute (matchstr (s: type ,' [^=]*$' ),' \..*' ,' ' ,' ' ).' matchgroup=markdownCodeDelimiter start="^\s*````*\s*\%({.\{-}\.\)\=' .matchstr (s: type ,' [^=]*' ).' }\=\S\@!.*$" end="^\s*````*\ze\s*$" keepend contains=@markdownHighlight' .substitute (matchstr (s: type ,' [^=]*$' ),' \.' ,' ' ,' g' ) . s: concealends
121
+ exe ' syn region markdownHighlight' .substitute (matchstr (s: type ,' [^=]*$' ),' \..*' ,' ' ,' ' ).' matchgroup=markdownCodeDelimiter start="^\s*\z(`\{3,\}\)*\s*\%({.\{-}\.\)\=' .matchstr (s: type ,' [^=]*' ).' }\=\S\@!.*$" end="^\s*\z1\ze\s*$" keepend contains=@markdownHighlight' .substitute (matchstr (s: type ,' [^=]*$' ),' \.' ,' ' ,' g' ) . s: concealends
122
+ exe ' syn region markdownHighlight' .substitute (matchstr (s: type ,' [^=]*$' ),' \..*' ,' ' ,' ' ).' matchgroup=markdownCodeDelimiter start="^\s*\z(\~\{3,\}\)*\s*\%({.\{-}\.\)\=' .matchstr (s: type ,' [^=]*' ).' }\=\S\@!.*$" end="^\s*\z1\ze\s*$" keepend contains=@markdownHighlight' .substitute (matchstr (s: type ,' [^=]*$' ),' \.' ,' ' ,' g' ) . s: concealends
121
123
let s: done_include [matchstr (s: type ,' [^.]*' )] = 1
122
124
endfor
123
125
unlet ! s: type
0 commit comments