Add some default snippets for Python (patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3293 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
875f3016b8
commit
2634044117
@ -19,6 +19,9 @@
|
||||
code from Colomban Wendling, thanks).
|
||||
* data/filetypes.c:
|
||||
Sort the keyword list and remove C++ keywords.
|
||||
* data/snippets.conf:
|
||||
Add some default snippets for Python (patch by
|
||||
Colomban Wendling, thanks).
|
||||
|
||||
|
||||
2008-11-28 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
@ -48,6 +48,14 @@ for=for ($i = 0; $i < %cursor%; $i++)%brace_open%\n%brace_close%
|
||||
|
||||
[Python]
|
||||
for=for i in xrange(%cursor%):\n\t
|
||||
if=if %cursor%:\n\t
|
||||
elif=elif %cursor%:\n\t
|
||||
else=else:\n\t
|
||||
while=while %cursor%:\n\t
|
||||
try=try:\n\t%cursor%\nexcept Exception, ex:\n\t
|
||||
with=with %cursor%:\n\t
|
||||
def=def %cursor% (%cursor%):\n\t""" Function doc """\n\t
|
||||
class=class %cursor%:\n\t""" Class doc """\n\t\n\tdef __init__ (self):\n\t\t""" Class initialiser """\n\t\tpass
|
||||
|
||||
[Ferite]
|
||||
iferr=iferr%block_cursor%fix%block%
|
||||
|
Loading…
x
Reference in New Issue
Block a user