Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Thu, 07 Jan 2016 22:28:18 UTC
Commit: c7bf89a46444c6d75ac89395f0663c99cd5e79d4
https://github.com/geany/geany/commit/c7bf89a46444c6d75ac89395f0663c99cd5e7…
Log Message:
-----------
Treat the "h" extension as a C++ file
The extension is used by both C and C++ and lexing/parsing C headers with
the C++ parser causes less problems (identifiers named like C++ keywords
get highlighted and tags aren't generated for them) than parsing C++
headers with the C parser (parsing and lexing completely broken).
Modified Paths:
--------------
data/filetype_extensions.conf
tests/ctags/bug639639.h.tags
tests/ctags/extern_variable.h.tags
Modified: data/filetype_extensions.conf
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -10,7 +10,7 @@ Asciidoc=*.asciidoc;*.adoc;
ASM=*.asm;*.asm51;*.a51;
Batch=*.bat;*.cmd;*.nt;
CAML=*.ml;*.mli;
-C=*.c;*.h;*.xpm;
+C=*.c;*.xpm;
C++=*.cpp;*.cxx;*.c++;*.cc;*.h;*.hpp;*.hxx;*.h++;*.hh;*.C;*.H;
CUDA=*.cu;*.cuh;*.h;
C#=*.cs;
Modified: tests/ctags/bug639639.h.tags
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -1,3 +1,5 @@
# format=tagmanager
+Namespace1�256�0
anon2�4�anon_enum_0�0
anon_enum_0�2�0
+function2�1024�(char* str)�Namespace1�0�int
Modified: tests/ctags/extern_variable.h.tags
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -1,5 +1,5 @@
# format=tagmanager
-C�16384�0�class
+C�32768�0
S�32768�0
a�32768�0�int
b�32768�0�B
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Thu, 09 Jun 2016 08:30:07 UTC
Commit: 27e445550285f2ee8785ad84822c3463a238f95c
https://github.com/geany/geany/commit/27e445550285f2ee8785ad84822c3463a238f…
Log Message:
-----------
Drop g_list_reverse()
Since the original include list is already reordered by the hash table,
it makes no sense to reverse the resulting list as it's in a different
order anyway.
Modified Paths:
--------------
tagmanager/src/tm_workspace.c
Modified: tagmanager/src/tm_workspace.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -542,7 +542,7 @@ static GList *lookup_includes(const gchar **includes, gint includes_count)
g_hash_table_foreach(table, tm_move_entries_to_g_list, &includes_files);
g_hash_table_destroy(table);
- return g_list_reverse(includes_files);
+ return includes_files;
}
static gchar *pre_process_file(const gchar *cmd, const gchar *inf)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Thu, 09 Jun 2016 08:24:47 UTC
Commit: 379eefa831595fa98e3f6841967bae26075d12c6
https://github.com/geany/geany/commit/379eefa831595fa98e3f6841967bae26075d1…
Log Message:
-----------
Use '\0' for non-existent tag kind instead of '-'
Shouldn't collide with real tag kind symbols and a non-visible character
is more probably unused by ctags than a visible one.
Modified Paths:
--------------
tagmanager/src/tm_parser.c
Modified: tagmanager/src/tm_parser.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -583,7 +583,7 @@ gchar tm_parser_get_tag_kind(TMTagType type, TMParserType lang)
if (entry->type == type)
return entry->kind;
}
- return '-';
+ return '\0';
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Thu, 09 Jun 2016 08:01:59 UTC
Commit: 20e368155812e611f2ec991273b05fae914f1c45
https://github.com/geany/geany/commit/20e368155812e611f2ec991273b05fae914f1…
Log Message:
-----------
Try harder when definition/declaration was not found
Even when we know when should be searching for definition (or declaration),
we can keep searching for the opposite type too when we didn't find
anything with the "correct" def/decl type. So at least we find "something"
of that name.
Modified Paths:
--------------
src/symbols.c
Modified: src/symbols.c
5 lines changed, 2 insertions(+), 3 deletions(-)
===================================================================
@@ -2133,10 +2133,9 @@ static gboolean goto_tag(const gchar *name, gboolean definition)
definition = current_tag->type & forward_types;
filtered_tags = filter_tags(tags, current_tag, definition);
- if (current_tag && filtered_tags->len == 0)
+ if (filtered_tags->len == 0)
{
- /* if we previously swapped definition/declaration search and didn't
- * find anything, try again with the opposite type */
+ /* if we didn't find anything, try again with the opposite type */
g_ptr_array_free(filtered_tags, TRUE);
filtered_tags = filter_tags(tags, current_tag, !definition);
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).