Skip to content

Commit

Permalink
Merge pull request #78 from gavinchou/master
Browse files Browse the repository at this point in the history
Fix issue #63, avoid taking a lot of time to parse code block
  • Loading branch information
gabrielelana authored Mar 29, 2020
2 parents 8028680 + dd0a7d5 commit 772de97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/markdown.vim
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ syn match markdownBlockquoteDelimiter /^\s*\%(>\s\?\)\+/ contained
syn region markdownFencedCodeBlock matchgroup=markdownCodeDelimiter start=/^\s\{,3}```\%(`*\).*$/ end=/^\s\{,3}```\%(`*\)\s*$/ contains=@NoSpell
syn region markdownFencedCodeBlock matchgroup=markdownCodeDelimiter start=/^\s\{,3}\~\~\~\%(\~*\).*$/ end=/^\s\{,3}\~\~\~\%(\~*\)\s*$/ contains=@NoSpell

syn match markdownCodeBlock /\%(^\n\)\@<=\%(\%(\s\{4,}\|\t\+\).*\n\)\+$/ contains=@NoSpell
syn match markdownCodeBlock /\%(^\n\)\@<=\%(\%( \{4}\|\t\+\).*\n\)\+$/ contains=@NoSpell

let s:markdown_table_header_rows_separator = ''
\ . '\%('
Expand Down

0 comments on commit 772de97

Please sign in to comment.