LexerPygments: fixed an issue causing it to return the wrong language if one was set specifically. sub_styles

Mon, 11 Mar 2019 19:13:12 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 11 Mar 2019 19:13:12 +0100
branch
sub_styles
changeset 6851
036535d1dd88
parent 6846
6ca9ef2c0907
child 6852
273323ba9d2d

LexerPygments: fixed an issue causing it to return the wrong language if one was set specifically.

QScintilla/Lexers/LexerPygments.py file | annotate | diff | comparison | revisions
diff -r 6ca9ef2c0907 -r 036535d1dd88 QScintilla/Lexers/LexerPygments.py
--- a/QScintilla/Lexers/LexerPygments.py	Sat Mar 09 18:44:13 2019 +0100
+++ b/QScintilla/Lexers/LexerPygments.py	Mon Mar 11 19:13:12 2019 +0100
@@ -301,7 +301,10 @@
         
         @return language of the lexer (string)
         """
-        return "Guessed"
+        if self.__pygmentsName:
+            return self.__pygmentsName
+        else:
+            return "Guessed"
     
     def description(self, style):
         """

eric ide

mercurial