Skip to content

Conversation

abice
Copy link
Owner

@abice abice commented Dec 21, 2022

This changes up the parsing into 2 passes. The first of which will create a series of lines that omit the ENUM( prefix and last ) that will close the enum definition. This leaves the trim function to be left with just the functionality of trimming up a known enum value line.

Still on deck is the addition of string specific values being allowed (x = "prod"). That's not here yet.

Fixes #158
Fixes #154
Fixes #155

Fixes #159
Fixes #156

@coveralls
Copy link

coveralls commented Dec 21, 2022

Coverage Status

Coverage increased (+0.4%) to 94.011% when pulling 06727f5 on abice/fixParsing into 8e2c93d on master.

@abice abice merged commit 9793817 into master Dec 21, 2022
@abice abice deleted the abice/fixParsing branch December 21, 2022 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem using closing parentheses in enum values Generates foo_test_enum.go from foo_test.go instead of foo_enum_test.go
2 participants