Utilities/ClassBrowsers/pyclbr.py

changeset 6813
7f4cfe76b90c
parent 6645
ad476851d7e0
child 6815
b1b833693a38
equal deleted inserted replaced
6812:eddacf81a237 6813:7f4cfe76b90c
29 SUPPORTED_TYPES = [ClassBrowsers.PY_SOURCE, ClassBrowsers.PTL_SOURCE] 29 SUPPORTED_TYPES = [ClassBrowsers.PY_SOURCE, ClassBrowsers.PTL_SOURCE]
30 30
31 _getnext = re.compile( 31 _getnext = re.compile(
32 r""" 32 r"""
33 (?P<String> 33 (?P<String>
34 \""" [^"\\]* (?: 34 \#[^\n]*$ # Ignore triple quotes in comments
35 |
36 \""" [^"\\]* (?:
35 (?: \\. | "(?!"") ) 37 (?: \\. | "(?!"") )
36 [^"\\]* 38 [^"\\]*
37 )* 39 )*
38 \""" 40 \"""
39 41
40 | ''' [^'\\]* (?: 42 | ''' [^'\\]* (?:
41 (?: \\. | '(?!'') ) 43 (?: \\. | '(?!'') )
42 [^'\\]* 44 [^'\\]*
43 )* 45 )*

eric ide

mercurial