diff options
author | Thomas Aglassinger <roskakori@users.sourceforge.net> | 2016-10-01 07:02:07 +0200 |
---|---|---|
committer | Thomas Aglassinger <roskakori@users.sourceforge.net> | 2016-10-01 07:02:07 +0200 |
commit | 4556c61f294ce11b744876aa36be12ace565b263 (patch) | |
tree | 68e07092b82dce1a2acd4c511d87a9a15ee83c55 /pygments/styles/igor.py | |
parent | 56e75b33d66738b072f9f5525f3af4a8ba863d8b (diff) | |
download | pygments-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 'pygments/styles/igor.py')
0 files changed, 0 insertions, 0 deletions