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

Support more naming conventions for symbol names #226

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

UsernameFodder
Copy link
Owner

Some other sources use symbol names with hybrid naming conventions. Add support for a few more sensible conventions in resymgen, and loosen the restrictions for pmdsky-debug function names to include Pascal_Snake_Case (multiple underscore-delimited PascalCase parts).

Support for the following new naming conventions has been added to resymgen for general use:

  • camel_Snake_Case (camelCase_Then_PascalCase)
  • underscoreSeparated_camelCase
  • Pascal_Snake_Case (UnderscoreSeparated_PascalCase)
  • flatcase
  • UPPERFLATCASE

Added conventions:
- camel_Snake_Case (camelCase_Then_PascalCase)
- underscoreSeparated_camelCase
- Pascal_Snake_Case (UnderscoreSeparated_PascalCase)
- flatcase
- UPPERFLATCASE
Pascal_Snake_Case allows multiple underscore-delimited PascalCase parts,
and is a superset of PascalCase. Some other sources use symbol names
more like this than strict PascalCase, so loosen the restrictions to
better accommodate them.
@UsernameFodder
Copy link
Owner Author

@AnonymousRandomPerson FYI

@UsernameFodder UsernameFodder merged commit d608378 into master Dec 20, 2023
7 checks passed
@UsernameFodder UsernameFodder deleted the case-conventions branch December 20, 2023 22:13
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.

1 participant