diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2015-10-18 16:07:12 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-10-18 16:07:12 +0200 | 
| commit | ae882e85f81869dbf81b5c888c337aa4481fc8c3 (patch) | |
| tree | 0b9ad026b7927b1a6941b315504a65057e8281b1 /syntax | |
| parent | aec5e42bdbdb24bc816ae7a56ace189246c74097 (diff) | |
| download | vim-polyglot-ae882e85f81869dbf81b5c888c337aa4481fc8c3.tar.gz vim-polyglot-ae882e85f81869dbf81b5c888c337aa4481fc8c3.zip | |
Update
Diffstat (limited to 'syntax')
| -rw-r--r-- | syntax/markdown.vim | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/syntax/markdown.vim b/syntax/markdown.vim index d4c83cc7..b22bbf1b 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -87,14 +87,14 @@ exe 'syn region markdownBoldItalic matchgroup=markdownBoldItalicDelimiter start=  syn region markdownCode matchgroup=markdownCodeDelimiter start="`" end="`" keepend contains=markdownLineStart  syn region markdownCode matchgroup=markdownCodeDelimiter start="`` \=" end=" \=``" keepend contains=markdownLineStart -syn region markdownCode matchgroup=markdownCodeDelimiter start="^\s*\z(\z(`\)\{3,}\|\z(\~\)\{3,}\)[^`]*$" end="^\s*\z1\%(\z2\z3\)*\ze\s*$" keepend +syn region markdownCode matchgroup=markdownCodeDelimiter start="^\s*```.*$" end="^\s*```\ze\s*$" keepend  syn match markdownFootnote "\[^[^\]]\+\]"  syn match markdownFootnoteDefinition "^\[^[^\]]\+\]:"  if main_syntax ==# 'markdown'    for s:type in g:markdown_fenced_languages -    exe 'syn region markdownHighlight'.substitute(matchstr(s:type,'[^=]*$'),'\..*','','').' matchgroup=markdownCodeDelimiter start="^\s*\z(\z(`\)\{3,}\|\z(\~\)\{3,}\)\s*'.matchstr(s:type,'[^=]*').'\>[^`]*$" end="^\s*\z1\%(\z2\z3\)*\ze\s*$" keepend contains=@markdownHighlight'.substitute(matchstr(s:type,'[^=]*$'),'\.','','g') +    exe 'syn region markdownHighlight'.substitute(matchstr(s:type,'[^=]*$'),'\..*','','').' matchgroup=markdownCodeDelimiter start="^\s*```\s*'.matchstr(s:type,'[^=]*').'\>.*$" end="^\s*```\ze\s*$" keepend contains=@markdownHighlight'.substitute(matchstr(s:type,'[^=]*$'),'\.','','g')    endfor    unlet! s:type  endif | 
