mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
10 lines
445 B
XML
10 lines
445 B
XML
<snippet>
|
|
<content><![CDATA[class ${1:ClassName}(${2:object}):
|
|
${3/.+/"""/}${3:docstring for $1}${3/.+/"""\n/}${3/.+/\t/}def __init__(self${4/([^,])?(.*)/(?1:, )/}${4:arg}):
|
|
${5:super($1, self).__init__()}
|
|
${4/(\A\s*,\s*\Z)|,?\s*([A-Za-z_][a-zA-Z0-9_]*)\s*(=[^,]*)?(,\s*|$)/(?2:\t\tself.$2 = $2\n)/g} $0]]></content>
|
|
<tabTrigger>class</tabTrigger>
|
|
<scope>source.python</scope>
|
|
<description>New Class</description>
|
|
</snippet>
|