>
> On Wed, May 18, 2022 at 9:20 AM Dan <
dan....@digidescorp.com> wrote:
> >
> > It looks like this issue is due to pygments.lexers.get_all_lexers() having multiple mime types associated with this extension.
> >
> > ('C', ('c',), ('*.c', '*.h', '*.idc', '*.x[bp]m'), ('text/x-chdr', 'text/x-csrc', 'image/x-xbitmap', 'image/x-xpixmap'))
> >
> > So, in mimeview.py, Mimeview.mime_map(), there are multiple assignments to self._mime_map[keyword] = mimetype
> >
> > It will assign to the four items in the above list in turn. However, self._mime_map will simply end up holding the last value.
> >
> > I wonder if we should just use the first one we encounter, and ignore subsequent attempts to override the value.
> >
> > I am using Ubuntu 22. (pygments 2.11 or 2.12)
> >
> > - Dan
>
> Good catch! I just reproduced the issue with Pygments 2.12.0 instead of 2.10.0.