SF.net SVN: geany: [948] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Mon Oct 30 12:59:05 UTC 2006
Revision: 948
http://svn.sourceforge.net/geany/?rev=948&view=rev
Author: eht16
Date: 2006-10-30 04:58:58 -0800 (Mon, 30 Oct 2006)
Log Message:
-----------
Add extra indentation for Python after a colon.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/sci_cb.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-10-30 11:49:35 UTC (rev 947)
+++ trunk/ChangeLog 2006-10-30 12:58:58 UTC (rev 948)
@@ -1,3 +1,8 @@
+2006-10-30 Enrico Tröger <enrico.troeger at uvena.de>
+
+ * src/sci_cb.c: Add extra indentation for Python after a colon.
+
+
2006-10-29 Enrico Tröger <enrico.troeger at uvena.de>
* geany.glade, src/interface.c, src/prefs.c, src/geany.h,
Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c 2006-10-30 11:49:35 UTC (rev 947)
+++ trunk/src/sci_cb.c 2006-10-30 12:58:58 UTC (rev 948)
@@ -306,6 +306,15 @@
{
sci_cb_get_indent(sci, pos, FALSE);
sci_add_text(sci, indent);
+
+ // add extra indentation for Python after colon
+ if (doc_list[idx].file_type->id == GEANY_FILETYPES_PYTHON &&
+ sci_get_char_at(sci, pos - 2) == ':')
+ {
+ /// TODO add something like insert_tabs() which inserts a tab or tab_width times a space
+ sci_add_text(sci, "\t");
+ }
+
}
// " * " auto completion in multiline C/C++ comments
sci_cb_auto_multiline(sci, pos);
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