evrowe / vscode-ember-syntax

Ember HTMLBars and Glimmer syntax highlighting
2 stars 1 forks source link

Breaks syntax highlighting after template string w/ variable #8

Open bantic opened 1 year ago

bantic commented 1 year ago

Type: Bug

I noticed that the following JS broke syntax highlighting.

let key = `${location.href}:${entry.name}`;

Lines following this one in my JS file did not have correct syntax highlighting. Commenting out this line fixed the problem. Or, changing it the equivalent: let key = [location.href, entry.name].join(':'); also fixed it.

Extension version: 0.5.0 VS Code version: Code 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:34:01.965Z) OS version: Darwin arm64 22.3.0 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 24)| |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
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|13, 9, 7| |Memory (System)|16.00GB (1.13GB free)| |Process Argv|--crash-reporter-id 0ce656b1-1b3c-4791-8bee-79844f2df589| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 pythondataviewer:30285071 vscod805cf:30301675 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 vscccc:30610679 pyindex848:30662994 nodejswelcome1:30587005 282f8724:30602487 pyind779cf:30662993 f6dab269:30613381 pythonsymbol12cf:30657549 2i9eh265:30646982 showlangstatbar:30664136 ```

Here's a screenshot showing the bad syntax higlighting:

image

And if I comment out the line, it looks ok again:

image