summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/compiler
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-05-16 09:03:47 +0200
committerChristian Clason <ch.clason+github@icloud.com>2025-05-16 10:49:40 +0200
commit469541c4150b3531fec880a4e4382a8fc0b855a5 (patch)
tree8776b9fdce150cf78246c853d5c518f4b618e8eb /runtime/compiler
parent2fda267faf0ba6e5ac63654f66f83d6589238b8f (diff)
vim-patch:1aa68df: runtime(pandoc): update YAML metadata block parsing in compiler runtime
Previously the incorrect regexp forced title to be a single letter because of using '+' instead of the '\+' regexp modifier. closes: vim/vim#17321 https://github.com/vim/vim/commit/1aa68dffbf2a80d143ee0e659289dbbc430606af Co-authored-by: Alexander Abrosimov <alexander.n.abrosimov@gmail.com>
Diffstat (limited to 'runtime/compiler')
-rw-r--r--runtime/compiler/pandoc.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/compiler/pandoc.vim b/runtime/compiler/pandoc.vim
index 5d90a518c9..40d2d02633 100644
--- a/runtime/compiler/pandoc.vim
+++ b/runtime/compiler/pandoc.vim
@@ -2,6 +2,7 @@
" Compiler: Pandoc
" Maintainer: Konfekt
" Last Change: 2024 Nov 19
+" 2025 May 15 Update the title regex for CompilerSet #17321
"
" Expects output file extension, say `:make html` or `:make pdf`.
" Passes additional arguments to pandoc, say `:make html --self-contained`.
@@ -51,7 +52,7 @@ endfunction
execute 'CompilerSet makeprg=pandoc'..escape(
\ ' --standalone'..
- \ (s:PandocFiletype(&filetype) ==# 'markdown' && (getline(1) =~# '^%\s\+\S\+' || (search('^title:\s+\S+', 'cnw') > 0)) ?
+ \ (s:PandocFiletype(&filetype) ==# 'markdown' && (getline(1) =~# '^%\s\+\S\+' || (search('^title:\s\+\S\+', 'cnw') > 0)) ?
\ '' : ' --metadata title=%:t:r:S')..
\ ' '..s:PandocLang()..
\ ' --from='..s:PandocFiletype(&filetype)..