We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Godot 4.2 now supports typing the variable declaration in a for loop: godotengine/godot#80247
However gdformat fails when this syntax is used.
As of Godot 4.2 Beta, this syntax is valid:
var dict := {1: 2} for key: String in dict: print(key)
However, running gdformat on it results in this error: Previous tokens: [Token('NAME', 'key')]
Previous tokens: [Token('NAME', 'key')]
The text was updated successfully, but these errors were encountered:
Add support for Godot 4.2 typed for loop iterator variable, fixes Sco…
e697aba
…ny#236
I ran into this issue the other day when using Godot 4.2 beta 2. I just submitted a PR to address it. My changes are working for me locally.
Sorry, something went wrong.
b7683e6
62e429a
Works great @neilgoodman ! Thanks so much for the quick fix! 🙏
No branches or pull requests
Godot 4.2 now supports typing the variable declaration in a for loop:
godotengine/godot#80247
However gdformat fails when this syntax is used.
As of Godot 4.2 Beta, this syntax is valid:
However, running gdformat on it results in this error:
Previous tokens: [Token('NAME', 'key')]
The text was updated successfully, but these errors were encountered: