Repository navigation
assembly .rodata/.rdata and javascript .bind(/.call(/.apply( behind a leading \b (Part of #4108) - #7869
Merged
Conversation
…r sit behind a leading word boundary (Part of #4108) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
3 of 13 tasks
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #4108 (slice 24).
What changed
Two rules had an alternation member starting with a non-word char (
.) inside a leading\b(...), so the member could only match right after a word character, never after whitespace,)or]:assembly.immutability_locks:.rodata/.rdata(\t.section .rodatanever fired). Now\bequ\b|\.(?:rodata|rdata)\b.javascript.reflection_metaprogramming:.bind(/.call(/.apply((also needed a word char after(, sof.call()missed). Now\b(...)\b|\.(?:bind|call|apply)\(.Golden masters re-blessed via
golden-lock.sh crucible_check.py --update --yes; the drift is the two signals (Metaprogramming & Reflection, Immutable Data Declarations) plus their derived scores on the crucible files that use these constructs.Class / Sibling gaps
Class: a
\bdirectly before an alternation (or literal) whose member starts with a non-word char, so it cannot fire after whitespace or punctuation. Swept every compiled regex inLANGUAGE_DEFINITIONSplus a source grep ofgitgalaxy/. Handled here: assembly.rodata/.rdata, javascript.bind(/.call(/.apply(. Already fixed elsewhere: JVM (#7864), dockerfile (#7862), go.MatchString(#7867, open). The shared planned-debt@todois redundant, not a bug (\btodo\balready matches after@).Sibling gaps (each is a different language file, one line plus a test; not done here to stay in "one or two languages"):
swift.py:475regex_execution:\.range\(of:.*\.regularExpressionbehind\b(; misses after"..."/).csharp.py:600dependency_injection:\[Inject\]behind\b(...)\b;[after whitespace never matches and]then needs a word char.agc_assembly.py:245spec_exposure:#\s*REF:behind\b(...)\b; also the trailing\bafter:.Remaining slices
None beyond the sibling gaps above.
Gates
New tests (fire and no-fire for both rules) and the assembly/javascript strict suites pass (220). Golden bless run on both legs. Not run:
pr_gates --fast/--ratchets, full suite (CI).🤖 Generated with Claude Code