Skip to content

JuttleLexer: Fix duplicate 'juttle' occurance in lexer aliases.#1606

Merged
birkenfeld merged 1 commit intopygments:masterfrom
sumanthvrao:Fix-duplicate-juttle-alias
Nov 19, 2020
Merged

JuttleLexer: Fix duplicate 'juttle' occurance in lexer aliases.#1606
birkenfeld merged 1 commit intopygments:masterfrom
sumanthvrao:Fix-duplicate-juttle-alias

Conversation

@sumanthvrao
Copy link
Copy Markdown
Contributor

@sumanthvrao sumanthvrao commented 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: #1604

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
Copy link
Copy Markdown
Member

Thanks!

@birkenfeld birkenfeld merged commit ed985a1 into pygments:master Nov 19, 2020
@Anteru Anteru added this to the 2.7.3 milestone Nov 25, 2020
@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label Nov 25, 2020
@Anteru Anteru removed the changelog-update Items which need to get mentioned in the changelog label Dec 5, 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.

Duplicate aliases for the language "Juttle"

3 participants