Skip to content

[Feature request] Classify Embedded Crystal (.ecr) as Crystal #7521

@BigBoyBarney

Description

@BigBoyBarney

Hi! Thank you for your work!

I've been working with a few embedded Crystal files recently (permalink), and noticed that they're counted as HTML in the repo composition, and as Forgejo uses go-enry, whose language list is based on linguist's, I thought I'd ask here :D

While embedding crystal into HTML is a common use case, it's in no way limited to that. It's basically a template language, so not directly related to HTML in any way.
Also, in my repo it's technically a KDL config file, so HTML is completely wrong in that case 🤣

Would it be possible to count Embedded Crystal (.ecr) as Crystal source code? Or maybe the language defined in the filename, like template.kdl.ecr.

Having it report as HTML even though it's not is a bit of a bummer :D

Thank you in advance!


More information about ECR: https://crystal-lang.org/api/1.17.1/ECR.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions