GNOME Bugzilla – Bug 170604
Syntax for GNU Octave
Last modified: 2014-02-15 12:52:50 UTC
Add GNU Octave (www.octave.org) syntax highlighting
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
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.
*** Bug 307452 has been marked as a duplicate of this bug. ***
Bug 307452 contains a .lang file too. I don't know which is the best one.
I think soren agreed on octave-lists that mine was a slightly better version, than his, but suggested some corrections though.
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.
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.
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 :-)
*** Bug 136812 has been marked as a duplicate of this bug. ***
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>