Utilities/ClassBrowsers/pyclbr.py

branch
5_0_x
changeset 445
accf2f63d364
parent 97
c4086afea02b
child 792
a13346916170
equal deleted inserted replaced
443:1e3e8ffa548f 445:accf2f63d364
54 54
55 | (?P<Method> 55 | (?P<Method>
56 ^ 56 ^
57 (?P<MethodIndent> [ \t]* ) 57 (?P<MethodIndent> [ \t]* )
58 def [ \t]+ 58 def [ \t]+
59 (?P<MethodName> [a-zA-Z_] \w* ) 59 (?P<MethodName> \w+ )
60 (?: [ \t]* \[ (?: plain | html ) \] )? 60 (?: [ \t]* \[ (?: plain | html ) \] )?
61 [ \t]* \( 61 [ \t]* \(
62 (?P<MethodSignature> (?: [^)] | \)[ \t]*,? )*? ) 62 (?P<MethodSignature> (?: [^)] | \)[ \t]*,? )*? )
63 \) [ \t]* : 63 \) [ \t]* :
64 ) 64 )
65 65
66 | (?P<Class> 66 | (?P<Class>
67 ^ 67 ^
68 (?P<ClassIndent> [ \t]* ) 68 (?P<ClassIndent> [ \t]* )
69 class [ \t]+ 69 class [ \t]+
70 (?P<ClassName> [a-zA-Z_] \w* ) 70 (?P<ClassName> \w+ )
71 [ \t]* 71 [ \t]*
72 (?P<ClassSupers> \( [^)]* \) )? 72 (?P<ClassSupers> \( [^)]* \) )?
73 [ \t]* : 73 [ \t]* :
74 ) 74 )
75 75
76 | (?P<Attribute> 76 | (?P<Attribute>
77 ^ 77 ^
78 (?P<AttributeIndent> [ \t]* ) 78 (?P<AttributeIndent> [ \t]* )
79 self [ \t]* \. [ \t]* 79 self [ \t]* \. [ \t]*
80 (?P<AttributeName> [a-zA-Z_] \w* ) 80 (?P<AttributeName> \w+ )
81 [ \t]* = 81 [ \t]* =
82 ) 82 )
83 83
84 | (?P<Variable> 84 | (?P<Variable>
85 ^ 85 ^
86 (?P<VariableIndent> [ \t]* ) 86 (?P<VariableIndent> [ \t]* )
87 (?P<VariableName> [a-zA-Z_] \w* ) 87 (?P<VariableName> \w+ )
88 [ \t]* = 88 [ \t]* =
89 ) 89 )
90 90
91 | (?P<ConditionalDefine> 91 | (?P<ConditionalDefine>
92 ^ 92 ^

eric ide

mercurial