[gnome-builder] html-completion: ignore <? elements
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] html-completion: ignore <? elements
- Date: Mon, 11 Jul 2016 22:12:38 +0000 (UTC)
commit 930ea77b5bc6c4d2d3b8ec09060b23c0cec63098
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 11 15:12:05 2016 -0700
html-completion: ignore <? elements
.../html-completion/ide-html-completion-provider.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/plugins/html-completion/ide-html-completion-provider.c
b/plugins/html-completion/ide-html-completion-provider.c
index a930b6a..baa0bea 100644
--- a/plugins/html-completion/ide-html-completion-provider.c
+++ b/plugins/html-completion/ide-html-completion-provider.c
@@ -120,7 +120,14 @@ in_element (const GtkTextIter *iter)
if (ch == '>')
return FALSE;
else if (ch == '<')
- return TRUE;
+ {
+ GtkTextIter end = copy;
+
+ if (gtk_text_iter_forward_char (&end) && '?' == gtk_text_iter_get_char (&end))
+ return FALSE;
+
+ return TRUE;
+ }
}
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]