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

Vue extension shows incorrect red color syntax highlighting on nested curly brackets of a plain text file #5029

Open
fireattack opened this issue Dec 5, 2024 · 1 comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@fireattack
Copy link

fireattack commented Dec 5, 2024

Type: Bug

  1. create a text file temp.txt with content such as
{"I am": "just", "a": {"nested": "json"}}

or

{111, {222}}

image
image

Expected: no red color for brackets.

Observed: Vue extension causes incorrect "red color" (indicating unmatched bracketing or wrong syntax?) for these brackets despite they're totally valid JSON (case 1), or totally matched (case 2).

Not sure why Vue is syntax-highlighting plain text to begin with; but at least for parentheses and square brackets, this does not happen:

(1, (2))
[1, [2]]

image

Extension version: 2.1.10
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-14600K (20 x 3494)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.77GB (14.00GB free)
Process Argv --crash-reporter-id b6fcf05e-a986-4547-b92a-20ce53e79f08
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

@fireattack fireattack changed the title Vue extension shows wrong bracket color for text file Vue extension shows incorrect red color syntax highlighting on brackets of a plain text file Dec 5, 2024
@fireattack fireattack changed the title Vue extension shows incorrect red color syntax highlighting on brackets of a plain text file Vue extension shows incorrect red color syntax highlighting on nested curly brackets of a plain text file Dec 5, 2024
@KazariEX KazariEX added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels Dec 5, 2024
@KazariEX
Copy link
Collaborator

KazariEX commented Dec 5, 2024

This is because {{ ... }} has been registered as colorizedBacketAirs, the last }} is recognized as an incomplete closing bracket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

2 participants