godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.48k stars 148 forks source link

any keyword between : and end of line gets treated as type by highlighter #562

Closed moritztim closed 6 months ago

moritztim commented 6 months ago

Godot version

v4.2.1.stable.arch_linux

VS Code version

Version: 1.85.1 Release: 23348 Commit: 08e6c15293922dd53a864bb041be381322fee401 Date: 2023-12-14T20:36:42.296Z Electron: 25.9.7 ElectronBuildId: undefined Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Linux x64 6.1.70-1-lts

Godot Tools VS Code extension version

1.3.1

System information

n/a

Issue description

Any single keyword between : and the end of the line gets highlighted green, like a type image

func foo():
    if true: return
    else:
        return

Steps to reproduce

  1. paste this: :x
  2. x is green
  3. cry
moritztim commented 6 months ago

image

const c = {
    "a": true,
    "b": true
}

Here's another example

moritztim commented 6 months ago

image even this gets highlighted

DaelonSuzuka commented 6 months ago

I believe these were all fixed in master a while ago.

image