Skip to content

Fix/gperf token identifier boundary#1498

Merged
kareltucek merged 7 commits intomasterfrom
fix/gperf-token-identifier-boundary
Feb 23, 2026
Merged

Fix/gperf token identifier boundary#1498
kareltucek merged 7 commits intomasterfrom
fix/gperf-token-identifier-boundary

Conversation

@kareltucek
Copy link
Collaborator

@kareltucek kareltucek commented Feb 23, 2026

Reported at https://forum.uhk.io/t/validation-changes-on-16-2-0/2840 and chained into a couple other issues.

kareltucek and others added 7 commits February 23, 2026 12:24
Test verifies that `if (1 == 2) tapKey i` produces no output
when the condition evaluates to false.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
ConsumeGperfToken was using `> 32` to find token boundaries, treating
any non-whitespace as part of the token. This caused `if(1 == 1)` to
be parsed as token `if(1` instead of `if`.

Now uses isIdentifierChar() to match the behavior of ConsumeToken(),
correctly stopping at non-identifier chars like `(`.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Macros_AnyMacroRunning() to check if macros are active
- Add Macros_StopAllMacros() to forcibly stop all running macros
- Stop all macros before each test starts
- If macros still running after test completion, wait for timeout
- Kill all macros when timeout occurs
- Clean up macros at test suite finish

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@kareltucek kareltucek merged commit c32d312 into master Feb 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant