[gnome-builder] python: fix indent after function call statement
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] python: fix indent after function call statement
- Date: Tue, 20 Jan 2015 04:32:25 +0000 (UTC)
commit 2773c17af4124a95cdc8aa4440db197b6e50e873
Author: Christian Hergert <christian hergert me>
Date: Mon Jan 19 20:30:30 2015 -0800
python: fix indent after function call statement
This fixes indent after something like:
"foo".format(bar, len(baz))
https://bugzilla.gnome.org/show_bug.cgi?id=742921
src/auto-indent/gb-source-auto-indenter-python.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/auto-indent/gb-source-auto-indenter-python.c
b/src/auto-indent/gb-source-auto-indenter-python.c
index 6c77970..c6b4273 100644
--- a/src/auto-indent/gb-source-auto-indenter-python.c
+++ b/src/auto-indent/gb-source-auto-indenter-python.c
@@ -447,7 +447,6 @@ indent_parens (GbSourceAutoIndenterPython *python,
return g_string_free (str, FALSE);
}
-#if 0
static gchar *
indent_previous_stmt (GbSourceAutoIndenterPython *python,
GtkTextView *text_view,
@@ -486,7 +485,6 @@ indent_previous_stmt (GbSourceAutoIndenterPython *python,
return NULL;
}
-#endif
static gchar *
indent_for_pair (GbSourceAutoIndenterPython *python,
@@ -638,10 +636,8 @@ gb_source_auto_indenter_python_format (GbSourceAutoIndenter *indenter,
return indent_for_pair (python, text_view, begin, end, &iter,
cursor_offset);
-#if 0
case ')':
return indent_previous_stmt (python, text_view, begin, end, &iter);
-#endif
case ',':
return indent_parens (python, text_view, begin, end, &iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]