584 Commits

Author SHA1 Message Date
Nick Treleaven
0594950038 Parse PHP functions with multiline argument list, #3037797 2012-01-01 17:03:24 +00:00
Colomban Wendling
d76d72518a Import upstream MIO changes 2011-12-26 15:30:07 +01:00
Nick Treleaven
8818ee3fc9 Include gdk-pixbuf-2.0 path for recent GTK+ dev (Windows build)
Fixes #3396195.

Note: GTK+ 2.24 is the current maintained version of the developer
files bundle:
http://www.gtk.org/download/win32.php
2011-12-08 12:53:11 +00:00
Colomban Wendling
8942bc810b Add Objective-C support
Based on a patch from Elias Pschernig, thanks.
Parser was taken from upstream CTags.

Closes patch#3325139.
2011-11-13 01:05:24 +01:00
Lex Trotman
4d92e0530b Fix warnings
Fix warnings that appeared with GCC 4.6
js.c:1067:10: warning: variable ‘is_prototype’ set but not used
dialogs.c:173:2: warning: missing initializer
dialogs.c:173:2: warning: (near initialization for ‘value.data’)
sidebar.c:534:17: warning: unused variable ‘doc’
2011-11-06 18:10:56 +11:00
Colomban Wendling
d06e9f4575 Remove $Id$ and $Date$ SVN keywords 2011-10-09 22:57:35 +02:00
Nick Treleaven
d9b7ae92b8 Fix missing tagmanager/mio/makefile.win32 in EXTRA_DIST.
Include makefile.win32 in EXTRA_DIST recursively, not at top-level.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@6013 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-06 12:36:28 +00:00
Nick Treleaven
4781509a17 Initialize invalid matches for safety.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@6011 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-06 12:02:38 +00:00
Nick Treleaven
03d22bec52 Fix CTags bug 2970274 - when using addCallbackRegex the callback
receives less than the number of matches. The number is still not 
correct (due to POSIX regex compatibility) but at least includes 
all non-empty matches now.
http://sourceforge.net/tracker/index.php?func=detail&aid=2970274
&group_id=6556&atid=106556



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5997 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-05 12:00:38 +00:00
Nick Treleaven
24530e59c1 Update from CTags SVN jscript.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5995 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-04 12:22:36 +00:00
Nick Treleaven
19fe99b106 Fix parsing keyword-qualified functions strictly, e.g. don't
parse 'staticfunction' or 'fatfunction'.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5986 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 14:14:33 +00:00
Nick Treleaven
b079b19da0 Use GRegex for CTags instead of POSIX regex - GRegex is more
powerful. This also fixes a (HTML) performance issue on Windows. 
Geany will now print a debug warning when using the "b" CTags 
regex flag option for non-extended syntax. This is not currently 
used by Geany's parsers.
Note: GNU regex can't be removed yet as it's still used elsewhere 
by Geany.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5976 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-30 14:43:18 +00:00
Colomban Wendling
a63a3a3570 Fix tags for one-letter Haskell symbols
The tokens were not properly terminated when they were 1 character long,
leading them to contain parts of the previous token.

