Kaydet (Commit) 39366947 authored tarafından Nick Treleaven's avatar Nick Treleaven

Fix using "other" tag type.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4420 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst ad069865
......@@ -373,7 +373,6 @@ http://sf.net/projects/ctags - see the tracker.
In foo.c:
Edit FooKinds 3rd column to match a s_tag_type_names string in tm_tag.c.
Warning: "other" type doesn't seem to work.
In filetypes.c, init_builtin_filetypes():
Set filetypes[GEANY_FILETYPES_FOO].lang = foo's parser number.
......
......@@ -41,7 +41,7 @@ typedef enum {
static kindOption PerlKinds [] = {
{ TRUE, 'e', "enum", "constants" },
{ TRUE, 'e', "enumerator", "formats" },
{ TRUE, 'o', "other", "formats" },
{ TRUE, 'm', "macro", "labels" },
{ TRUE, 'p', "package", "packages" },
{ TRUE, 'f', "function", "subroutines" },
......
......@@ -118,6 +118,9 @@ static int get_tag_type(const char *tag_name)
else if (cmp < 0)
break;
}
/* other is not checked above as it is last, not sorted alphabetically */
if (strcmp(tag_name, "other") == 0)
return tm_tag_other_t;
#ifdef TM_DEBUG
fprintf(stderr, "Unknown tag type %s\n", tag_name);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment