[gnome-builder] python: hook up auto indenter for python3 syntax mode
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] python: hook up auto indenter for python3 syntax mode
- Date: Thu, 8 Jan 2015 11:04:13 +0000 (UTC)
commit 685d247154e10d43e17fb63eddc7d50e1ba78f7f
Author: Christian Hergert <christian hergert me>
Date: Thu Jan 8 03:04:07 2015 -0800
python: hook up auto indenter for python3 syntax mode
src/editor/gb-source-view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/editor/gb-source-view.c b/src/editor/gb-source-view.c
index 3b9849b..14047e6 100644
--- a/src/editor/gb-source-view.c
+++ b/src/editor/gb-source-view.c
@@ -1142,7 +1142,8 @@ gb_source_view_reload_auto_indenter (GbSourceView *view)
if (g_str_equal (lang_id, "c") || g_str_equal (lang_id, "chdr"))
auto_indenter = gb_source_auto_indenter_c_new ();
- else if (g_str_equal (lang_id, "python"))
+ else if (g_str_equal (lang_id, "python") ||
+ g_str_equal (lang_id, "python3"))
auto_indenter = gb_source_auto_indenter_python_new ();
else if (g_str_equal (lang_id, "xml") || g_str_equal (lang_id, "html"))
auto_indenter = gb_source_auto_indenter_xml_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]