Skip to content

fix: strip invisible unicode chars from identifiers (issue #605)#617

Merged
rexm merged 2 commits into
masterfrom
worktree-agent-a367ce93669fcb70a
Jun 20, 2026
Merged

fix: strip invisible unicode chars from identifiers (issue #605)#617
rexm merged 2 commits into
masterfrom
worktree-agent-a367ce93669fcb70a

Conversation

@rexm

@rexm rexm commented Jun 20, 2026

Copy link
Copy Markdown
Member

Fixes #605

BOM and other invisible Unicode characters embedded in identifier names caused #if and other expressions to silently fail. They are now stripped during parsing.

rexm and others added 2 commits June 19, 2026 20:52
…605)

BOM (U+FEFF) and other invisible Unicode format characters embedded in identifier
names caused #if and other expressions to silently fail because the lookup key
included the invisible character. The WordParser now skips these characters when
accumulating identifier tokens.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rexm rexm enabled auto-merge June 20, 2026 17:19
@sonarqubecloud

Copy link
Copy Markdown

@rexm rexm merged commit 1c49da8 into master Jun 20, 2026
7 checks passed
@rexm rexm deleted the worktree-agent-a367ce93669fcb70a branch June 20, 2026 17:30
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.

ifs are not evaluated if there are invisible characters

1 participant