SF.net SVN: geany: [1055] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Wed Dec 6 15:32:21 UTC 2006
Revision: 1055
http://svn.sourceforge.net/geany/?rev=1055&view=rev
Author: eht16
Date: 2006-12-06 07:32:21 -0800 (Wed, 06 Dec 2006)
Log Message:
-----------
Don't insert extra indentation in Python files after a colon if the line is a comment.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/sci_cb.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-12-05 16:03:18 UTC (rev 1054)
+++ trunk/ChangeLog 2006-12-06 15:32:21 UTC (rev 1055)
@@ -1,3 +1,9 @@
+2006-12-06 Enrico Tröger <enrico.troeger at uvena.de>
+
+ * src/sci_cb.c: Don't insert extra indentation in Python files after a
+ colon if the line is a comment.
+
+
2006-12-05 Enrico Tröger <enrico.troeger at uvena.de>
* src/treeviews.c, tagmanager/latex.c:
Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c 2006-12-05 16:03:18 UTC (rev 1054)
+++ trunk/src/sci_cb.c 2006-12-06 15:32:21 UTC (rev 1055)
@@ -311,7 +311,8 @@
// add extra indentation for Python after colon
if (doc_list[idx].file_type->id == GEANY_FILETYPES_PYTHON &&
- sci_get_char_at(sci, pos - 2) == ':')
+ sci_get_char_at(sci, pos - 2) == ':' &&
+ sci_get_style_at(sci, pos - 2) == SCE_P_OPERATOR)
{
/// TODO add something like insert_tabs() which inserts a tab or tab_width times a space
sci_add_text(sci, "\t");
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