After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 170604 - Syntax for GNU Octave
Syntax for GNU Octave
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
1.2.x
Other All
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
: 136812 307452 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-03-16 21:38 UTC by søren hauberg
Modified: 2014-02-15 12:52 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Syntax file for GNU Octave (2.96 KB, patch)
2005-03-16 21:40 UTC, søren hauberg
none Details | Review
Updated syntax file (2.99 KB, text/plain)
2005-03-21 21:12 UTC, søren hauberg
  Details

Description søren hauberg 2005-03-16 21:38:12 UTC
Add GNU Octave (www.octave.org) syntax highlighting
Comment 1 søren hauberg 2005-03-16 21:40:03 UTC
Created attachment 38808 [details] [review]
Syntax file for GNU Octave

A syntax file for GNU Octave based on the syntax file for R. I don't know which
mimetype to use so I chose text/plain
Comment 2 søren hauberg 2005-03-21 21:12:36 UTC
Created attachment 39033 [details]
Updated syntax file

I forgot to add the endswitch keyword, so here's an updated version. The
mimetype still needs to be determined. In octave strings can be multiline if
there is an \ at the end of the string (like C), but I don't know how to do
that.
Comment 3 Paolo Maggi 2005-06-22 10:42:33 UTC
*** Bug 307452 has been marked as a duplicate of this bug. ***
Comment 4 Paolo Maggi 2005-06-22 10:46:53 UTC
Bug 307452 contains a .lang file too.
I don't know which is the best one.
Comment 5 Muthiah Annamalai 2005-06-23 02:42:21 UTC
I think soren agreed on octave-lists that mine was a slightly better version,
than his, but suggested some corrections though.
Comment 6 søren hauberg 2005-07-02 15:12:43 UTC
Sorry for being a spammer, but I just realized that I made a mistake earlier. I
uploaded a version of octave.lang to bug 307452 instead of this bug. Just wanted
to make sure you use the version I put at 307452.
Comment 7 Paolo Maggi 2005-08-03 17:36:40 UTC
I don't think it is a good idea to use the Objective-C mime-type. 
So, before committing the Soren's .lang file I will wait bug
https://bugs.freedesktop.org/show_bug.cgi?id=3971 will be fixed.
Comment 8 søren hauberg 2005-08-04 19:45:14 UTC
I agree that using the Objective-C mime-type is *bad*. You could simply remove
it and only use the text/x-octave mime-type. At least the user would be able to
select syntax highlighting from the menu.

This might be related so I'll mention it here. You can get on text/x-octave
mime-type specification at http://hauberg.org/octave.xml. I guess this fixes the
bug at freedesktop.org, but I don't have the time to loom into it. Perhaps
somebody else does :-)
Comment 9 Paolo Maggi 2005-12-31 15:26:45 UTC
*** Bug 136812 has been marked as a duplicate of this bug. ***
Comment 10 Paolo Maggi 2006-01-03 15:27:08 UTC
Fixed in CVS HEAD

2006-01-03  Paolo Maggi  <paolo@gnome.org>

	Fixes bug #170604 – Syntax for GNU Octave
	
	* gtksourceview/language-specs/Makefile.am: added octave.lang
	
	* gtksourceview/language-specs/octave.lang: new file by
	Søren Hauberg <soren@hauberg.org> and 
	Muthiah Annamalai <gnumuthu@users.sf.net>