Mercurial > vim
changeset 35961:099d053778d6
runtime(dosbatch): Show %%i as an argument in syntax file
Commit: https://github.com/vim/vim/commit/a1dc64956f36cb921d556910c5356bb6b91ba5b9
Author: Ken Takata <kentkt@csc.jp>
Date: Wed Aug 14 21:57:35 2024 +0200
runtime(dosbatch): Show %%i as an argument in syntax file
Inside batch files, for-variables must be written as %%i, not %i.
closes: #15453
Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 14 Aug 2024 22:15:48 +0200 |
parents | bba5685daa95 |
children | 3508f8da7216 |
files | runtime/syntax/dosbatch.vim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/syntax/dosbatch.vim +++ b/runtime/syntax/dosbatch.vim @@ -75,7 +75,7 @@ syn match dosbatchSet "\s\h\w*[+-]\==\{ " 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