[gnome-builder] auto-indent: don't enforce paren space rules in comments.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] auto-indent: don't enforce paren space rules in comments.
- Date: Sun, 21 Sep 2014 02:03:03 +0000 (UTC)
commit 809e75ccb754c2a6c3329423b92e1083dd20b8cb
Author: Christian Hergert <christian hergert me>
Date: Sat Sep 20 19:02:58 2014 -0700
auto-indent: don't enforce paren space rules in comments.
src/editor/gb-source-auto-indenter-c.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-source-auto-indenter-c.c b/src/editor/gb-source-auto-indenter-c.c
index a27c8f4..b5cd132 100644
--- a/src/editor/gb-source-auto-indenter-c.c
+++ b/src/editor/gb-source-auto-indenter-c.c
@@ -742,6 +742,7 @@ maybe_space_before_paren (GbSourceAutoIndenterC *c,
GtkTextIter *begin,
GtkTextIter *end)
{
+ GtkTextIter match_begin;
GtkTextIter copy;
gunichar ch;
@@ -752,6 +753,9 @@ maybe_space_before_paren (GbSourceAutoIndenterC *c,
if (!c->priv->space_before_paren)
return NULL;
+ if (in_c89_comment (begin, &match_begin))
+ return NULL;
+
gtk_text_iter_assign (©, begin);
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]