Add alias for pycon lexer (python-console) #2697
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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! ✨