[gnome-builder] ctags: use def:preprocessor for import types
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] ctags: use def:preprocessor for import types
- Date: Sun, 28 Jan 2018 22:42:31 +0000 (UTC)
commit c8a4b98c1ff74396948d7435f6584d0405f1ea0e
Author: Christian Hergert <chergert redhat com>
Date: Sun Jan 28 14:39:08 2018 -0800
ctags: use def:preprocessor for import types
src/plugins/ctags/ide-ctags-highlighter.c | 3 +++
src/plugins/ctags/ide-ctags-highlighter.h | 1 +
2 files changed, 4 insertions(+)
---
diff --git a/src/plugins/ctags/ide-ctags-highlighter.c b/src/plugins/ctags/ide-ctags-highlighter.c
index e01e3749d..766ac02f3 100644
--- a/src/plugins/ctags/ide-ctags-highlighter.c
+++ b/src/plugins/ctags/ide-ctags-highlighter.c
@@ -85,6 +85,9 @@ get_tag_from_kind (IdeCtagsIndexEntryKind kind)
case IDE_CTAGS_INDEX_ENTRY_STRUCTURE:
return IDE_CTAGS_HIGHLIGHTER_TYPE;
+ case IDE_CTAGS_INDEX_ENTRY_IMPORT:
+ return IDE_CTAGS_HIGHLIGHTER_IMPORT;
+
case IDE_CTAGS_INDEX_ENTRY_ANCHOR:
case IDE_CTAGS_INDEX_ENTRY_CLASS_NAME:
case IDE_CTAGS_INDEX_ENTRY_DEFINE:
diff --git a/src/plugins/ctags/ide-ctags-highlighter.h b/src/plugins/ctags/ide-ctags-highlighter.h
index fd1c68f3f..028d08470 100644
--- a/src/plugins/ctags/ide-ctags-highlighter.h
+++ b/src/plugins/ctags/ide-ctags-highlighter.h
@@ -29,6 +29,7 @@ G_BEGIN_DECLS
#define IDE_CTAGS_HIGHLIGHTER_TYPE "def:type"
#define IDE_CTAGS_HIGHLIGHTER_FUNCTION_NAME "def:function"
#define IDE_CTAGS_HIGHLIGHTER_ENUM_NAME "def:constant"
+#define IDE_CTAGS_HIGHLIGHTER_IMPORT "def:preprocessor"
G_DECLARE_FINAL_TYPE (IdeCtagsHighlighter, ide_ctags_highlighter, IDE, CTAGS_HIGHLIGHTER, IdeObject)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]