283 Commits

Author SHA1 Message Date
Enrico Tröger
43cd2946f4 Don't parse comments after import statements and other tags (closes #2838938, patch by Huandari Lopez, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4125 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-25 21:33:04 +00:00
Enrico Tröger
09b0b033ff Improve parsing of PHP functions by requiring a valid modifier or whitespace before the 'function' keyword to ignore some false positives like function tags inside comments (patch by Harold Aling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4124 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-25 21:23:14 +00:00
Nick Treleaven
5e55af41fc Add Markdown filetype (patch by Jon Strait, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4046 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-30 11:29:53 +00:00
Nick Treleaven
746a8d5834 Show relative paths in diff filename tags.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3951 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-10 15:57:12 +00:00
Enrico Tröger
496d100b13 Fix wrong parsing of complex expressions in the Lua parser.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3909 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-04 09:17:32 +00:00
Enrico Tröger
355f8ef2b5 Improve parsing of Tcl files (parsing new Tcl8.6 style classes, methods and namespaces).
Patch by Witek Mozga, thanks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3900 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-28 10:42:34 +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
4e355f868e Strip trailing spaces from "Key" tags.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3875 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:51:47 +00:00
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