godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.55k stars 164 forks source link

var foo:int: not highlighted #537

Closed moritztim closed 10 months ago

moritztim commented 10 months ago

Godot version

v4.1.3.stable.arch_linux

VS Code version

1.84.2

Godot Tools VS Code extension version

1.3.1

System information

Arch Linux

Issue description

var foo:int: # int should be green
    get:
        return 0
var bar: int:
    get:
        return 0

image

Steps to reproduce

  1. type var foo:int:
DaelonSuzuka commented 10 months ago

It's because the new getter/setter syntax in Godot 4 is confusing the parser. get should also be yellow like a function name.

This has already been fixed in master:

image