Repository navigation
Crystal: add the .cr language profile (Part of #5623) - #5695
Merged
Merged
Conversation
… class/struct/module/enum/lib) (Part of #5623) Keyword-scope slicing on ruby's Mode D shape, a Crystal-only heredoc opener (`<<-ID`; `x << FRACBITS` is a shift), column-0 `fun ... end` as a unit, and strictness/policy rows. doo-cr @ 4e17635d: 41 of 43 .cr files mapped (the other 2 are Aperture exclusions), 1509 functions; grep def/macro/fun counts match on am_automap (35), p_main (247) and implementation (642). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 20, 2026 06:03
Contributor
squid-protocol
enabled auto-merge (squash)
October 20, 2026 06:06
| import sys | ||
| from pathlib import Path | ||
|
|
||
| import pytest |
This was referenced Oct 20, 2026
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 #5623 (slice 2 of 2: Crystal; F# landed in #5681).
What
languages/crystal.py:.crprofile (def/macro/ column-0fun,class/struct/module/enum/lib/annotation), registered inlanguage_standards/__init__.py.core/detector.py: Crystal joins ruby's Mode D keyword scoping, a Crystal-only heredoc opener (<<-ID), and_extract_semantic_name(operator names,fun).analysis_lens.py: strictness row and backend policy entry.test_crystal_strict.py: 13 tests (spans, modifier-if, abstract def, shift-vs-heredoc,funvslibdeclaration, ReDoS).Evidence: doo-cr @ 4e17635d (43 .cr files)
funvariables.cr,deh_bexextensions.cr) are Aperture exclusions (embedded array payload / machine-generated signature), not routing gaps.Two real bugs found by the rescan:
x << FRACBITSwas read as a Ruby heredoc and blanked the rest of the file; top-levelfun ... endwas not a unit.Golden
No drift: language-crucible v1.7.0 has no
.crfiles, so both masters are unchanged. Not blessed.Gates
pr_gates --fast6/6,--ratchets8/8,audit_checkclear, tree-wide guard tests 184 passed, registry/strictness tests 5537 passed.Remaining slices
docs/language_status/crystal.md+ README row (kept out to stay within 5 hand-written files).Sibling gaps (class: unmapped file extensions)
.ecr(Embedded Crystal templates) is unmapped;shard.ymlroutes via discriminator only.Cross-repo
None.
🤖 Generated with Claude Code