Skip to content

Commit 93c4f00

Browse files
committed
fix undefined variable included_syntaxes
1 parent 981c87d commit 93c4f00

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

autoload/d2.vim

+4-6
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,11 @@ function! d2#sync_markdown_fenced_languages() abort
128128
endfunction
129129

130130
function! d2#syntax_post() abort
131-
if index(b:included_syntaxes, 'markdown') != -1
132-
if hlexists('markdownCodeBlock')
133-
syn clear markdownCodeBlock
134-
endif
135-
136-
syn cluster d2BlockStringMarkdown add=@markdownBlock
131+
if hlexists('markdownCodeBlock')
132+
syn clear markdownCodeBlock
137133
endif
134+
135+
syn cluster d2BlockStringMarkdown add=@markdownBlock
138136
endfunction
139137

140138
" include_toplevel_markdown is called when markdown is the top level syntax and is

0 commit comments

Comments
 (0)