10257:904c71a0e37f | 10258:e7764f992a01 |
---|---|
100 \#\#\# | 100 \#\#\# |
101 ) | 101 ) |
102 | 102 |
103 | (?P<Docstring> | 103 | (?P<Docstring> |
104 (?<= :) \s* | 104 (?<= :) \s* |
105 (?: \# .*? $ \s* )? | |
105 [ru]? \""" (?P<DocstringContents1> | 106 [ru]? \""" (?P<DocstringContents1> |
106 [^"\\]* (?: | 107 [^"\\]* (?: |
107 (?: \\. | "(?!"") ) | 108 (?: \\. | "(?!"") ) |
108 [^"\\]* | 109 [^"\\]* |
109 )* | 110 )* |
110 ) | 111 ) |
111 \""" | 112 \""" |
112 | 113 |
113 | (?<= :) \s* | 114 | (?<= :) \s* |
115 (?: \# .*? $ \s* )? | |
114 [ru]? ''' (?P<DocstringContents2> | 116 [ru]? ''' (?P<DocstringContents2> |
115 [^'\\]* (?: | 117 [^'\\]* (?: |
116 (?: \\. | '(?!'') ) | 118 (?: \\. | '(?!'') ) |
117 [^'\\]* | 119 [^'\\]* |
118 )* | 120 )* |
119 ) | 121 ) |
120 ''' | 122 ''' |
121 | 123 |
122 | (?<= :) \s* | 124 | (?<= :) \s* |
125 (?: \# .*? $ \s* )? | |
123 \#\#\# (?P<DocstringContents3> | 126 \#\#\# (?P<DocstringContents3> |
124 [^#\\]* (?: | 127 [^#\\]* (?: |
125 (?: \\. | \#(?!\#\#) ) | 128 (?: \\. | \#(?!\#\#) ) |
126 [^#\\]* | 129 [^#\\]* |
127 )* | 130 )* |
219 ^ | 222 ^ |
220 (?P<ConditionalDefineIndent> [ \t]* ) | 223 (?P<ConditionalDefineIndent> [ \t]* ) |
221 (?: (?: if | elif ) [ \t]+ [^:]* | else [ \t]* ) : | 224 (?: (?: if | elif ) [ \t]+ [^:]* | else [ \t]* ) : |
222 (?= \s* (?: async [ \t]+ )? def) | 225 (?= \s* (?: async [ \t]+ )? def) |
223 )""", | 226 )""", |
224 re.VERBOSE | re.DOTALL | re.MULTILINE, | 227 re.VERBOSE | re.MULTILINE, |
225 ).search | 228 ).search |
226 | 229 |
227 _rb_getnext = re.compile( | 230 _rb_getnext = re.compile( |
228 r""" | 231 r""" |
229 (?P<Docstring> | 232 (?P<Docstring> |
357 end [ \t]* $ | 360 end [ \t]* $ |
358 | | 361 | |
359 end \b [^_] | 362 end \b [^_] |
360 ) | 363 ) |
361 )""", | 364 )""", |
362 re.VERBOSE | re.DOTALL | re.MULTILINE, | 365 re.VERBOSE | re.MULTILINE, |
363 ).search | 366 ).search |
364 | 367 |
365 _hashsub = re.compile(r"""^([ \t]*)#[ \t]?""", re.MULTILINE).sub | 368 _hashsub = re.compile(r"""^([ \t]*)#[ \t]?""", re.MULTILINE).sub |
366 | 369 |
367 _commentsub = re.compile(r"""#[^\n]*\n|#[^\n]*$""").sub | 370 _commentsub = re.compile(r"""#[^\n]*\n|#[^\n]*$""").sub |