medit/moo/mooedit/language-specs/makefile.lang

240 lines
7.7 KiB
Plaintext
Raw Normal View History

2006-08-26 02:46:29 -07:00
<?xml version="1.0" encoding="UTF-8"?>
<language id="makefile" _name="Makefile" version="2.0" _section="Sources">
<metadata>
<property name="mimetypes">text/x-makefile</property>
2006-11-12 11:09:52 -08:00
<property name="globs">[Mm]akefile;GNUmakefile;[Mm]akefile.*</property>
<property name="line-comment-start">#</property>
</metadata>
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 17:11:56 -07:00
<styles>
2006-08-29 02:36:40 -07:00
<style id="variable" name="Variable" map-to="def:data-type"/>
<style id="assignment-rhs" name="assignment-rhs"/>
<style id="assignment-lhs" name="assignment-lhs"/>
<style id="targets" name="targets" map-to="def:function"/>
<style id="prereq" name="prereq"/>
<style id="command" name="command"/>
<style id="trailing-tab" name="Trailing Tab"/>
<style id="function" name="function" map-to="def:function"/>
<style id="keyword" name="keyword" map-to="def:keyword"/>
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 17:11:56 -07:00
</styles>
2006-08-26 02:46:29 -07:00
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 17:11:56 -07:00
<definitions>
<define-regex id="variable">[a-zA-Z_][a-zA-Z0-9_]*</define-regex>
2006-08-26 02:46:29 -07:00
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 17:11:56 -07:00
<context id="variable">
<match>\$\((\%{variable})\)</match>
<include>
<context sub-pattern="1" style-ref="variable"/>
</include>
</context>
2006-08-26 02:46:29 -07:00
2006-08-29 02:36:40 -07:00
<context id="backtick-string" style-ref="function" end-at-line-end="true">
<start>`</start>
<end>`</end>
<include>
<context ref="def:escape"/>
<context ref="def:line-continue"/>
</include>
</context>
<context id="assignment-rhs" style-ref="assignment-rhs" end-at-line-end="true">
<start></start>
<include>
<context ref="def:line-continue"/>
<context ref="def:shell-like-comment"/>
<context ref="variable"/>
<context ref="def:string"/>
<context ref="def:single-quoted-string"/>
<context ref="backtick-string"/>
</include>
</context>
<context id="command" style-ref="command" extend-parent="false" end-at-line-end="true">
<start></start>
<include>
<context ref="def:line-continue"/>
<context ref="def:shell-like-comment"/>
<context ref="variable"/>
<context ref="def:string"/>
<context ref="def:single-quoted-string"/>
<context ref="backtick-string"/>
</include>
</context>
<context id="directives" style-ref="keyword">
<keyword>define</keyword>
<keyword>else</keyword>
<keyword>endef</keyword>
<keyword>endif</keyword>
<keyword>if</keyword>
<keyword>ifdef</keyword>
<keyword>ifeq</keyword>
<keyword>ifndef</keyword>
<keyword>ifneq</keyword>
<keyword>include</keyword>
<keyword>override</keyword>
<keyword>unexport</keyword>
</context>
<context id="functions" style-ref="function">
<keyword>addprefix</keyword>
<keyword>addsuffix</keyword>
<keyword>basename</keyword>
<keyword>call</keyword>
<keyword>dir</keyword>
<keyword>error</keyword>
<keyword>filter</keyword>
<keyword>filter-out</keyword>
<keyword>findstring</keyword>
<keyword>firstword</keyword>
<keyword>foreach</keyword>
<keyword>join</keyword>
<keyword>notdir</keyword>
<keyword>origin</keyword>
<keyword>patsubst</keyword>
<keyword>shell</keyword>
<keyword>sort</keyword>
<keyword>strip</keyword>
<keyword>subst</keyword>
<keyword>suffix</keyword>
<keyword>warning</keyword>
<keyword>wildcard</keyword>
<keyword>word</keyword>
<keyword>words</keyword>
</context>
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 17:11:56 -07:00
<context id="makefile">
2006-08-29 02:36:40 -07:00
<include>
<context ref="def:shebang"/>
<context ref="def:shell-like-comment"/>
<context id="assignment" end-at-line-end="true">
2006-11-12 15:24:59 -08:00
<start>^(\%{variable})\s*[\+]?=</start>
2006-08-29 02:36:40 -07:00
<include>
<context sub-pattern="1" where="start" style-ref="assignment-lhs"/>
<context ref="assignment-rhs"/>
</include>
</context>
<context id="rule">
<start>^([^\t\:][^\:]*)\:</start>
<end>^(?!\t)</end>
<include>
<context sub-pattern="1" where="start" style-ref="targets"/>
<context id="prereq" end-at-line-end="true" style-ref="prereq">
<start>(?&lt;=:)</start>
<end>;</end>
<include>
<context ref="def:escape"/>
<context ref="def:line-continue"/>
<context ref="variable"/>
<context ref="functions"/>
2006-08-29 02:36:40 -07:00
</include>
</context>
<context id="trailing-tab" style-ref="trailing-tab">
<match>^\t+$</match>
</context>
<context ref="command"/>
</include>
</context>
<context ref="directives"/>
<context ref="functions"/>
2006-08-29 02:36:40 -07:00
</include>
</context>
<!-- <context id="somecontext">
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 17:11:56 -07:00
<include>
<context ref="def:shebang"/>
<context ref="def:shell-like-comment"/>
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 17:11:56 -07:00
<context ref="def:string"/>
<context ref="def:single-quoted-string"/>
2006-08-26 02:46:29 -07:00
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 17:11:56 -07:00
<context id="backtick-string" style-ref="function" end-at-line-end="true">
<start>`</start>
<end>`</end>
<include>
<context ref="def:escape"/>
<context ref="def:line-continue"/>
</include>
</context>
2006-08-26 02:46:29 -07:00
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 17:11:56 -07:00
<context id="variable-1" style-ref="variable" end-at-line-end="true">
<start>^(\%{variable})\s*=</start>
<include>
<context sub-pattern="1" where="start"/>
<context ref="variable"/>
<context ref="def:line-continue"/>
</include>
</context>
2006-08-26 02:46:29 -07:00
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 17:11:56 -07:00
<context id="targets">
<match>^([^\t\:][^\:]*)\:</match>
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 17:11:56 -07:00
<include>
<context sub-pattern="1" style-ref="target"/>
</include>
</context>
2006-08-26 02:46:29 -07:00
<context id="trailing-tab" style-ref="trailing-tab">
<match>^\t+$</match>
</context>
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 17:11:56 -07:00
<context id="directives" style-ref="keyword">
<keyword>define</keyword>
<keyword>else</keyword>
<keyword>endef</keyword>
<keyword>endif</keyword>
<keyword>if</keyword>
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 17:11:56 -07:00
<keyword>ifdef</keyword>
<keyword>ifeq</keyword>
<keyword>ifndef</keyword>
<keyword>ifneq</keyword>
<keyword>include</keyword>
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 17:11:56 -07:00
<keyword>override</keyword>
<keyword>unexport</keyword>
</context>
2006-08-26 02:46:29 -07:00
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 17:11:56 -07:00
<context id="functions" style-ref="function">
<keyword>addprefix</keyword>
<keyword>addsuffix</keyword>
<keyword>basename</keyword>
<keyword>call</keyword>
<keyword>dir</keyword>
<keyword>error</keyword>
<keyword>filter</keyword>
<keyword>filter-out</keyword>
<keyword>findstring</keyword>
<keyword>firstword</keyword>
<keyword>foreach</keyword>
<keyword>join</keyword>
<keyword>notdir</keyword>
<keyword>origin</keyword>
<keyword>patsubst</keyword>
<keyword>shell</keyword>
<keyword>sort</keyword>
<keyword>strip</keyword>
<keyword>subst</keyword>
<keyword>suffix</keyword>
<keyword>warning</keyword>
<keyword>wildcard</keyword>
<keyword>word</keyword>
<keyword>words</keyword>
</context>
<context id="special-targets" style-ref="keyword">
<prefix>^</prefix>
<suffix>\b</suffix>
<keyword>\.DEFAULT</keyword>
<keyword>\.EXPORT_ALL_VARIABLES</keyword>
<keyword>\.IGNORE</keyword>
<keyword>\.PHONY</keyword>
<keyword>\.PRECIOUS</keyword>
<keyword>\.SILENT</keyword>
<keyword>\.SUFFIXES</keyword>
</context>
</include>
2006-08-29 02:36:40 -07:00
</context>-->
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 17:11:56 -07:00
</definitions>
2006-08-26 02:46:29 -07:00
</language>