Closed migmoog closed 1 year ago
Very interesting. Thank you for the report and the example code.
This is what your example looks like on the master
branch for me. Everything inside fn()
(lines 265-280) looks correct to me.
The single-line functions at the bottom are definitely wrong, so I'll see if I can fix that.
I'm testing this with a Godot 3.5 project with the current state of master
and it looks fine, just like your screenshot. Might be something specific to the current release and will be amended once 1.4.0 is done. The single line functions however are the same as in your example though
That's excellent, thank you very much for confirming. This fix will be in PR #441, so whenever I finish that you should be able to grab a new dev build.
Fixed in #441:
Godot version
3.5stable
VS Code version
1.64.2
Godot Tools VS Code extension version
1.3.1
System information
Windows 10
Issue description
the syntax highlighter reads one-line scopes as type annotations for variables, which highlights any keyword or symbol without an accompanying operator or syntax as a type.
As seen in vscode:
Steps to reproduce
Paste the following in vscode