Commit Graph

25 Commits (60aae898d7970fae3c4703c5924dd90942e3cfb6)

Author SHA1 Message Date
Yevgen Muntyan e151bbe5ad Fixed bunch of warnings 2007-10-08 09:08:32 -05:00
Yevgen Muntyan 159beb8657 Synced with gtksourceview upstream 2007-09-09 14:21:19 -05:00
Yevgen Muntyan c223ff71f7 Little cleanup 2007-07-31 08:59:56 -05:00
Yevgen Muntyan b6e82101a7 Synced with upstream 2007-07-31 06:11:24 -05:00
Yevgen Muntyan 23f3d0da3d Try to handle parser errors better 2007-07-31 05:15:57 -05:00
Yevgen Muntyan 76bfc2a51c Workaround http://bugzilla.gnome.org/show_bug.cgi?id=455640; upstream changes 2007-07-10 16:36:14 -05:00
Yevgen Muntyan 880f97f004 Try to speed up parsing a little 2007-07-04 22:24:09 -05:00
Yevgen Muntyan 9a284ef600 Upstream changes 2007-06-29 05:43:00 -05:00
Yevgen Muntyan d90ac702fb Expand regex references in define-regex 2007-06-28 03:02:13 -05:00
Yevgen Muntyan 7d16d21b37 Fancier highlighting 2007-06-28 00:54:46 -05:00
Yevgen Muntyan 4264625896 Upstream change: 'case-insensitive' changed to 'case-sensitive' 2007-06-25 13:32:06 -05:00
Yevgen Muntyan 28c1703c67 Upstream changes 2007-06-20 23:37:33 -05:00
Yevgen Muntyan e7db6b1099 Upstream changes 2007-06-18 00:03:03 -05:00
Yevgen Muntyan 286c2c09f6 Updated GRegex 2007-05-30 21:56:25 -05:00
Yevgen Muntyan 370fac158c Migrated to GRegex from EggRegex; updated pcre to 7.0 2007-05-30 04:37:41 -05:00
Yevgen Muntyan 7bf97f16df Synced with gtksourceview upstream 2007-05-27 15:08:41 -05:00
Yevgen Muntyan e6deee67a4 Upstream changes 2007-04-21 07:35:46 -05:00
Yevgen Muntyan aa641ba8b2 Do not leak lang files fd's 2007-03-29 23:27:55 -05:00
Yevgen Muntyan 7be3b2d717 'dupnames' regex attribute 2007-02-15 07:31:11 -06:00
Yevgen Muntyan eb3a481089 Happy new year! 2006-12-31 04:54:51 -06:00
Yevgen Muntyan 3d40a24745 2006-12-25 Yevgen Muntyan <muntyan@tamu.edu>
* gtksourceview/gtksourcecontextengine.h:
	Removed comment about GtkSourceContextMatchOptions enum,
	it's not true.

2006-12-25  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtksourceview/gtksourcecontextengine.c,
	gtksourceview/gtksourcecontextengine.h,
	gtksourceview/gtksourcelanguage-parser-2.c:
	Added new context option "once-only", made
	GtkSourceContextEnginePrivate use single
	GtkSourceContextMatchOptions field instead of bunch of
	bitfields.
	* gtksourceview/gtksourcelanguagesmanager.c:
	Removed odd #include <libxml/xmlreader.h>.
	* gtksourceview/gtksourcestylescheme.c: (parse_style)
	Initialize attribute values, to make gcc happy.
2006-12-25 01:46:12 -06:00
Yevgen Muntyan 8fc9e0fa50 2006-12-24 Yevgen Muntyan <muntyan@tamu.edu>
* gtksourceview/language-specs/check.sh,
	gtksourceview/language-specs/Makefile.am,
	gtksourceview/language-specs/dtd.lang,
	gtksourceview/language-specs/gtk-doc.lang:
	New lang files.
	* gtksourceview/language-specs/c.lang,
	gtksourceview/language-specs/def.lang,
	gtksourceview/language-specs/desktop.lang,
	gtksourceview/language-specs/m4.lang,
	gtksourceview/language-specs/sh.lang,
	gtksourceview/language-specs/xml.lang:
	Improved (hopefully) higlighting.

2006-12-24  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtksourceview/gtksourcelanguage-parser-2.c:
	Fixed mapping styles: it skipped intermediate styles, i.e.
	<style id="foo" map-to="moo"/>
	<style id="moo" map-to="baz"/>
	was treated as
	<style id="foo" map-to="baz"/>
	<style id="moo" map-to="baz"/>.
	* gtksourceview/gtksourcecontextengine.c:
	Some doc clean up.
2006-12-24 00:57:46 -06:00
Yevgen Muntyan f89f294065 2006-12-23 Yevgen Muntyan <muntyan@tamu.edu>
* gtksourceview/gtksourcecontextengine.c,
	gtksourceview/gtksourcecontextengine.h,
	gtksourceview/gtksourcelanguage.c,
	gtksourceview/gtksourcelanguage-private.h,
	gtksourceview/gtksourcelanguage-parser-1.c,
	gtksourceview/gtksourcelanguage-parser-2.c:
	Made context definitions shared between engines using same language:
	added GtkSourceContextData structure which holds definitions, and made
	GtkSourceContextEngine refer to it.
2006-12-23 19:42:23 -06:00
Yevgen Muntyan 6f27954f1f 2006-12-23 Yevgen Muntyan <muntyan@tamu.edu>
* gtksourceview/gtksourcecontextengine.c: added memory information
	stuff: it can print how much memory is taken by context definitions
	and by contexts.
	* gtksourceview/libegg/regex/eggregex.c,
	gtksourceview/libegg/regex/eggregex.h: (_egg_regex_get_memory):
	new function to get amount of memory eaten by regex.

2006-12-23  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtksourceview/gtksourcecontextengine.c: (resolve_reference),
	(_gtk_source_context_engine_add_ref): Made it treat references
	to pure container contexts as wildcard references, so
	<context id="foo"><include>...</include></context>
	<context id="bar"><include><context ref="foo"></include></context>
	is silently translated to
	<context id="foo"><include>...</include></context>
	<context id="bar"><include><context ref="foo:*"></include></context>

2006-12-23  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtksourceview/gtksourcelanguage-parser-2.c:
	Fixed parsing keyword lists: it lost keywords before
	a comment, if a comment was inside the list.
	(str_to_bool): made it take xmlChar* to avoid casts in its users code;
	(update_regex_flags): made it take xmlChar* instead of gboolean since
	all its users called str_to_bool() on the argument anyway;
	(get_regex_flags): moved getting regex options attributes from
	create_definition() to new function;
	(create_definition): the keywords fix.
2006-12-23 18:11:57 -06:00
Yevgen Muntyan adcbc295cd Mangle all gtksourceview names, to avoid conflicts with gtksourceview-1 2006-12-20 20:22:32 -06:00