Skip to content

Elixir Erlang-atom calls (:rpc.call, :gen_tcp, :ets, ...) no longer miss on the leading word boundary (Part of #4108) - #7837

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4108-20261106T0051Z
Nov 6, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4108-20261106T0051Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4108 (slice 21, follow-up to #7821).

What

An Erlang module call in Elixir (:rpc.call, :gen_tcp.send, :ets.insert, ...) starts with a colon, so a leading \b before it needs a word character on its left. It never matched after a space, ( or =. Slice 20 fixed :os.putenv; this fixes the same mechanism in the other nine rules that carried a colon atom inside a \b(?:...) group: ipc_rpc_bridges, io, high_risk_execution, state_mutation, globals, scientific, events, thread_sleeps, sync_locks. Each colon atom moves out of the \b group behind (?<![\w:]) (so foo:ets.insert and a::math still don't fire).

Tests: tests/extraction/languages/test_elixir_erlang_atom_calls_4108.py (14 fire cases, 5 no-fire cases). There were no strict xfails for these siblings to flip, so the test is new.

Evidence

  • Before: a probe of every rule on x = :rpc.call(...), (:gen_tcp.connect(...)), :ets.insert etc. gave False for all except time_date_logic. After: all True.
  • golden-lock.sh python tests/tools/crucible_check.py (check mode, both legs): PASS, no differences, so no bless.
  • pr_gates --fast: lint and audits PASS locally; the rest is left to CI.
  • test_elixir_strict.py, the slice-20 test and the new test: 41 passed.

Class / Sibling gaps

Class: a regex rule whose alternation starts with \b and whose member begins with a non-word character (:atom), so the \b cannot match after whitespace or punctuation. Members handled here: the nine elixir rules above, each with a test. time_date_logic (:timer\.) already sat outside the \b group and was fine. Sibling gaps: the same shape in other languages' rules (any \b(?:...|<non-word-start>...) alternation) was not swept here; other elixir rules were not audited beyond the colon atoms listed.

Remaining slices

Cross-language sweep of a leading \b before a non-word first character (one language at a time, golden-checked).

🤖 Generated with Claude Code

…iss on the leading word boundary (Part of #4108)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 6, 2026 01:09
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 6, 2026 01:15
@squid-shepherd
squid-shepherd Bot merged commit 6ee2a5c into main Nov 6, 2026
120 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/4108-20261106T0051Z branch November 6, 2026 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant