summaryrefslogtreecommitdiff
path: root/tests/test_regexlexer.py
diff options
context:
space:
mode:
authorThomas Aglassinger <roskakori@users.sourceforge.net>2016-10-01 07:02:07 +0200
committerThomas Aglassinger <roskakori@users.sourceforge.net>2016-10-01 07:02:07 +0200
commit4556c61f294ce11b744876aa36be12ace565b263 (patch)
tree68e07092b82dce1a2acd4c511d87a9a15ee83c55 /tests/test_regexlexer.py
parent56e75b33d66738b072f9f5525f3af4a8ba863d8b (diff)
downloadpygments-4556c61f294ce11b744876aa36be12ace565b263.tar.gz
Changed find_lexer_class_for_filename() to use the lexer name as secondary criteria when sorting for rating. This ensures that even when multiple lexers return the same rating the same lexer wins. Before the lexer with the lowest hashcode in the LEXERS dictionary won, which could return different results between repeated invocations of Python. This also fixes issue #1284.
Diffstat (limited to 'tests/test_regexlexer.py')
0 files changed, 0 insertions, 0 deletions