From: Simon Désaulniers Date: Wed, 31 Oct 2018 03:50:23 +0000 (-0400) Subject: ftplugin: syntax highlighting for fts *markdown* X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/04b0395bd46702b9529998dea6f191a7325cd737?ds=sidebyside;hp=--cc ftplugin: syntax highlighting for fts *markdown* --- 04b0395bd46702b9529998dea6f191a7325cd737 diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index 68d1d3d..2c83000 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -768,13 +768,13 @@ endfunction function! s:MarkdownRefreshSyntax(force) - if &filetype == 'markdown' && line('$') > 1 + if &filetype =~ 'markdown' && line('$') > 1 call s:MarkdownHighlightSources(a:force) endif endfunction function! s:MarkdownClearSyntaxVariables() - if &filetype == 'markdown' + if &filetype =~ 'markdown' unlet! b:mkd_included_filetypes endif endfunction