1. Georg Brandl
  2. pygments-main
  3. Issues
Issue #418 resolved

get_lexer_for_filename get wrong lexer when filename is *.S

Anonymous created an issue

the file .S appear in both lexers: 'GasLexer': ('pygments.lexers.asm', 'GAS', ('gas',), ('.s', '.S'), ('text/x-gas',)), and 'SLexer': ('pygments.lexers.math', 'S', ('splus', 's', 'r'), ('.S', '*.R'), ('text/S-plus', 'text/S', 'text/R')), when just use get_lexer_for_filename("asm.S"), it's return pygments.lexers.math, cann't retruen pygments.lexers.asm

Reported by guest

Comments (7)

  1. Log in to comment