Skip to content
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

GDScript: Restore support for Token::UNDERSCORE in identifiers #94327

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

HolonProduction
Copy link
Member

Fixes #94310

get_identifier used the token source before. With the introduction of the binary tokenizer this is handled differently, so we need to manually set the identifier on Token::UNDERSCORE.

@HolonProduction HolonProduction requested a review from a team as a code owner July 13, 2024 20:25
@dalexeev dalexeev added this to the 4.3 milestone Jul 13, 2024
@HolonProduction HolonProduction force-pushed the underscore_identifier branch 2 times, most recently from 71404bd to 539c107 Compare July 14, 2024 08:23
@HolonProduction HolonProduction changed the title GDScript: Restore support for Token::UDNDERSCORE in identifiers GDScript: Restore support for Token::UNDERSCORE in identifiers Jul 14, 2024
@ClayTaeto
Copy link

I would like this feature in

modules/gdscript/gdscript_tokenizer.cpp Outdated Show resolved Hide resolved
@akien-mga akien-mga merged commit c2b91e2 into godotengine:master Jul 17, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@HolonProduction HolonProduction deleted the underscore_identifier branch October 5, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Single underscore node name is ignored when using the $ get_node() shorthand
4 participants