Sublime Forum

Build 3117 Batch file syntax color issues

#1

Thanks very much for the recent 3116 and 3117 updates.

I ran into one issue. When I bring up a Windows batch file (.bat), the coloring for the set command isn’t working. Only the first set command is colored correctly and the variable isn’t colored (at least I thought it was colored before the updates). Also the space at the end of each line has a filled-in color. Everything was working fine before (3114, I believe is what I was using). Any ideas?

0 Likes

#2

Please can you log an issue at https://github.com/sublimehq/Packages/issues with your sample code. It looks like it doesn’t handle the opening quote correctly, it only seems to expect quotes after the = sign, so it treats the closing quote as an opening quote and therefore thinks it is unterminated, so fills in the end of the line in the invalid color.

i.e.

set abc="def" rem works
set abc=def rem works

but this isn’t handled correctly:

set "abc=def"
1 Like

#3

@kingkeith Thanks. You’re right, it only occurs when both the variable and value are enclosed in one set of quotes. It was working okay in the earlier build that I was using. I’ve logged the issue.

0 Likes