-
-
Notifications
You must be signed in to change notification settings - Fork 22k
New issue
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
Can't access keyword identifiers on a Dictionary #61981
Comments
Just stumbled upon this too. To add a bit of information it happens with all reserved keywords (tested with a dozens of the randomly) except for built-in type name. So the bug seems to be linked to the list given here in the doc |
I followed the link given in the docs that i gave just before and it seems there is no difference marked between keywords and other tokens (such as punctuation, parentheses, etc). I dug a bit more but i'm not acustomed to the source code of Godot. I found that the function parsing is Edit : based on my last remark i went digging on how it was done with $. I think i found how to fix it but as i have never contributed i will try to make the modification but it might take some time before i get how to do the PR stuff properly |
This is troublesome as |
You can use |
Godot version
803d25a
System information
Windows 10 x64
Issue description
Doing e.g.
results in
Expected identifier after "." for attribute access.
andExpected end of statement after expression, found "class" instead.
, spammed tens of times. The identifier is incorrectly recognized as a keyword.Works correctly in 3.x
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: