eric6/QScintilla/EditorOutlineModel.py

changeset 8131
f2129bb79269
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8130:5fe4ff181b68 8131:f2129bb79269
23 class EditorOutlineModel(BrowserModel): 23 class EditorOutlineModel(BrowserModel):
24 """ 24 """
25 Class implementing the editor outline model. 25 Class implementing the editor outline model.
26 """ 26 """
27 SupportedLanguages = ( 27 SupportedLanguages = (
28 "IDL", "JavaScript", "Protocol", "Python3", "MicroPython", "Ruby", 28 "IDL", "JavaScript", "Protocol", "Python3", "MicroPython", "Cython",
29 "Ruby",
29 ) 30 )
30 31
31 def __init__(self, editor, populate=True): 32 def __init__(self, editor, populate=True):
32 """ 33 """
33 Constructor 34 Constructor
79 elif language == "JavaScript": 80 elif language == "JavaScript":
80 from Utilities.ClassBrowsers import jsclbr 81 from Utilities.ClassBrowsers import jsclbr
81 dictionary = jsclbr.scan( 82 dictionary = jsclbr.scan(
82 self.__editor.text(), self.__filename, self.__module) 83 self.__editor.text(), self.__filename, self.__module)
83 jsclbr._modules.clear() 84 jsclbr._modules.clear()
84 elif language in ("Python3", "MicroPython"): 85 elif language in ("Python3", "MicroPython", "Cython"):
85 from Utilities.ClassBrowsers import pyclbr 86 from Utilities.ClassBrowsers import pyclbr
86 dictionary = pyclbr.scan( 87 dictionary = pyclbr.scan(
87 self.__editor.text(), self.__filename, self.__module) 88 self.__editor.text(), self.__filename, self.__module)
88 pyclbr._modules.clear() 89 pyclbr._modules.clear()
89 90

eric ide

mercurial