lambdaclass / concrete

Concrete is a simple programming language specifically crafted for creating highly scalable systems that are reliable, efficient, and easy to maintain.
Apache License 2.0
123 stars 11 forks source link

Add git attribute for syntax highlighting #78

Closed erhant closed 8 months ago

erhant commented 8 months ago

Since Concrete looks similar to Rust, using the same syntax highlighter for now should do wonders, especially for the GitHub code viewer.

I have added the necessary setting under .gitattributes, you can see it in action here: https://github.com/erhant/concrete/blob/erhant/gitattr/examples/simple.con

Note that this will also make *.con files count as Rust files for the language statistics, but I think that is okay for now. This attribute should be removed when Concrete highlighter is created & merged to Linguist.

unbalancedparentheses commented 8 months ago

Thanks this is great!

unbalancedparentheses commented 8 months ago

Approved. @igaray @edg-l check

erhant commented 8 months ago

Should we also add the highlight for lalrpop file as well?