- VSCode Version: Code 1.12.2 (19222cdc84ce72202478ba1cec5cb557b71163de, 2017-05-10T13:20:36.315Z) - OS Version: Windows_NT ia32 10.0.15063 - Extensions: |Extension|Author|Version| |---|---|---| |Gradle|cazzar09|1.1.2| |python|donjayamanne|0.6.4| |CppSnippets|hars|0.0.9| |vscode-clang|mitaki28|0.2.2| |cpptools|ms-vscode|0.11.0| |PowerShell|ms-vscode|1.0.0| |java|redhat|0.4.0| |theme-obsidian|rprouse|0.2.0| |cmake|twxs|0.0.17| |theme-actual-obsidian|zehfernando|2.1.0|; --- Steps to Reproduce: 1. Open `.cmd` file 2. Enter `call echo %%LINE:rem +=%%` EXPECTED: The whole substring `%%LINE:rem +=%%` is highlighted as variable ACTUAL: The substring `rem +=%%` is highlighted as comments
Activity
[-]Wrong `.cmd` syntax highlighting.[/-][+][bat] correctly support %%[/+]support %%(fix microsoft#26825)
Merge pull request #27325 from Ikuyadeu/support_bat
[bat] add test for #26825
aeschli commentedon Nov 14, 2017
Yuki Ueda (@Ikuyadeu) I have update the batch file grammar to use https://github.com/mmims/language-batchfile.

The given example now show that way:
Ikuyadeu commentedon Nov 15, 2017
It's looks good!
But from https://github.com/Microsoft/vscode/blob/master/extensions/bat/test/colorize-results/test_bat.json#L488 ,
LINE:rem +=is not assigned any value.In the previous it was
variable.other.parsetime.dosbatch, and now%%isconstant.character.escape.batchfile.In my opinion
LINE:rem +=should bevariable.other.parsetime.dosbatchorconstant.character.If you want, I'll create PR to here or https://github.com/mmims/language-batchfile
aeschli commentedon Nov 15, 2017
You decide, I think the new behaviour (not having a variable) is also ok.
Ikuyadeu commentedon Nov 16, 2017
Martin Aeschlimann (@aeschli) OK, thank you for response!
support %%(fix microsoft#26825)
Merge pull request microsoft#27325 from Ikuyadeu/support_bat