vscode-kotlin icon indicating copy to clipboard operation
vscode-kotlin copied to clipboard

Char literal syntax highlighting wrong for double-quote '"'

Open wyckster opened this issue 4 years ago • 0 comments

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.

val a = '"'
val dummy1 = 1
val b = '"'
val dummy2 = 2

Here is an image showing the incorrect syntax highlighting in vscode:

incorrect syntax highlighting

Compare to an image of some correct highlighting from Android Studio:

correct syntax highlighting

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: enabled
flash_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

wyckster avatar Dec 29 '20 21:12 wyckster