aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-08-17 11:35:15 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-08-17 13:03:13 +0200
commit0c3bdb80bd8d030e74876e9c9d3e9ecc246ee5ff (patch)
tree07834e014a970bdb5ac6d199a6da0fb2432c0efd
parent78fb387f87deb153cfef243a390e9a55370c35a5 (diff)
downloadrneovim-0c3bdb80bd8d030e74876e9c9d3e9ecc246ee5ff.tar.gz
rneovim-0c3bdb80bd8d030e74876e9c9d3e9ecc246ee5ff.tar.bz2
rneovim-0c3bdb80bd8d030e74876e9c9d3e9ecc246ee5ff.zip
vim-patch:a1dc649: runtime(dosbatch): Show %%i as an argument in syntax file
Inside batch files, for-variables must be written as %%i, not %i. closes: vim/vim#15453 https://github.com/vim/vim/commit/a1dc64956f36cb921d556910c5356bb6b91ba5b9 Co-authored-by: Ken Takata <kentkt@csc.jp>
-rw-r--r--runtime/syntax/dosbatch.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/syntax/dosbatch.vim b/runtime/syntax/dosbatch.vim
index 761fac0dc2..0c3e99be3b 100644
--- a/runtime/syntax/dosbatch.vim
+++ b/runtime/syntax/dosbatch.vim
@@ -75,7 +75,7 @@ syn match dosbatchSet "\s\h\w*[+-]\==\{-1}" contains=dosbatchIdentifier,dosbatc
" Args to bat files and for loops, etc
syn match dosbatchArgument "%\(\d\|\*\)"
-syn match dosbatchArgument "%[a-z]\>"
+syn match dosbatchArgument "%%[a-z]\>"
if dosbatch_cmdextversion == 1
syn match dosbatchArgument "%\~[fdpnxs]\+\(\($PATH:\)\=[a-z]\|\d\)\>"
else