[gnome-builder/wip/slaf/xml-pack] xml-pack: remove endless loop in completion from rng
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/slaf/xml-pack] xml-pack: remove endless loop in completion from rng
- Date: Mon, 10 Jul 2017 14:26:36 +0000 (UTC)
commit 06948f4b8fccbeee286fb311b553e0c695241829
Author: Sebastien Lafargue <slafargue gnome org>
Date: Mon Jul 10 16:20:03 2017 +0200
xml-pack: remove endless loop in completion from rng
If we examine one more time the group, we need
to reset the define pointer to the group start
plugins/xml-pack/ide-xml-completion-provider.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/xml-pack/ide-xml-completion-provider.c b/plugins/xml-pack/ide-xml-completion-provider.c
index 705b195..400bfe1 100644
--- a/plugins/xml-pack/ide-xml-completion-provider.c
+++ b/plugins/xml-pack/ide-xml-completion-provider.c
@@ -602,13 +602,13 @@ is_n_matching (MatchingState *state)
type == IDE_XML_RNG_DEFINE_ONEORMORE ||
type == IDE_XML_RNG_DEFINE_OPTIONAL);
+ state_stack_push (state);
+
+loop:
/* Only ZeroOrMore or optionnal match if there's no children */
if (NULL == (defines = state->define->content))
return !(type == IDE_XML_RNG_DEFINE_ONEORMORE);
- state_stack_push (state);
-
-loop:
is_child_matching = TRUE;
while (defines != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]