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

Added pony lexer #372

Merged
merged 2 commits into from
Jun 12, 2020
Merged

Added pony lexer #372

merged 2 commits into from
Jun 12, 2020

Conversation

thomastay
Copy link
Contributor

Ported from Pygments, with a few minor tweaks. I've tested it on some Pony code and it seems to highlight it well.

@thomastay
Copy link
Contributor Author

I'm not really sure how to add relevant tests, though I think that's probably useful. Let me know. So far, I've only done my own testing (by using it in my personal Hugo build)

@alecthomas
Copy link
Owner

Tests would be excellent, thanks. lexers/README.md describes how to do so.

@thomastay thomastay marked this pull request as draft June 12, 2020 01:56
@thomastay thomastay marked this pull request as ready for review June 12, 2020 03:06
@thomastay
Copy link
Contributor Author

thomastay commented Jun 12, 2020

PTAL. I looked through the generated pony.expected file and found that it matches what I expected. test file is a mashup of files from the official pony examples as well as some nonsense to test more keywords

@alecthomas
Copy link
Owner

Nice, thanks!

@alecthomas alecthomas merged commit 57c1bd9 into alecthomas:master Jun 12, 2020
mrsdizzie pushed a commit to mrsdizzie/chroma that referenced this pull request Jul 15, 2020
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.

2 participants