Add markdown syntax support for indented code blocks.

This commit is contained in:
Rane Brown
2020-01-03 07:10:02 -07:00
parent 59e1229da6
commit 3ec0c9cd91
4 changed files with 36 additions and 12 deletions

View File

@ -79,9 +79,10 @@ let s:markdown_syntax.number_types = ['1.']
let s:markdown_syntax.list_markers = ['-', '*', '+', '1.']
let s:markdown_syntax.rxListDefine = '::\%(\s\|$\)'
" Preformatted text
" Preformatted text (code blocks)
let s:markdown_syntax.rxPreStart = '\%(`\{3,}\|\~\{3,}\)'
let s:markdown_syntax.rxPreEnd = '\%(`\{3,}\|\~\{3,}\)'
let s:markdown_syntax.rxIndentedCodeBlock = '^\s*\n\(\(\s\{4,}[^ ]\|\t\+[^\t]\).*\n\)\+\(^\s*\n\)'
" Math block
let s:markdown_syntax.rxMathStart = '\$\$'