Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add git attribute for syntax highlighting #78

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

erhant
Copy link
Contributor

@erhant erhant commented Jan 15, 2024

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
Copy link
Member

Thanks this is great!

@unbalancedparentheses
Copy link
Member

Approved. @igaray @edg-l check

@erhant
Copy link
Contributor Author

erhant commented Jan 16, 2024

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

@igaray igaray merged commit a120880 into lambdaclass:main Jan 16, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants