38 Commits

Author SHA1 Message Date
Colomban Wendling
f120554364 Provide a GType for TMTag and use it
It is a boxed type but uses reference counting behind the scene. This
allow for example the tag store to make sure the tags it holds are
always valid.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5560 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:50:04 +00:00
Colomban Wendling
b99d06d47c Make TMTag reference-counted
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5559 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:48:25 +00:00
Frank Lanitz
582e841e3f Change of description of tm_get_real_path(). Patch by Dimitar Zhekov. Thanks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5054 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-20 15:03:30 +00:00
Enrico Tröger
1932d3fae9 Add tm_source_file_set_tag_arglist() to manually set the argument list of a tag.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4833 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-18 21:42:38 +00:00
Enrico Tröger
853356b305 Document missing argument
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4832 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-18 21:42:22 +00:00
Enrico Tröger
4f32cbbc0e Update partly outdated and wrong doc comment.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4454 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-29 13:38:45 +00:00
Nick Treleaven
68657d327b Add filetype "tag_parser" key so custom filetypes can use an existing
tag parser.
Add tm_source_file_get_named_lang().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4339 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-19 14:24:40 +00:00
Enrico Tröger
dfe641a774 Remove trailing spaces (patch by André Hentschel, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4156 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:49:38 +00:00
Enrico Tröger
c4e13a2833 Rename shadowed variable name (sync with function definition).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3887 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-21 21:19:43 +00:00
Enrico Tröger
2e0a48e9a4 Fix doxygen warnings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3854 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-10 20:36:21 +00:00
Nick Treleaven
6eef573a0b Don't include tm_workspace_find_scope_members() in the plugin API docs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3851 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-10 15:14:22 +00:00
Nick Treleaven
380cb1fc6b Autocomplete scoped fields like struct members when typing '.' (and
also '->' or '::' in C/C++).
Save all tag types for C/C++ when generating a global tags file, so
we can use autocompletion for structs also.
Merge tm_workspace_find_scope_members(),
tm_workspace_find_namespace_members() (currently not built) from
Anjuta 2.24.1 tagmanager.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3850 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-10 12:36:13 +00:00
Enrico Tröger
38185ff65d Don't let the tagmanager automatically reparse files if they seem to be changed on disk (affects all files in the current session, not the current one). This should speed up file saving a little bit, especially with remote files.
Remove now unnecessary calls to tm_workspace_update().

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3598 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-24 18:27:01 +00:00
Enrico Tröger
e65d0f2362 Add a format specification in global tags files and implement an additional fallback if the specification is missing.
Adjust code and scripts which generate global tags files to add the new format specification.
Update global tags files.
Add documentation for the two supported global tags files formats.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3465 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-14 16:08:00 +00:00
Enrico Tröger
4a6abdaa0e Fix build without GIO again (sorry).
Remove trailing slashes in Makefile.am's (patch by Daniel Richard G., thanks).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3463 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-12 00:33:29 +00:00
Enrico Tröger
26f86a38a7 Oops, forgot to commit.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3188 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:38:38 +00:00
Enrico Tröger
99860e187a Add support for updating tags from a memory buffer (code merged from Anjuta).
This still doesn't work and is currently disabled. It would only work for a few filetypes like C, Fortran and JavaScript.
The current implementation is still buggy, e.g. function signature parsing is broken.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3184 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:37:17 +00:00
Enrico Tröger
a3b27b3714 Enable generation of API documentation of tagmanager functions which are exposed in the plugin API, hide all others from the API docs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3160 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-27 19:17:28 +00:00
Enrico Tröger
ade798f9f2 Add configure option --enable-gnu-regex to implicitly build the included GNU regex library (in case the host system doesn't provide a usable regex library).
Rename tagmanger/include/regex.h in tagmanager/include/gnuregex.h to avoid unintended inclusion in source files (this fixes the OpenSolaris crashes).
Don't use GNU regex specific regex_t::buffer element to build also without this extension (e.g. on OpenSolaris).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2532 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-27 14:33:40 +00:00
Nick Treleaven
20c4c880fe Fix 2 doc typos.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2420 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-27 13:19:39 +00:00
Enrico Tröger
80cec8e6ba Install header files and add a pkg-config file for external plugins.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2333 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-13 12:15:26 +00:00
Enrico Tröger
b7bfb2743a Replace all C++-style comments with usual C-like multi-line comments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2287 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-27 13:17:29 +00:00
Enrico Tröger
85f73129c0 Apply patch from Daniel Richard G. to fix to fix several compiler warnings, C89 violations and minor code problems (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2267 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-20 11:24:23 +00:00
Nick Treleaven
ff9c673ed2 Apply patch from Yura Siamashka to speed up removing several
workspace object's tags without updating the workspace until
necessary (thanks).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2164 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-11 17:09:23 +00:00
Nick Treleaven
d1534b9c1d Remove unused config_dir argument for tm_get_workspace().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2079 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-30 17:34:01 +00:00
Enrico Tröger
47c1c7e0cc Fix two more compiler warnings.
Use php.c and lregex.c from CTags SVN (closes #1795810).
Add regex.c and regex.h (GNU regex) for regex support on Windows.	 


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2053 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-17 19:27:50 +00:00
Enrico Tröger
991a6c7811 Create tagmanager status file in configuration directory, not in a guessed temporary directory to ensure having write access. Fix crashes if status file can't be written.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2000 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-01 11:49:29 +00:00
Nick Treleaven
f39df4005f Add support for generating global tags files for non-C-like
filetypes.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1480 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-27 11:00:29 +00:00
Nick Treleaven
3489b63b7d Add tm_source_file_get_lang_name() as a wrapper for getLanguageName()
in parse.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1479 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-27 10:58:41 +00:00
Nick Treleaven
8464538201 Separate alternative PHP/LaTeX global tags parser into
tm_tag_init_from_file_alt() (for easier diff with Anjuta).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1412 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-21 16:27:25 +00:00
Nick Treleaven
84b941bf63 Add tm_arglist_compare().
Fix comparison in tm_symbol_tag_compare().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1197 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-16 15:24:01 +00:00
Nick Treleaven
0e75efdd3c Parse pointers in function return type for C-like files.
Show scope in calltips.
Made tm_tag_destroy() static.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1153 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-03 12:41:10 +00:00
Nick Treleaven
1650924026 Add calltip support for D constructors.
Add tm_workspace_find_scoped() (adapted from Anjuta 2.02
tm_workspace_find()).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1147 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-26 15:49:35 +00:00
Nick Treleaven
d0347a85c8 Fix missed matches in tm_tags_find().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1146 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-26 15:43:50 +00:00
Nick Treleaven
7f0ca5eebf Backported tm_get_current_function() from Anjuta
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@889 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-12 16:25:53 +00:00
Enrico Tröger
570793a6ef Added global auto completion tags for PHP and LaTeX.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@475 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-24 14:42:56 +00:00
Enrico Tröger
2d77d6ffbd Removed uneeded .cvsignore files
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@465 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-19 15:00:29 +00:00
Enrico Tröger
8cb2cf0997 Initial import
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-11-22 12:26:26 +00:00