* 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.
* 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.
* 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-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-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.