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 2.0: @export_enum does not support multiline wrapping using parentheses #58114

Closed
Tracked by #40488
owstetra opened this issue Feb 14, 2022 · 0 comments · Fixed by #58971
Closed
Tracked by #40488

GDScript 2.0: @export_enum does not support multiline wrapping using parentheses #58114

owstetra opened this issue Feb 14, 2022 · 0 comments · Fixed by #58971

Comments

@owstetra
Copy link

Godot version

4.0 Alpha

System information

Windows 10

Issue description

@export_enum does not support multiline
for example :

@export_enum(Item1, Item2, Item3, Item4, Item5, Item6, Item7,
                         Item8, Item9) var MyEnum = 0

an Error says : expected ")" after annotation arguments
it must be in one single line like this :

@export_enum(Item1, Item2, Item3, Item4, Item5, Item6, Item7, Item8, Item9) var MyEnum = 0

sometimes the enum contains many items and it's hard to write it all and modify it in a single line of code

Steps to reproduce

none

Minimal reproduction project

No response

@Calinou Calinou added this to the 4.0 milestone Feb 14, 2022
@Calinou Calinou changed the title GDScript 2.0 @export_enum does not support multiline GDScript 2.0: @export_enum does not support multiline wrapping using parentheses Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants