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

Duplicate aliases for the language "Juttle" #1604

Closed
sumanthvrao opened this issue Nov 17, 2020 · 0 comments
Closed

Duplicate aliases for the language "Juttle" #1604

sumanthvrao opened this issue Nov 17, 2020 · 0 comments
Milestone

Comments

@sumanthvrao
Copy link
Contributor

@sumanthvrao sumanthvrao commented Nov 17, 2020

The aliases for the language Juttle occurs twice in the tuple resulting from get_all_lexers(). Here's a small snippet to reproduce

In [15]: from pygments.lexers import get_all_lexers

In [16]: lexers = get_all_lexers()

In [17]: {alias[0]: alias[1] for alias in lexers}.get('Juttle')
Out[17]: ('juttle', 'juttle')

Pygments PyPI version used: 2.7.2 (latest)

sumanthvrao added a commit to sumanthvrao/pygments that referenced this issue Nov 17, 2020
The output from pygments.lexers.get_all_lexers() would contain
'juttle' twice in the aliases section for the Juttle lexer entry.

This could be reproduced using:

>>> from pygments.lexers import get_all_lexers
>>> lexers = get_all_lexers()
>>> {alias[0]: alias[1] for alias in lexers}.get('Juttle')
('juttle', 'juttle')

This patch fixes the duplicate entry and generates the associated
_mapping.py file.

Fixes: pygments#1604
sumanthvrao added a commit to sumanthvrao/pygments that referenced this issue Nov 17, 2020
The output from pygments.lexers.get_all_lexers() contains 'juttle'
twice in the aliases section for the Juttle lexer entry.

This could be reproduced using:

>>> from pygments.lexers import get_all_lexers
>>> lexers = get_all_lexers()
>>> {alias[0]: alias[1] for alias in lexers}.get('Juttle')
('juttle', 'juttle')

This patch fixes the duplicate entry and generates the associated
_mapping.py file.

Fixes: pygments#1604
birkenfeld added a commit that referenced this issue Nov 19, 2020
The output from pygments.lexers.get_all_lexers() contains 'juttle'
twice in the aliases section for the Juttle lexer entry.

This could be reproduced using:

>>> from pygments.lexers import get_all_lexers
>>> lexers = get_all_lexers()
>>> {alias[0]: alias[1] for alias in lexers}.get('Juttle')
('juttle', 'juttle')

This patch fixes the duplicate entry and generates the associated
_mapping.py file.

Fixes: #1604
@Anteru Anteru added this to the 2.7.3 milestone Nov 25, 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
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants