Utilities/ClassBrowsers/idlclbr.py

changeset 3030
4a0a82ddd9d2
parent 2997
7f0ef975da9e
child 3039
8dd0165d805d
child 3058
0a02c433f52d
equal deleted inserted replaced
3029:4055a15ce0f2 3030:4a0a82ddd9d2
20 import Utilities.ClassBrowsers as ClassBrowsers 20 import Utilities.ClassBrowsers as ClassBrowsers
21 from . import ClbrBaseClasses 21 from . import ClbrBaseClasses
22 22
23 SUPPORTED_TYPES = [ClassBrowsers.IDL_SOURCE] 23 SUPPORTED_TYPES = [ClassBrowsers.IDL_SOURCE]
24 24
25 _getnext = re.compile(r""" 25 _getnext = re.compile(
26 r"""
26 (?P<String> 27 (?P<String>
27 " [^"\\\n]* (?: \\. [^"\\\n]*)* " 28 " [^"\\\n]* (?: \\. [^"\\\n]*)* "
28 ) 29 )
29 30
30 | (?P<Comment> 31 | (?P<Comment>
299 # the interface inherits from other interfaces 300 # the interface inherits from other interfaces
300 inherit = inherit[1:].strip() 301 inherit = inherit[1:].strip()
301 inherit = [_commentsub('', inherit)] 302 inherit = [_commentsub('', inherit)]
302 # remember this interface 303 # remember this interface
303 cur_class = Interface(module, class_name, inherit, 304 cur_class = Interface(module, class_name, inherit,
304 file, lineno) 305 file, lineno)
305 if not classstack: 306 if not classstack:
306 dict[class_name] = cur_class 307 dict[class_name] = cur_class
307 else: 308 else:
308 cls = classstack[-1][0] 309 cls = classstack[-1][0]
309 cls._addclass(class_name, cur_class) 310 cls._addclass(class_name, cur_class)

eric ide

mercurial