Commit Graph

1687 Commits (beed8585d7ec6800d88925c94a75513d8da14116)

Author SHA1 Message Date
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 208246b29e Now it can open files 2006-09-02 04:01:26 -05:00
Yevgen Muntyan b713f5c505 Use :* when including contexts 2006-09-02 04:01:01 -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 811c16f2e6 Output filters start working 2006-09-02 02:34:01 -05:00
Yevgen Muntyan d7dacd1f27 Do not write stderr as stdout; renamed std*_text to std*_line; 2006-09-02 02:33:09 -05:00
Yevgen Muntyan 11f7c5a11c moo_line_view_set_boxed(), moo_line_view_get_boxed() 2006-09-02 02:31:13 -05:00
Yevgen Muntyan 475ba8fb9e Do not run command with empty Untitled if it needs a file 2006-09-02 02:30:43 -05:00
Yevgen Muntyan 53e07fcea5 _moo_str_equal() 2006-09-02 02:29:39 -05:00
Yevgen Muntyan a3865e4622 Added macros for "stdout" and friends 2006-09-02 02:27:07 -05:00
Yevgen Muntyan c3d6963ff6 Strings end at line end 2006-09-02 02:26:38 -05:00
Yevgen Muntyan 47353c6ae7 "union" is a keyword 2006-09-02 02:26:21 -05:00
Yevgen Muntyan fbc3280d7e Continuing output filter stuff 2006-09-01 12:37:47 -05:00
Yevgen Muntyan 9507592658 Mismatched bracket color 2006-09-01 03:49:08 -05:00
Yevgen Muntyan 7b1202882a Started output filter stuff 2006-09-01 03:48:52 -05:00
Yevgen Muntyan f6b19ba21f Set current line color too 2006-09-01 03:47:55 -05:00
Yevgen Muntyan 109d7a0dde MANY_LINES trick is broken 2006-09-01 03:47:34 -05:00
Yevgen Muntyan aef1c816de use-style attribute 2006-09-01 03:47:03 -05:00
Yevgen Muntyan a1f6fd445f Removed default styles which do not make sense for most languages such as def:preprocessor; added use-style attribute to styles in style schemes 2006-09-01 03:46:43 -05:00
Yevgen Muntyan c55731d6da Removed odd #include's 2006-09-01 03:45:42 -05:00
Yevgen Muntyan 53eca2f14b Use MooKeyFile for tools configuration files 2006-08-31 10:21:39 -05:00
Yevgen Muntyan 4d37da1536 Better styles for latex 2006-08-31 10:21:18 -05:00
Yevgen Muntyan 6f7f511daa Changed license to LGPL 2006-08-31 10:10:57 -05:00
Yevgen Muntyan 0374f0e65e New option: async 2006-08-31 01:26:50 -05:00
Yevgen Muntyan 149234217e _moo_env_add 2006-08-31 01:26:26 -05:00
Yevgen Muntyan 0229d59cd1 Do not use comment style for math stuff 2006-08-31 01:26:13 -05:00
Yevgen Muntyan 3b05ab17ac More lang files 2006-08-31 00:34:59 -05:00
Yevgen Muntyan 3f2911df56 Use TextView.set_lang_by_id 2006-08-31 00:34:16 -05:00
Yevgen Muntyan a42d3703fe moo_text_view_set_lang_by_id 2006-08-31 00:33:48 -05:00
Yevgen Muntyan 62b487fc97 moo_text_view_set_lang_by_id(): set style scheme too 2006-08-31 00:33:18 -05:00
Yevgen Muntyan 536d5df25e Warn if a language with given name not found 2006-08-31 00:32:25 -05:00
Yevgen Muntyan 425c951b74 Do not spit those messages about matched files 2006-08-31 00:31:59 -05:00
Yevgen Muntyan 36ff6f4a07 Removed odd #include's 2006-08-31 00:31:39 -05:00
Yevgen Muntyan 6a47d03fca "bash" language renamed to "sh" 2006-08-31 00:31:25 -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 49ac2ab247 Removed automake.lang, added some stuff in def.lang 2006-08-29 00:08:18 -05:00
Yevgen Muntyan 37f67cc758 Changelog lang file 2006-08-28 23:27:37 -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 c7e5afb416 Always raise pane window in size-allocate 2006-08-27 19:10:41 -05:00
Yevgen Muntyan d6cfcf6f82 Do not map child until notebook is mapped itself 2006-08-27 19:10:08 -05:00
Yevgen Muntyan 17f35eb679 Match floats before decimals 2006-08-27 04:36:06 -05:00
Yevgen Muntyan 7082d17f76 Do not overwrite old files. 2006-08-26 19:14:18 -05:00