SF.net SVN: geany:[3293] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sat Nov 29 12:52:44 UTC 2008


Revision: 3293
          http://geany.svn.sourceforge.net/geany/?rev=3293&view=rev
Author:   eht16
Date:     2008-11-29 12:52:44 +0000 (Sat, 29 Nov 2008)

Log Message:
-----------
Add some default snippets for Python (patch by Colomban Wendling, thanks).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/data/snippets.conf

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-11-29 12:52:26 UTC (rev 3292)
+++ trunk/ChangeLog	2008-11-29 12:52:44 UTC (rev 3293)
@@ -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>

Modified: trunk/data/snippets.conf
===================================================================
--- trunk/data/snippets.conf	2008-11-29 12:52:26 UTC (rev 3292)
+++ trunk/data/snippets.conf	2008-11-29 12:52:44 UTC (rev 3293)
@@ -48,6 +48,14 @@
 
 [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%


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list