EditorAssembly: fixed an issue causing the navigation combos not being populated for MicroPython.

Tue, 27 Aug 2019 09:49:36 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 27 Aug 2019 09:49:36 +0200
changeset 7175
68f83a144355
parent 7174
de8175253dfc
child 7176
12b76052e1d5

EditorAssembly: fixed an issue causing the navigation combos not being populated for MicroPython.

eric6/QScintilla/EditorAssembly.py file | annotate | diff | comparison | revisions
eric6/Utilities/ModuleParser.py file | annotate | diff | comparison | revisions
--- a/eric6/QScintilla/EditorAssembly.py	Mon Aug 26 18:41:48 2019 +0200
+++ b/eric6/QScintilla/EditorAssembly.py	Tue Aug 27 09:49:36 2019 +0200
@@ -310,6 +310,11 @@
                 if index != -1:
                     self.__membersCombo.setCurrentIndex(index)
                     self.__membersActivated(index, moveCursor=False)
+        else:
+            self.__globalsCombo.clear()
+            self.__membersCombo.clear()
+            self.__globalsBoundaries = {}
+            self.__membersBoundaries = {}
     
     def __editorCursorLineChanged(self, lineno):
         """
--- a/eric6/Utilities/ModuleParser.py	Mon Aug 26 18:41:48 2019 +0200
+++ b/eric6/Utilities/ModuleParser.py	Tue Aug 27 09:49:36 2019 +0200
@@ -40,6 +40,7 @@
     "Python": imp.PY_SOURCE,
     "Python2": imp.PY_SOURCE,
     "Python3": imp.PY_SOURCE,
+    "MicroPython": imp.PY_SOURCE,
     "Ruby": RB_SOURCE,
 }
 

eric ide

mercurial