Skip to content

[bat] correctly support %% #26825

Closed

Description

  • VSCode Version: Code 1.12.2 (19222cd, 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

  1. added
    languages-basic
    on May 17, 2017
  2. changed the title [-]Wrong `.cmd` syntax highlighting.[/-] [+][bat] correctly support %%[/+] on May 18, 2017
  3. added
    feature-request
    on May 18, 2017
  4. added a commit that references this issue on May 26, 2017
    3022b4c
  5. added 2 commits that reference this issue on May 26, 2017
    a9ddd8c
    c29241c
  6. aeschli commented on Nov 14, 2017

    @aeschli
    Contributor
  7. Ikuyadeu commented on Nov 15, 2017

    @Ikuyadeu
    Contributor

    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 %% is constant.character.escape.batchfile.
    In my opinion LINE:rem += should be variable.other.parsetime.dosbatch or constant.character.
    If you want, I'll create PR to here or https://github.com/mmims/language-batchfile

  8. aeschli commented on Nov 15, 2017

    @aeschli
    Contributor

    You decide, I think the new behaviour (not having a variable) is also ok.

  9. Ikuyadeu commented on Nov 16, 2017

    @Ikuyadeu
    Contributor

    Martin Aeschlimann (@aeschli) OK, thank you for response!

  10. locked and limited conversation to collaborators on Nov 17, 2017
  11. added 2 commits that reference this issue on Sep 6, 2026
    49a05ac
    c07ef6a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestlanguages-basic

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions