Skip to content

Commit 72d9553

Browse files
committed
Syntax highlighting for {=language} ... code blocks
1 parent 5056e63 commit 72d9553

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
@@ -170,7 +170,7 @@ function! EnableEmbedsforCodeblocksWithLang(entry)
170170
let s:langsyntaxfile = matchstr(a:entry, '[^=]*$')
171171
unlet! b:current_syntax
172172
exe 'syn include @'.toupper(s:langname).' syntax/'.s:langsyntaxfile.'.vim'
173-
exe 'syn region pandocDelimitedCodeBlock_' . s:langname . ' start=/\(\_^\([ ]\{4,}\|\t\)\=\(`\{3,}`*\|\~\{3,}\~*\)\s*\%({[^.]*\.\)\=' . s:langname . '\>.*\n\)\@<=\_^/' .
173+
exe 'syn region pandocDelimitedCodeBlock_' . s:langname . ' start=/\(\_^\([ ]\{4,}\|\t\)\=\(`\{3,}`*\|\~\{3,}\~*\)\s*\%({[^.]*[.=]\)\=' . s:langname . '\>.*\n\)\@<=\_^/' .
174174
\' end=/\_$\n\(\([ ]\{4,}\|\t\)\=\(`\{3,}`*\|\~\{3,}\~*\)\_$\n\_$\)\@=/ contained containedin=pandocDelimitedCodeBlock' .
175175
\' contains=@' . toupper(s:langname)
176176
exe 'syn region pandocDelimitedCodeBlockinBlockQuote_' . s:langname . ' start=/>\s\(`\{3,}`*\|\~\{3,}\~*\)\s*\%({[^.]*\.\)\=' . s:langname . '\>/' .

0 commit comments

Comments
 (0)