[gnome-builder] snippets: fix scope parser, whose scope is missing
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] snippets: fix scope parser, whose scope is missing
- Date: Sat, 3 Oct 2015 22:58:37 +0000 (UTC)
commit 578cded8098e2730d5a8714dcc4a757fdbfae86e
Author: Christian Hergert <christian hergert me>
Date: Sat Oct 3 15:58:05 2015 -0700
snippets: fix scope parser, whose scope is missing
libide/ide-source-snippet-parser.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libide/ide-source-snippet-parser.c b/libide/ide-source-snippet-parser.c
index 76929ee..f3ce04b 100644
--- a/libide/ide-source-snippet-parser.c
+++ b/libide/ide-source-snippet-parser.c
@@ -381,14 +381,15 @@ ide_source_snippet_parser_do_snippet_scope (IdeSourceSnippetParser *parser,
add_scope = TRUE;
for (iter = parser->scope; iter; iter = iter->next)
{
- if (g_strcmp0(iter->data, scope_list[i]) == 0)
+ if (g_strcmp0 (iter->data, scope_list[i]) == 0)
+ {
add_scope = FALSE;
break;
+ }
}
if (add_scope)
- parser->scope = g_list_append(parser->scope,
- g_strstrip (g_strdup (scope_list[i])));
+ parser->scope = g_list_append(parser->scope, g_strstrip (g_strdup (scope_list[i])));
}
g_strfreev(scope_list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]