Skip to content

Commit 947655f

Browse files
committed
Syntax highlighting for {=language} ... code blocks
1 parent 16939cd commit 947655f

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)