-
Notifications
You must be signed in to change notification settings - Fork 634
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
Adding basic Mojo lexer #2691
Adding basic Mojo lexer #2691
Conversation
This needs an example file, otherwise we can't merge this. A basic .mojo file should suffice (and make sure to update the golden test outputs.) See: https://pygments.org/docs/lexerdevelopment/#how-to-test-your-lexer |
Thanks for guiding me along. I tested it locally (e.g. |
@Anteru I am currently struggling with tox. The command mentioned in the docs is not working out for me. I get I guess I need to dig more into tox / pygments. One general question as I don't have any experience with tox, but have done snapshot based testing (pytest / jest) in the past. Are the lexer tests similar to that? Cheers |
It's
Yes. And they're done with pytest, tox is just a test runner which saves you the time to install pytest in a virtual environment. |
Thanks for your quick response and sorry for the delay. Github's device verification currently has a massive delay for emails. Login failed for 2 days now. Actually I did use the double-dash, but I wasn't aware of tox automatic venv handling. Anyway, I got it working now and prepared snippets / examples. |
Merged, thanks! |
basic implementation for #2515 based upon PythonLexer