gtksourceview r2150 - in trunk: . gtksourceview/language-specs
- From: pborelli svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r2150 - in trunk: . gtksourceview/language-specs
- Date: Mon, 2 Feb 2009 09:37:48 +0000 (UTC)
Author: pborelli
Date: Mon Feb 2 09:37:47 2009
New Revision: 2150
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2150&view=rev
Log:
2009-02-02 Paolo Borelli <paolo borelli katamail com>
* gtksourceview/language-specs/octave.lang: support matlab
multiline comments. Patch by Brendan Bycroft.
(Fixes bug #556365).
Modified:
trunk/ChangeLog
trunk/gtksourceview/language-specs/octave.lang
Modified: trunk/gtksourceview/language-specs/octave.lang
==============================================================================
--- trunk/gtksourceview/language-specs/octave.lang (original)
+++ trunk/gtksourceview/language-specs/octave.lang Mon Feb 2 09:37:47 2009
@@ -42,6 +42,18 @@
<definitions>
+ <!--
+ this is not yet supported by octave, but it's supported
+ by matlab - http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f0-41244.html#f0-45380
+ -->
+ <context id="multiline-comment" style-ref="comment">
+ <start>^\s*%{\s*$</start>
+ <end>^\s*%}\s*$</end>
+ <include>
+ <context ref="def:in-comment"/>
+ </include>
+ </context>
+
<context id="line-comment" style-ref="comment" end-at-line-end="true">
<start>#|%</start>
<include>
@@ -208,6 +220,7 @@
<context id="octave">
<include>
+ <context ref="multiline-comment"/>
<context ref="line-comment"/>
<context ref="double-quoted-string"/>
<context ref="single-quoted-string"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]