Skip to content

fix: Escape special chars in enum name#283

Merged
fabien0102 merged 1 commit intofabien0102:mainfrom
sschw:fix-escape-enum-name
Feb 4, 2025
Merged

fix: Escape special chars in enum name#283
fabien0102 merged 1 commit intofabien0102:mainfrom
sschw:fix-escape-enum-name

Conversation

@sschw
Copy link
Copy Markdown
Contributor

@sschw sschw commented Feb 3, 2025

Similar to #207 however addressing the issue more generally.

Enum names could contain characters that are not allowed to be used as identifiers. The best example is a string starting with a number, however it could also be like in the example "danish–swedish farmdog" a string using which is \u2013.

As several issues are already solved by using pascal ( and -) it acts as a last resort if even this fails.

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.

2 participants