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 HolyC support #750

Merged
merged 4 commits into from Feb 15, 2023
Merged

Add HolyC support #750

merged 4 commits into from Feb 15, 2023

Conversation

ghost
Copy link

@ghost ghost commented Feb 15, 2023

I've tried to add HolyC support by cross referencing GitHub's Linguist HolyC implementation against it's C implementation to see how the syntax is different. Then copied the C file on Chroma and applied those changes. This hopefully should work.

cmd/chroma/main.go Outdated Show resolved Hide resolved
@ghost
Copy link
Author

ghost commented Feb 15, 2023

Fixed that

@alecthomas
Copy link
Owner

No worries, it happens.

If you could add a test input that would be great. Check the testdata/README.md file for instructions.

@alecthomas
Copy link
Owner

There is also at least one regex issue which is in the CI logs. You can test this locally with go test ./lexers

@ghost
Copy link
Author

ghost commented Feb 15, 2023

Oof sorry I didn't see that.

@ghost
Copy link
Author

ghost commented Feb 15, 2023

There is also at least one regex issue which is in the CI logs. You can test this locally with go test ./lexers

Alright, apologies @alecthomas, I've never really worked with Go before prior to this, so I had no idea I could test it. Anyways it's fixed.

@alecthomas alecthomas merged commit 3ac94ee into alecthomas:master Feb 15, 2023
@alecthomas
Copy link
Owner

Lovely, thanks!

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.

None yet

1 participant