From: Ken Takata Date: Wed, 14 Aug 2024 19:56:42 +0000 (+0200) Subject: runtime(dosbatch): Add syn-sync to syntax file X-Git-Tag: v9.1.0675~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=11c92be8974f04ab12ff3f9cd89a692bbd6c46d9;p=thirdparty%2Fvim.git runtime(dosbatch): Add syn-sync to syntax file Closing parentheses were often highlighted as errors. Add a syntax sync command to reduce the error. Also fix that `defined` was not highlighted as an operator inside parentheses. E.g.: ``` if defined foo ( if defined bar ( ... ) ) ``` The first `defined` was highlighted but the second one was not. related: #15453 Signed-off-by: Ken Takata Signed-off-by: Christian Brabandt --- diff --git a/runtime/syntax/dosbatch.vim b/runtime/syntax/dosbatch.vim index 55601996ad..761fac0dc2 100644 --- a/runtime/syntax/dosbatch.vim +++ b/runtime/syntax/dosbatch.vim @@ -3,6 +3,7 @@ " Maintainer: Mike Williams " Filenames: *.bat " Last Change: 3rd February 2024 +" 2024 Aug 14 by Vim Project: improve syntax (#15453) " " Options Flags: " dosbatch_cmdextversion - 1 = Windows NT, 2 = Windows 2000 [default] @@ -45,7 +46,7 @@ syn match dosbatchString "\|]\|\^\@<=[)>|]\)*"lc=4 contains=dosbatchV syn match dosbatchEchoOperator "\