Syntax highlighting issue with blocks in .cmd and .bat files

19 views
Skip to first unread message

Chainsaw

unread,
Feb 13, 2024, 10:33:20 AMFeb 13
to vim...@googlegroups.com
Hello,

Hoping an active Vim developer team member can help.

For gVim win32 64-bit nightly builds:

I am suddenly seeing a syntax highlighting issue with blocks in .cmd and
.bat files. I think it may be from an update that occurred between
02-03-2024 and 02-11-2024.

I am seeing several right parenthesis ')' highlighted in red as if the
block does not have a matching '(', but the blocks are closed. Too many
unique examples of code to nail down, but seems it may be related to the
keyword 'echo' (but not always). Below is a simple example that will
cause ')' to highlight in red.

if [%1] == [/echo] (
set "aaa=ok"
)

Thanks,
Chainsaw
Reply all
Reply to author
Forward
0 new messages