@@ -116,6 +116,9 @@ syn match mkdRule /^\s*\*\s\{0,1}\*\s\{0,1}\*\(\*\|\s\)*$/
116
116
syn match mkdRule / ^\s *-\s\{ 0,1}-\s\{ 0,1}-\( -\|\s\) *$/
117
117
syn match mkdRule / ^\s *_\s\{ 0,1}_\s\{ 0,1}_\( _\|\s\) *$/
118
118
119
+ syntax region mkdEscape matchgroup =mkdEscape start =/ \\\z e[\\\x 60*{}\[\] ()#+\- .!_>~|"$%&'\/ :;<=?@^]/ end =/ .\z s/ keepend contains =mkdEscapeCh contained oneline concealends
120
+ syntax match mkdEscapeCh / ./ contained
121
+
119
122
" YAML frontmatter
120
123
if get (g: , ' vim_markdown_frontmatter' , 0 )
121
124
syn include @yamlTop syntax/yaml.vim
@@ -155,7 +158,7 @@ if get(g:, 'vim_markdown_strikethrough', 0)
155
158
HtmlHiLink mkdStrike htmlStrike
156
159
endif
157
160
158
- syn cluster mkdNonListItem contains =@htmlTop,htmlItalic,htmlBold,htmlBoldItalic,mkdFootnotes,mkdInlineURL,mkdLink,mkdLinkDef,mkdLineBreak,mkdBlockquote,mkdCode,mkdRule,htmlH1,htmlH2,htmlH3,htmlH4,htmlH5,htmlH6,mkdMath,mkdStrike
161
+ syn cluster mkdNonListItem contains =@htmlTop,htmlItalic,htmlBold,htmlBoldItalic,mkdFootnotes,mkdInlineURL,mkdLink,mkdLinkDef,mkdLineBreak,mkdBlockquote,mkdCode,mkdRule,htmlH1,htmlH2,htmlH3,htmlH4,htmlH5,htmlH6,mkdMath,mkdStrike,mkdEscape
159
162
160
163
" highlighting for Markdown groups
161
164
HtmlHiLink mkdString String
@@ -177,6 +180,7 @@ HtmlHiLink mkdLinkDef mkdID
177
180
HtmlHiLink mkdLinkDefTarget mkdURL
178
181
HtmlHiLink mkdLinkTitle htmlString
179
182
HtmlHiLink mkdDelimiter Delimiter
183
+ HtmlHiLink mkdEscape Special
180
184
181
185
let b: current_syntax = " mkd"
182
186
0 commit comments