Utilities/ModuleParser.py

changeset 4830
f609a22f43bd
parent 4631
5c1a96925da4
child 5389
9b1c800daff3
equal deleted inserted replaced
4829:35fe0232fb8f 4830:f609a22f43bd
56 else: 56 else:
57 return -1 57 return -1
58 58
59 59
60 _py_getnext = re.compile( 60 _py_getnext = re.compile(
61 r""" 61 r"""
62 (?P<String> 62 (?P<String>
63 \""" (?P<StringContents1> 63 \""" (?P<StringContents1>
64 [^"\\]* (?: 64 [^"\\]* (?:
65 (?: \\. | "(?!"") ) 65 (?: \\. | "(?!"") )
66 [^"\\]* 66 [^"\\]*
196 (?= \s* (?: async [ \t]+ )? def) 196 (?= \s* (?: async [ \t]+ )? def)
197 )""", 197 )""",
198 re.VERBOSE | re.DOTALL | re.MULTILINE).search 198 re.VERBOSE | re.DOTALL | re.MULTILINE).search
199 199
200 _rb_getnext = re.compile( 200 _rb_getnext = re.compile(
201 r""" 201 r"""
202 (?P<Docstring> 202 (?P<Docstring>
203 =begin [ \t]+ edoc (?P<DocstringContents> .*? ) =end 203 =begin [ \t]+ edoc (?P<DocstringContents> .*? ) =end
204 ) 204 )
205 205
206 | (?P<String> 206 | (?P<String>

eric ide

mercurial