Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows bat file syntax highlighting problem #170593

Closed
kokutoukiritsugu opened this issue Jan 5, 2023 · 2 comments
Closed

windows bat file syntax highlighting problem #170593

kokutoukiritsugu opened this issue Jan 5, 2023 · 2 comments
Assignees
Labels
grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@kokutoukiritsugu
Copy link

Type: Bug

windows batch:

if not %errorlevel%==0 echo error!!! & echo; & exit /b
if not %errorlevel%==0 echo error!!! && echo; && exit /b
if not %errorlevel%==0 echo error!!! || echo; || exit /b

image

the second "echo" and "exit" command not highlighting

VS Code version: Code 1.74.2 (e8a3071, 2022-12-20T10:29:14.590Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No

System Info
Item Value
CPUs AMD Ryzen 5 5600X 6-Core Processor (12 x 3700)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 15.93GB (2.93GB free)
Process Argv K:\EasyU\driver\_common_printer_add.bat --crash-reporter-id bbaba037-8e76-4429-9304-78de16cb0895
Screen Reader no
VM 0%
Extensions (34)
Extension Author (truncated) Version
ZwLisp Zws 1.0.8
maxscript And 0.0.2
bat-snippets bat 0.2.0
auto-align bla 0.0.13
prettier-toml bod 0.1.0
vscode-better-align cho 1.3.1
xml Dot 2.5.1
vscode-glsllint dto 1.8.0
shell-format fox 7.2.2
reg ion 1.1.0
columnpaste joh 0.0.7
vscode-smart-column-indenter lmc 0.0.13
auto-build mar 2.1.45
clang-format mjo 1.10.0
vscode-language-pack-zh-hans MS- 1.74.12140931
csharp ms- 1.25.2
isort ms- 2022.8.0
python ms- 2022.20.1
vscode-pylance ms- 2022.12.20
jupyter ms- 2022.11.1003412109
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.12
vscode-jupyter-cell-tags ms- 0.1.6
vscode-jupyter-slideshow ms- 0.1.5
cpptools ms- 1.13.8
powershell ms- 2022.12.1
platformio-ide pla 2.5.5
vscode-xml red 0.23.0
vscode-yaml red 1.10.1
vscode-vba ser 0.8.0
shader sle 1.1.5
sq sq 0.0.1
even-better-toml tam 0.19.0
clang-format xav 1.9.0
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848:30577860
nodejswelcome1cf:30587006
2e4cg342:30602488
3d0df643:30613357
89544117:30613380
fim-prod:30623723

@kokutoukiritsugu
Copy link
Author

another problem:
echo new line:

echo,
echo;
echo(
echo/
echo+
echo=
echo.
echo\
echo:

only two of then highlighting
image

https://stackoverflow.com/a/6379940

@alexr00
Copy link
Member

alexr00 commented Jan 20, 2023

Copied to upstream repo: mmims/language-batchfile#39

@alexr00 alexr00 closed this as completed Jan 20, 2023
@alexr00 alexr00 added grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream labels Jan 20, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

6 participants