The Kotlin syntax for a double-quote char literal is '"'. Enter this by typing '"'. This syntax is highlighted incorrectly in vscode. It's highlighted as if the double-quotes somehow trump the single-quote char literals, which they should not.
Here is some Kotlin source code that illustrates the problem.
val a = '"'
val dummy1 = 1
val b = '"'
val dummy2 = 2
Here is an image showing the incorrect syntax highlighting in vscode:
Compare to an image of some correct highlighting from Android Studio:
Extension version: 1.7.1
VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:34:46.910Z)
OS version: Windows_NT x64 10.0.19042
Issue Type: Bug
The Kotlin syntax for a double-quote char literal is
'"'
. Enter this by typing '"'. This syntax is highlighted incorrectly in vscode. It's highlighted as if the double-quotes somehow trump the single-quote char literals, which they should not.Here is some Kotlin source code that illustrates the problem.
Here is an image showing the incorrect syntax highlighting in vscode:
Compare to an image of some correct highlighting from Android Studio:
Extension version: 1.7.1 VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:34:46.910Z) OS version: Windows_NT x64 10.0.19042
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (8 x 3410)| |GPU Status|2d_canvas: enabledflash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|31.95GB (8.58GB free)| |Process Argv|. --crash-reporter-id e5e654ef-9a6a-490b-ab1a-fca91fec1429| |Screen Reader|no| |VM|0%|
A/B Experiments
``` vsliv368cf:30146710 vsreu685:30147344 openlogontheside:30221877 python763:30178808 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 python504:30227505 vswsl492:30211401 wsl2prompt:30224612 pythonvsdeb440cf:30237828 unusedprompt:30224610 folderexplorercf:30224615 openfilemenu:30224647 pythonvsded773:30236629 vsjup459:30237187 ```