godotengine / godot-vscode-plugin

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

Wrong syntax highlighting when using ```%``` in a function call until EOF #525

Closed MartinVacheron closed 4 months ago

MartinVacheron commented 8 months ago

Godot version

v4.1.stable.official [970459615]

VS Code version

1.84.2

Godot Tools VS Code extension version

Development build

System information

Windows 11

Issue description

When using the unique name symbol % in a function call, it breaks the coloring for the rest of the file.

In the following example, from fcn8() to EOF, the colors are no longer the good ones. I get the same result outside an if statement.

image

Steps to reproduce

Open the file in the zip (or write down the same text as in example image) in VSCode.

ColoringBug.zip

DaelonSuzuka commented 7 months ago

This has been fixed in master for a while, and I guess I forgot to update this issue.

image

DaelonSuzuka commented 4 months ago

Closing since 2.0.0 has been released.