Closed HLuo90 closed 7 months ago
Hi @HLuo90, can you please provide some screenshots which show this issue?
Thanks!
Hi @dklilley Here is a screenshot:
This discrepancy between character arrays and strings occurs regardless of whether it's defined in a function or not; it's not specific to sprintf()
or fprintf()
.
Thanks for the screenshot!
This appears to be the same as the issue @goldrik reported last month: mathworks/MATLAB-Language-grammar#75
I am going to close this as a duplicate of that issue.
Type: Bug
syntax highlighting for strings in printf such as fprintf("%s") do not highlight while char arrays highlight properly fprintf('%s')
Extension version: 1.1.6 VS Code version: Code 1.87.0 (019f4d1419fbc8219a181fab7892ebccf7ee29a2, 2024-02-27T23:41:44.469Z) OS version: Windows_NT x64 10.0.19045 Modes:
System Info
|Item|Value| |---|---| |CPUs|AMD Ryzen 7 PRO 5850U with Radeon Graphics (16 x 1896)| |GPU Status|2d_canvas: enabledcanvas_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| |Load (avg)|undefined| |Memory (System)|31.31GB (12.88GB free)| |Process Argv|--crash-reporter-id d336f1c9-8222-4759-9048-6948aa1e6e1f| |Screen Reader|no| |VM|0%|
A/B Experiments
``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 accentitlementsc:30887149 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 pydisww2:30959801 cppperfnew:30973185 d34g3935:30971562 edj9j583:30969295 fegfb526:30973843 ccp1r6:30958156 dsvsc020:30973508 ```