Skip to content

Commit 05ef7f4

Browse files
authored
Syntax highlighting for {=language} ... code blocks (#369)
1 parent 16939cd commit 05ef7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/pandoc.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function! EnableEmbedsforCodeblocksWithLang(entry)
175175
" We might have just turned off spellchecking by including the file,
176176
" so we turn it back on here.
177177
exe 'syntax spell toplevel'
178-
exe 'syn region pandocDelimitedCodeBlock_' . s:langname . ' start=/\(\_^\( \+\|\t\)\=\(`\{3,}`*\|\~\{3,}\~*\)\s*\%({[^.]*\.\)\=' . s:langname . '\>.*\n\)\@<=\_^/' .
178+
exe 'syn region pandocDelimitedCodeBlock_' . s:langname . ' start=/\(\_^\( \+\|\t\)\=\(`\{3,}`*\|\~\{3,}\~*\)\s*\%({[^.]*[.=]\)\=' . s:langname . '\>.*\n\)\@<=\_^/' .
179179
\' end=/\_$\n\(\( \+\|\t\)\=\(`\{3,}`*\|\~\{3,}\~*\)\_$\n\_$\)\@=/ contained containedin=pandocDelimitedCodeBlock' .
180180
\' contains=@' . toupper(s:langname)
181181
exe 'syn region pandocDelimitedCodeBlockinBlockQuote_' . s:langname . ' start=/>\s\(`\{3,}`*\|\~\{3,}\~*\)\s*\%({[^.]*\.\)\=' . s:langname . '\>/' .

0 commit comments

Comments
 (0)