On Wed, May 18, 2022 at 9:20 AM Dan <dan.m...@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. Could you please create new ticket on https://trac.edgewall.org/newticket? -- Jun Omae <jun6...@gmail.com> (大前 潤) -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CAEVLMajnKEQ6DEGDMs5aBaAo3nog2eB0QcxF4-GUjhmwHkJSGA%40mail.gmail.com.