Skip to content

feat: add yieldPercentSymbols option to emit PERCENT_SYMBOL tokens - #6

Merged
mlightcad merged 1 commit into
mainfrom
feat/yield-percent-symbols
Jun 8, 2026
Merged

feat: add yieldPercentSymbols option to emit PERCENT_SYMBOL tokens#6
mlightcad merged 1 commit into
mainfrom
feat/yield-percent-symbols

Conversation

@mlightcad

Copy link
Copy Markdown
Owner

Summary

  • Add new TokenType.PERCENT_SYMBOL and PercentSymbolData type for structured AutoCAD %% symbol codes
  • Add yieldPercentSymbols parser option (default false) to emit symbol tokens instead of expanding into WORD characters
  • Support named codes (%%c, %%d, %%p), numeric codes (%%ddd), and literal percent (%%%)
  • Add comprehensive tests and bump version to 1.5.0

Test plan

  • Run npm testyieldPercentSymbols test suite passes
  • Verify default behavior unchanged when yieldPercentSymbols is false or omitted
  • Confirm named, numeric, and literal %% codes emit correct PERCENT_SYMBOL token data

Made with Cursor

Allow consumers to receive structured %% code tokens (named, numeric, literal) instead of expanding them into WORD characters, and bump version to 1.5.0.
@mlightcad mlightcad self-assigned this Jun 8, 2026
@mlightcad mlightcad added the enhancement New feature or request label Jun 8, 2026
@mlightcad
mlightcad merged commit a13617f into main Jun 8, 2026
1 check passed
@mlightcad
mlightcad deleted the feat/yield-percent-symbols branch June 8, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant