275 Commits

Author SHA1 Message Date
Nick Treleaven
72b7390e6c Fix type definitions being parsed as functions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3860 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-12 12:21:29 +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
Enrico Tröger
cbe71f145e Fix wrongly set return values for procedures (closes #2803945.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3853 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-10 18:42:13 +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
dcc89a6f61 Parse Pascal calltips (closes #2802640).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3849 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-09 21:02:46 +00:00
Nick Treleaven
34a67a9269 Fix grouping functions/classes under a nested function.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3831 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-01 15:41:24 +00:00
Nick Treleaven
5acdfaf4e0 Parse Python calltips.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3809 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-20 15:38:04 +00:00
Enrico Tröger
bf179fa14d Parse Python import statements to get symbol completion for the imported module names.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3804 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-19 20:17:21 +00:00
Enrico Tröger
08e83ce4e1 Backport change from CTags SVN to keep the parser more in sync:
Add support for Cython constructs to the Python parser.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3798 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-17 17:16:39 +00:00
Enrico Tröger
7631a8487e Fix missing symbols for variables when an equal sign is used in a comment on the same line as the variable declaration.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3795 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-17 15:45:54 +00:00
Nick Treleaven
7b53cf05aa Fix prefix for 2 nesting level functions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@3787 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-12 15:16:23 +00:00
Nick Treleaven
76a366902c Use nestingLevelsPush() in addNestingLevel().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@3786 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-12 15:11:54 +00:00
Nick Treleaven
14653b1ba2 Remove NestingLevel::is_class field, use ::type instead.
Move addNestingLevel() back to python.c.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@3785 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-12 14:59:29 +00:00
Nick Treleaven
58b5c053bc Add reStructuredText scope information for tags (for symbol list
grouping).
Add nestingLevelsPush(), nestingLevelsPop(),
nestingLevelsGetCurrent().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@3779 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-11 15:36:46 +00:00
Nick Treleaven
95f99f4034 Move NestingLevel code into a separate file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@3778 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-11 14:15:00 +00:00
Enrico Tröger
4b79502943 Fix wrong parsing of string literals (closes #2781264).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3741 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-27 19:31:21 +00:00
Enrico Tröger
61f89d5c25 Add a trivial symbol parser for NSIS files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3716 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:52:19 +00:00
Enrico Tröger
00bc23cec4 Backport recent changes from Scintilla CVS to add partial support for RFC2822 styled text using the Properties lexer.
Ignore leading whitespace for config files and RFC2822 text.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3669 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-30 17:49:40 +00:00
Enrico Tröger
9318d1def6 Fix wrong parsing of CSS tags when the definition block starts on a new line (reported by Dominic Hopf, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3644 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-22 22:49:29 +00:00
Enrico Tröger
4122c1b138 Add filetype ActionScript (patch by Chris Macksey, thanks).
Update type keywords only for real C-like languages.
Fix wrong sorting of Assembler and Ada filetypes.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3624 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-13 09:58:27 +00:00
Enrico Tröger
05e93ed2df Add keyword 'extends' and fix Fortran parser to support the 'extends' keyword (closes #2654492).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3620 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-05 13:03:25 +00:00
Enrico Tröger
49a798f796 Update source files upon creation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3606 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-27 14:06:06 +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
bc52e9db5d Update Fortran parser from CTags SVN (closes #2545000).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3527 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-29 17:24:31 +00:00
Enrico Tröger
0582c61824 Replace remaining occurrences of '__func__' with 'G_STRFUNC'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3496 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 22:49:21 +00:00
Enrico Tröger
a47b682f6f Remove GTK tags (data/global.tags).
Add C (C99) tags (data/c99.tags) and a script to generate them).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3480 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-17 18:44:38 +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
c636728975 Fix several compiler warnings and build errors (patch by Daniel Richard G., thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3460 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 18:29:39 +00:00
Enrico Tröger
a097d3dbb7 Fix some bugs in parsing FreeBasic code (#2489605).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3449 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-06 14:53:31 +00:00
Enrico Tröger
39a6eb455e Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:30:42 +00:00
Enrico Tröger
b5aee22fbe Fix crash in Makefile parser when trying to read defines.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3441 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-03 16:22:28 +00:00
Nick Treleaven
83e0fc1b1b Parse sections in the order of first-used underline character,
which can now be any punctuation character (as per the spec).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3410 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-21 12:32:25 +00:00
Nick Treleaven
0f8cbba37e Fix indentation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3409 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-19 18:11:54 +00:00
Nick Treleaven
e1ed9fdf62 Add comment about improving/fixing parsing; allow section names of length 3.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3408 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-19 17:31:59 +00:00
Nick Treleaven
32f0c26b4a Use plurals for HTML symbol list parent items.
Fix Fortran Types showing as Interfaces in the symbol list.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3405 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-19 16:28:14 +00:00
Nick Treleaven
bb612394a7 Also parse headings with tags inside header tag.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3397 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-18 16:26:26 +00:00
Enrico Tröger
43ecef8c55 Fix a few compiler warnings about unused return values caused by recent glibc versions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3380 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-15 21:20:34 +00:00
Enrico Tröger
7c5fd2c6ec Various improvements for parsing Vala files (mainly fix handling of function attributes, fix nested types handling, add some missing keywords, patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3352 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-09 19:00:45 +00:00
Nick Treleaven
f73a652e44 Fix nested namespaces not having parent namespace scope (fixes
#2141317).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3276 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-24 13:35:10 +00:00
Enrico Tröger
d7caf0f9c0 Follow XDG Base Directory specification and use $XDG_CONFIG_HOME/geany (most often this is ~/.config/geany) as default configuration directory (closes #2166229).
The previous configuration will be moved to the new location if the new directory doesn't exist yet.
Move utils_make_settings_dir() into main.c.
Remove win32_get_appdata_folder() because g_get_user_config_dir() does the same.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3219 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 14:37:47 +00:00
Enrico Tröger
04e41e15a4 Fix indentation to consistently use tabs (patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3217 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-12 19:37:02 +00:00
Nick Treleaven
0f5bce0172 Use separate keyword table for D (still missing keywords though).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3206 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 17:42:54 +00:00
Nick Treleaven
eafc95a59f Apply patch from Colomban Wendling to add Vala filetype (thanks).
Fix c.c tagLetter() bug.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3205 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 16:33:20 +00:00
Nick Treleaven
5329a0c59d Group Conf symbol list tags by section.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 17:03:11 +00:00
Enrico Tröger
474a0b4410 Add new filetype 'Matlab' (closes #1938631, patch by Roland Baudin, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3190 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:39:45 +00:00
Enrico Tröger
8bf87e009c Again, oops: this line got lost while merging.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3189 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:38:51 +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