QScintilla/Lexers/__init__.py

changeset 802
e8882d16384c
parent 791
9ec2ac20e54e
child 945
8cd4d08fa9f6
child 1510
e75ecf2bd9dd
--- a/QScintilla/Lexers/__init__.py	Sun Jan 02 12:01:37 2011 +0100
+++ b/QScintilla/Lexers/__init__.py	Mon Jan 03 17:10:45 2011 +0100
@@ -88,7 +88,8 @@
         "PostScript" : [QApplication.translate('Lexers', "PostScript"),   'dummy.ps'], 
         "Povray"     : [QApplication.translate('Lexers', "Povray"),       'dummy.pov'],
         "Properties" : [QApplication.translate('Lexers', "Properties"),   'dummy.ini'],
-        "Python"     : [QApplication.translate('Lexers', "Python"),       'dummy.py'], 
+        "Python2"    : [QApplication.translate('Lexers', "Python2"),      'dummy.py'], 
+        "Python3"    : [QApplication.translate('Lexers', "Python3"),      'dummy.py'], 
         "Ruby"       : [QApplication.translate('Lexers', "Ruby"),         'dummy.rb'],
         "SQL"        : [QApplication.translate('Lexers', "SQL"),          'dummy.sql'],
         "TCL"        : [QApplication.translate('Lexers', "TCL"),          'dummy.tcl'], 
@@ -119,7 +120,7 @@
         try:
             if language in ["Python", "Python2", "Python3"]:
                 from .LexerPython import LexerPython
-                return LexerPython(parent)
+                return LexerPython(language, parent)
             elif language == "C++":
                 from .LexerCPP import LexerCPP
                 return LexerCPP(parent, 

eric ide

mercurial