Skip to content

Syntax Highlighting issue in is not operator #834

Open
@Hot-key

Description

@Hot-key

Godot version

4.4 stable

VS Code version

1.98.2

Godot Tools VS Code extension version

2.5.1

System information

Mac os(Darwin arm64 24.3.0)

Issue description

When using the is not operator for type checking in GDScript,
the syntax highlighting colors is and not differently,
even though is not should be treated as a single operator according to the official documentation.

Steps to reproduce

in godot editor
Image

in vscode
Image

# in GDscript
if node is not T:
    pass

x is Node
x is not Node
# in python
if node is not T:
    pass

x is Node
x is not Node

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions