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

Code Editor 2: using the word "end" in an enum causes the formatting and autocomplete to stop functioning correctly #8456

Closed
1 of 2 tasks
scott-dunbar opened this issue Nov 19, 2024 · 4 comments
Labels
ide-bug Bugs with the GameMaker IDE

Comments

@scott-dunbar
Copy link
Collaborator

Description

Attempting to use the word end in an enum causes things like autocomplete to think it is no longer in an enum declaration. Rainbow brackets and code highlighting in general also becomes confused

Image

https://api.gamemaker.io/api/github/downloads/45db4609-3d7e-4ddc-8e22-97e6667b45de

Expected Change

No response

Steps To Reproduce

  1. Start GameMaker
  2. Create a script
  3. Add an enum
  4. enter "end" without quotes as one of the enum entries
  5. See the issue

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.1100 (Betas)

Which operating system(s) are you seeing the problem on?

No response

Are you running GameMaker from inside your Steam library?

None

Sample Package Attached?

  • I have attached my bug package

Sample Project Added?

  • I have included a small sample project
@scott-dunbar scott-dunbar added the ide-bug Bugs with the GameMaker IDE label Nov 19, 2024
@rwkay
Copy link

rwkay commented Nov 19, 2024

end is a GM keyword - you cannot use keywords in an enum

@scott-dunbar
Copy link
Collaborator Author

scott-dunbar commented Nov 19, 2024

Only the keyword end shows this behaviour - the others should match or it should match them (my recommendation is that end should behave as the other keywords do)

Image

I am aware that you should not use the keywords in this manner - this issue is that CE2 does not show that correctly and causes knockons with a specific keyword

@rwkay
Copy link

rwkay commented Nov 19, 2024

but end is a synonym for } so you are finishing the enum

@stuckie
Copy link

stuckie commented Nov 20, 2024

Closing as above

@stuckie stuckie closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2024
@github-project-automation github-project-automation bot moved this from Triage to Done in Team Workload Nov 20, 2024
@gurpreetsinghmatharoo gurpreetsinghmatharoo moved this from Done to Not Planned in Team Workload Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide-bug Bugs with the GameMaker IDE
Projects
Status: Not Planned
Development

No branches or pull requests

3 participants