Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 21 Mar 2021 13:36:37 UTC Commit: a1d462be341bbe2aca29520255c1e5826194f1c4 https://github.com/geany/www.geany.org/commit/a1d462be341bbe2aca29520255c1e5...
Log Message: ----------- Fix fetching all lexer from Pygments
The Pygments API have changed in the return value of get_all_lexers(), so update our code as well.
Modified Paths: -------------- pastebin/highlight.py
Modified: pastebin/highlight.py 5 lines changed, 4 insertions(+), 1 deletions(-) =================================================================== @@ -19,7 +19,10 @@ from pygments.lexers.python import PythonLexer
-LEXER_LIST_ALL = sorted([(i[1][0], i[0]) for i in get_all_lexers()]) +LEXER_LIST_ALL = sorted([ + (lexer[1][0], lexer[0]) + for lexer in get_all_lexers() + if lexer[1]]) LEXER_LIST = ( ('nasm', 'Assembler'), ('bash', 'Bash'),
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).