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 alias for pycon lexer (python-console) #2697

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

bmispelon
Copy link
Contributor

Hi,

While writing documentation for the Django project (which uses reStructuredText) I noticed a code-block:: pycon and was really confused for a while. I genuinely assumed someone had made a typo because when I read "pycon", the only thing that comes to mind for me is the python conference of the same name. I had to look it up to figure out it was short for "PYthon CONsole".

This PR adds a new alias for the lexer with a name that's a bit more verbose, but also a bit less confusing (imo).

As it's a new alias, I believe this should be fully backwards compatible.

Thanks! ✨

@birkenfeld birkenfeld merged commit ff1e5d1 into pygments:master Apr 27, 2024
12 of 13 checks passed
@birkenfeld
Copy link
Member

Thanks!

@bmispelon bmispelon deleted the pycon-new-alias branch April 27, 2024 11:31
@bmispelon bmispelon restored the pycon-new-alias branch April 27, 2024 11:31
@bmispelon bmispelon deleted the pycon-new-alias branch April 27, 2024 11:31
@bmispelon
Copy link
Contributor Author

That was fast, thanks for the quick merge! 🚀

@Anteru Anteru added this to the 2.18.0 milestone Apr 28, 2024
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

3 participants