vscode
vscode copied to clipboard
shellscript syntax highlighting does not recognize command following `until`
Type: Bug
- Open file with language mode
shellscript
. - Input snippet:
if x; then x; elif x; then x; fi
while x; do x; done
until x; do x; done
Actual Behavior: All commands except until
recognize x
as a command and have appropriate highlighting.
Expected Behavior: until x;
should have similar syntax highlighting as while x;
.
VS Code version: Code 1.79.2 (Universal) (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:58:52.392Z) OS version: Darwin x64 18.7.0 Modes:
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz (4 x 1800) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled |
Load (avg) | 6, 4, 3 |
Memory (System) | 8.00GB (0.47GB free) |
Process Argv | --crash-reporter-id e76734d8-f729-4de2-a381-a17c3e032dc8 |
Screen Reader | no |
VM | 0% |
$@
and parameter variables are also highlighted as normal variables, rather than the special highlighting given to $?
, $#
, $*
, $$
, etc. I'm not sure if this is intentional.
@jeff-hykin
AFAIK the variables look like they're highlighted correctly to me (they're tagged as variable.parameter
instead of variable.language
. Have you tried different themes @That-Guy977 ?
I do get the until
problem though.
Ah, that seems like an issue of the theme I was using. I found other themes that don't have the issue, some where $#
, $?
etc have the same color as normal variables, and some where they're all the same color.
Out of curiosity, why the distinction between variable.parameter
and variable.language
, and why is $*
of the latter type?
The described behavior is how it is expected to work. If you disagree, please explain what is expected and what is not in more detail. See also our issue reporting guidelines.
Happy Coding!
@alexr00 should reopen
the original issue is about until
which Jeff confirmed as a bug
I do get the
until
problem though.
Fixed it with v1.6.2
Thanks for the quick fix! I've pulled in the latest changes.