QScintilla/Editor.py

branch
5_0_x
changeset 809
0f19e2fdce8f
parent 792
a13346916170
child 876
e21d70cf933c
--- a/QScintilla/Editor.py	Sun Jan 02 10:28:00 2011 +0100
+++ b/QScintilla/Editor.py	Wed Jan 05 16:21:11 2011 +0100
@@ -1416,6 +1416,13 @@
         
         filename = os.path.basename(filename)
         apiLanguage = Preferences.getEditorLexerAssoc(filename)
+        if apiLanguage == "":
+            if self.isPyFile():
+                apiLanguage = "Python2"
+            elif self.isPy3File():
+                apiLanguage = "Python3"
+            elif self.isRubyFile():
+                apiLanguage = "Ruby"
         
         self.completer = TypingCompleters.getCompleter(apiLanguage, self)
         

eric ide

mercurial