You can patch the file _mapping.py
in ../pygments/lexers/
, line 193:
'NasmLexer': ('pygments.lexers.asm', 'NASM', ('nasm','asm'), ('*.asm', '*.ASM'), ('text/x-nasm',)),
('nasm',)
becomes ('nasm','asm')
It can help: locate _mapping.py
, don't remember to delete the old pyc: sudo rm _mapping.pyc
, optionally: sudo python -c "import py_compile;py_compile.compile('_mapping.py')"