Skip to content

Fix text for some enums with digits#291

Merged
sebaszm merged 3 commits into
masterfrom
development/fix-text-in-some-enums
Jun 24, 2026
Merged

Fix text for some enums with digits#291
sebaszm merged 3 commits into
masterfrom
development/fix-text-in-some-enums

Conversation

@sebaszm

@sebaszm sebaszm commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 23, 2026 09:26
@sebaszm sebaszm changed the title Fix text for some enums with digits (#290) Fix text for some enums with digits Jun 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves enum “text” handling across the parsing/generation pipeline so enums (and/or their enumerators) that include digits produce the intended text casing/overrides.

Changes:

  • CppParser.Parse: supports @text appearing before the first (or next) enumerator by carrying it forward and attaching it to the upcoming enumerator entry.
  • header_loader.CaseConverter: updates PascalCase conversion to use str.title() for underscore/UPPER inputs so segments like D3D11 don’t get incorrectly downcased to D3d11.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ProxyStubGenerator/CppParser.py Applies pending @text to the next parsed enumerator (including the first enumerator in an enum).
JsonGenerator/source/header_loader.py Fixes PascalCase transformation for tokens containing digits by using title() instead of capitalize().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

Copy link
Copy Markdown

LuaGenerator Results

View Results

No changes detected.

@github-actions

Copy link
Copy Markdown

ProxyStubGenerator Results

View Results

Changes detected.

@github-actions

Copy link
Copy Markdown

JsonGenerator Results

View Results

Changes detected.

Copilot AI review requested due to automatic review settings June 23, 2026 15:31
@github-actions

Copy link
Copy Markdown

LuaGenerator Results

View Results

No changes detected.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread ProxyStubGenerator/CppParser.py
@github-actions

Copy link
Copy Markdown

JsonGenerator Results

View Results

Changes detected.

@github-actions

Copy link
Copy Markdown

ProxyStubGenerator Results

View Results

Changes detected.

@sebaszm sebaszm merged commit 9bdc27d into master Jun 24, 2026
119 of 121 checks passed
@sebaszm sebaszm deleted the development/fix-text-in-some-enums branch June 24, 2026 08:35
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants