Commit Graph

110 Commits (8678dc668b46fe90778d647e02e97d68d14e8e3a)

Author SHA1 Message Date
Yevgen Muntyan ccf7d55ebe -ansi -pedantic fixes 2007-01-11 20:28:22 -06:00
Yevgen Muntyan ce5b7a687a Repatched for gtksourceview 2007-01-10 19:17:20 -06:00
Yevgen Muntyan c406c2fca4 Mangle g_utf8_ symbols so they don't conflict with glib 2007-01-10 14:11:37 -06:00
Yevgen Muntyan 93f616adfc Don't use same name for temporary files, it breaks parallel build 2007-01-03 01:24:46 -06:00
Yevgen Muntyan 272b6ada40 Do not use \b in sed regex 2006-12-31 05:30:53 -06:00
Yevgen Muntyan eb3a481089 Happy new year! 2006-12-31 04:54:51 -06:00
Yevgen Muntyan 5aeeb49e94 Rule for 'make foo.lo' 2006-12-30 22:18:39 -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 5cb37ad123 Fake make gtksourceview/upstream/*.o 2006-12-23 18:12:50 -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 2b9eae9a51 Fixed compilation on gtk-2.6 2006-12-20 21:08:14 -06:00
Yevgen Muntyan adcbc295cd Mangle all gtksourceview names, to avoid conflicts with gtksourceview-1 2006-12-20 20:22:32 -06:00
Yevgen Muntyan ed840c1b22 Removed GtkSourceTag 2006-12-13 23:17:07 -06:00
Yevgen Muntyan fbf40d617b Updated eggregex from Marco's repo 2006-12-13 22:40:00 -06:00
Yevgen Muntyan a0af4e7770 Disabled "searching from root" messages 2006-11-25 11:48:33 -06:00
Yevgen Muntyan 66cc76ee2d Read "globs" attribute frmo old lang files 2006-11-12 13:10:38 -06:00
Yevgen Muntyan a874d189ce Do emit "changed" signal 2006-11-09 04:59:08 -06:00
Yevgen Muntyan e58b1691d5 GtkSourceStyleManager 2006-11-02 00:43:53 -06:00
Yevgen Muntyan 3d7043fce6 Upstream changes: GtkSourceStyleManager 2006-11-02 00:39:54 -06:00
Yevgen Muntyan 31126395d8 More ISO C stuff 2006-10-20 02:02:13 -05:00
Yevgen Muntyan bf7a22a41e C90 mode 2006-10-18 00:11:53 -05:00
Yevgen Muntyan 04089010d5 Upstream changes 2006-10-14 14:02:15 -05:00
Yevgen Muntyan fed6c4c098 Upstream changes: mime types and stuff moved to properties 2006-10-02 01:15:27 -05:00
Yevgen Muntyan 900aa18b98 Upstream changes 2006-09-26 14:44:20 -05:00
Yevgen Muntyan 497f2c34ad Allow unknown context references during parsing, and resolve them after parsing finished 2006-09-10 12:06:45 -05:00
Yevgen Muntyan b280310040 Don't remove all generated files in make clean 2006-09-10 12:05:32 -05:00
Yevgen Muntyan 65ca899745 Removed globs from lang files 2006-09-06 21:06:32 -05:00
Yevgen Muntyan d445431691 Better error message, better highlighting 2006-09-06 12:25:56 -05:00
Yevgen Muntyan dac98d7202 Fixed breakage after last commit 2006-09-04 01:00:19 -05:00
Yevgen Muntyan 6f2965a257 Be careful with free'd memory 2006-09-04 00:45:26 -05:00
Yevgen Muntyan 10c2fe6272 Better error message 2006-09-03 22:09:00 -05:00
Yevgen Muntyan beed8585d7 Synced with upstream:
2006-09-03  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtksourceview/gtksourcecontextengine.c:
	commented UPDATE_PRIORITY and UPDATE_TIME_SLICE constants;
	made CHECK_* macros and made corresponding function names lowercase;
	Removed some XXX comments, changed some FIXME's.
	* gtksourceview/gtksourcelanguage-parser-1.c:
	(build_keyword_list): removed keyword number limit and added a TODO there;
	removed language_strconvescape; removed old commented out code;
	(_gtk_source_language_file_parse_version1): check lang file version in
	* gtksourceview/gtksourcelanguage-parser-2.c:
	(create_definition): added a TODO about big keyword lists;
	removed old commented out code.
	* gtksourceview/gtksourcestylescheme.c: replaced XXX with FIXME (more
	informative one).
	* gtksourceview/gtktextregion.c,
	 gtksourceview/gtktextregion.h: removed gtk_text_region_subtract_region,
	it's not needed anymore.

2006-09-03  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtksourceview/gtksourcecontextengine.c,
	gtksourceview/gtksourcelanguage-parser-1.c
	gtksourceview/gtksourcelanguage-parser-2.c
	gtksourceview/gtksourcelanguage.c
	gtksourceview/gtksourcelanguagesmanager.c
	gtksourceview/gtksourcestyle.c
	gtksourceview/gtksourcestylescheme.c: do if (ptr != NULL) and
	if (ptr == NULL) instead of if (ptr) and if (!ptr), to please
	maintainers who are afraid of using pointers in boolean contexts.
2006-09-03 17:59:59 -05:00
Yevgen Muntyan 38155c5112 Handle case when parent context doesn't have end pattern properly 2006-09-02 04:00:21 -05:00
Yevgen Muntyan aef1c816de use-style attribute 2006-09-01 03:47:03 -05:00
Yevgen Muntyan 8e171f42a6 Do not crash on invalid lang files 2006-08-31 00:30:15 -05:00
Yevgen Muntyan f47ee58476 Removed GError* member from ParserState; better error message when encountered an error in a referenced lang file; get error messages from xml parser 2006-08-31 00:29:58 -05:00
Yevgen Muntyan d86c65ac43 Remove trailing \n from all patterns 2006-08-31 00:28:41 -05:00
Yevgen Muntyan ea528959a4 Do not crash on invalidated hints; do not crash on zero-length segments 2006-08-31 00:28:15 -05:00
Yevgen Muntyan 55df4f1823 Handle zero-length segments properly 2006-08-29 04:36:40 -05:00
Yevgen Muntyan b37b8eac18 Handle zero-length matches better 2006-08-29 01:48:50 -05:00
Yevgen Muntyan 404d485b0c Fix build on gtk-2.6 2006-08-28 21:08:09 -05:00
Yevgen Muntyan 120f8ba116 Do not use g_return_val_if_fail() in sub_pattern_to_int(), no number is not an error 2006-08-28 21:06:38 -05:00
Yevgen Muntyan 26cf5c1eef Fixed build with gtk-2.6 2006-08-28 13:27:14 -05:00
Yevgen Muntyan b5825f26a1 Synced with upstream
2006-08-27  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtksourceview/language-specs/automake.lang,
	gtksourceview/language-specs/check.sh,
	gtksourceview/language-specs/Makefile.am: new lang file for
	Makefile.am.
	* gtksourceview/language-specs/c.lang: override style for
	line-continue in macros; use def:string context.
	* gtksourceview/language-specs/def.lang: renamed 'c-style-escape'
	to 'escape', it's not really 'C style';
	added 'escape' style to 'line-continue' context;
	added 'string' and 'single-quoted-string' contexts.
	* gtksourceview/language-specs/javascript.lang: replaced
	def:c-style-escape with def:escape.
	* gtksourceview/language-specs/language2.rng: added optional
	style-ref and ignore-style attributes to <context ref=""> tags.
	* gtksourceview/gtksourcecontextengine.[ch],
	gtksourceview/gtksourcelanguage-parser-2.c: made it possible to
	override style from referenced context:
	<context ref="some-context" style-ref="some-style"> means "use
	context some-context with style some-style", and ignore-style
	attribute means "use no style in this context".

2006-08-27  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtksourceview/language-specs/Makefile.am: install style scheme into
	$prefix/gtksourceview-2.0/styles dir.
	* gtksourceview/gtksourcecontextengine.c: fixed subpatterns handling
	(subpatterns tags were applied randomly);
	made high-priority one-time idle called more often, which hopefully
	make it look nicer;
	(gtk_source_context_engine_update_highlight): highlight as much as possible
	even if some part of requested area is not analyzed yet.
	* gtksourceview/gtksourcelanguage-parser-2.c: fixed two leaks.
	* gtksourceview/gtksourcelanguagesmanager.c,
	gtksourceview/gtksourcestylescheme.h,
	gtksourceview/gtksourceview.c: _gtk_source_style_scheme_get_default() -
	temporary workaround for no-builtin-scheme thing.
2006-08-27 19:11:56 -05:00
Yevgen Muntyan 0732a0a2fb Added first-line-only option 2006-08-26 19:04:13 -05:00
Yevgen Muntyan dfe6411611 Do not crash 2006-08-26 06:16:29 -05:00
Yevgen Muntyan ee935c3a0b Convert language ids to lower case 2006-08-26 05:01:22 -05:00
Yevgen Muntyan 6589d94f89 Make distcheck happy 2006-08-26 05:01:07 -05:00
Yevgen Muntyan ee2dea7d75 GtkSourceView highlighting engine 2006-08-26 04:46:29 -05:00
Yevgen Muntyan 14d3defbc1 Merging syntax-hl branch -r 493:683 into the trunk 2005-10-13 14:08:18 +00:00
Yevgen Muntyan f077958174 Fixed couple of leaks; made AccelButton use builting glade parser 2005-09-10 16:02:38 +00:00
Yevgen Muntyan d5d45cd1fe Updated GtkSourceView to 1.4.1; moved my stuff from GtkSourceBuffer and GtkSourceView into MooTextBuffer and MooTextView 2005-09-09 09:40:10 +00:00
Yevgen Muntyan 172cd93bd0 Grep front end plugin 2005-09-08 17:08:31 +00:00
Yevgen Muntyan b798580cb3 Tab markers in GtkSourceView; added MooNotebook, synced MooPaned 2005-08-31 16:55:02 +00:00
Yevgen Muntyan dcb55d897d Moved all pygtk stuff to moo/moopython 2005-07-30 16:21:40 +00:00
Yevgen Muntyan aff55ea074 gtk_source_view_set_highlight_current_line_color: remove const 2005-07-25 13:13:14 +00:00
Yevgen Muntyan aa7243eb99 Made gtksourceview_gettext return const char* 2005-07-25 07:58:29 +00:00
Yevgen Muntyan b26546872f Initial import 2005-06-22 18:20:32 +00:00