Closes #3289160.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5894 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 22:15:59 +00:00
Colomban Wendling
5ee037bfc0 Don't make tags for /dev/null in diff files but for the new file instead
Based on a patch by Yang Hong, thanks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5893 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 13:12:53 +00:00
Colomban Wendling
9d2975b8fa Fix generating global tags (geany -g) when the configdir doesn't exist
When creating temporary files for generating global tag files, use
the system directory for temporary files rather than the configuration
directory, so it works even if the configuration directory doesn't
already exist.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5890 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 00:07:41 +00:00
Colomban Wendling
9fa8cd8bf9 Fix a few GCC warnings
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5856 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-17 22:52:43 +00:00
Enrico Tröger
e169372275 Fix two bugs with triple quoted strings within comments and missing indentation within triple quoted strings (#3316966, synced from CTags SVN, patch by Elias Pschernig, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5851 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-15 21:01:23 +00:00
Colomban Wendling
c2f035cb70 Remove checks for the GSlice allocator, use it unconditionally
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5849 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 23:03:50 +00:00
Enrico Tröger
2d95161b05 When checking for literal strings to ignore, consider also unicode, binary and raw strings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5821 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-29 17:40:50 +00:00
Enrico Tröger
9f676783f6 Remove unused variables (patch by Eugene Arshinov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5812 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-22 09:58:06 +00:00
Enrico Tröger
6dd81cb341 Fix mapping of SQL tags for Geany's symbol list (closes #3216474).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5704 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-10 14:52:57 +00:00
Enrico Tröger
a43d27d0a4 Replace escape character '\' by slash '/' in paths in the Windows Makefiles (patch by Matthew Brush, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5685 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 16:38:31 +00:00
Colomban Wendling
4cfedde35a Fix a few warnings and style
* Don't use strlen(..) > 0 or == 0, simply check the first character
  against 0;
* Fix a return without a value (my bad in last commit);
* Fix storing a literal in a non-const string.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5610 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-20 16:02:52 +00:00
Colomban Wendling
a81f75b288 Import upstream MIO changes not to require a C99 compiler
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5583 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-07 02:44:18 +00:00
Colomban Wendling
7ebea499de Fix MIO's COPYING
MIO moved to GPLv2+ yesterday, seems I forgot to fetch the new license...


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5574 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 14:26:08 +00:00
Colomban Wendling
470f1d0bb1 Fix a typo preventing distcheck to pass
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5569 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 00:45:51 +00:00
Colomban Wendling
b82c07b4be Fix some indentation style errors
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5566 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:55:34 +00:00
Colomban Wendling
56d9dc4565 Fix some debugging functions in C tag parser
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5565 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:55:00 +00:00
Colomban Wendling
d41435537f Plug a memory leak in the C tag parser
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5564 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:54:33 +00:00
Colomban Wendling
a2d04123bb Fix suffix of anonymous symbols (structs, enums, ...) in the C parser
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5563 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:53:58 +00:00
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
Colomban Wendling
569670b771 Move most of TagManager's I/O to MIO
Moved the parsers to MIO, which allows both in-memory and file parsing.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5555 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-05 22:40:50 +00:00
Frank Lanitz
b74e46587d Add a workaround for #3066566 to prevent Geany from crashing during loading of a LaTeX-file containing linebreaks inside headings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5540 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-06 18:25:10 +00:00
Enrico Tröger
ef47b8aa15 Fix memory leaks (reported by an anonymous IRC user).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5535 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-06 16:03:27 +00:00
Enrico Tröger
a266abca70 fix build (typo)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5534 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-30 16:22:09 +00:00
Enrico Tröger
ec408fa4b9 Add filetype Cobol (based on a patch by Seth Keiper).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5533 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-30 15:03:51 +00:00
Enrico Tröger
6ac2623208 Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Nick Treleaven
9c94b5b3a4 Parse PHP final functions (fixes #3111171).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5417 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-18 18:20:12 +00:00
Nick Treleaven
0582366a53 Parse Vala functions with contracts (#3080232).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5301 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-18 13:55:21 +00:00
Nick Treleaven
6a012dd73e Ignore D unittest blocks.
Parse D template functions with constraints.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5296 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-15 16:04:38 +00:00
Nick Treleaven
0007f904e6 Ignore D /+ +/ comments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5295 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-15 12:17:22 +00:00
Nick Treleaven
2c54be9a18 Parse property, constructor, destructor as functions (patch by
pottersson, thanks - #2992167).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5281 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-05 14:44:00 +00:00
Nick Treleaven
72a1a9e7a0 Parse D function template names.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5227 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-14 11:57:38 +00:00
Nick Treleaven
d840f86a9d Fix some 'possible' NULL pointer dereferences (based on patch by
Erik de Castro Lopo).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5224 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-13 15:03:18 +00:00
Nick Treleaven
ca74dd214c Remove NULL checks when calling g_free() (patch Erik de Castro
Lopo, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5221 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-09 17:21:05 +00:00
Nick Treleaven
4360b71fc7 Remove useless if statement.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5220 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-09 17:07:12 +00:00
Nick Treleaven
877f2e30bb Fix useless Assert.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5219 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-09 17:04:09 +00:00
Nick Treleaven
6478078ae0 Move useless assert.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5214 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-09 14:44:41 +00:00
Nick Treleaven
956b6cd8dd Fix possible NULL dereference.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5212 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-09 14:28:54 +00:00