[gtksourceview] matlab/octave: drop its use for files with mime for the other type.
- From: David Miguel Susano Pinto <davidpinto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] matlab/octave: drop its use for files with mime for the other type.
- Date: Sun, 18 Jan 2015 17:45:44 +0000 (UTC)
commit 5049751901effd9c839f600fcc5f4958e21fe7dc
Author: Carnë Draug <carandraug+dev gmail com>
Date: Sun Jan 18 15:51:56 2015 +0000
matlab/octave: drop its use for files with mime for the other type.
* both matlab.lang and octave.lang files were currently being used for
files with mimetypes "text/x-matlab" and "text/x-octave". Octave has
plenty of extra syntax missing from Matlab and thus, the matlab mimetype
should not be used for files identified as octave. While the opposite
is not true, i.e., Matlab code should run just fine in Octave, in
practice, code that is identified as Matlab is probably aiming at Matlab
compatibility and should avoid using Octave highlight.
* Note that whether a file was written in Octave or Matlab is irrelevant.
If a file was written in Octave but only uses features that are also
present in Matlab, it probably aims at Matlab compatibility and should
be highlighted as Matlab.
data/language-specs/matlab.lang | 2 +-
data/language-specs/octave.lang | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/language-specs/matlab.lang b/data/language-specs/matlab.lang
index ac43acc..a12fca7 100644
--- a/data/language-specs/matlab.lang
+++ b/data/language-specs/matlab.lang
@@ -25,7 +25,7 @@
-->
<language id="matlab" _name="Matlab" version="2.0" _section="Scientific">
<metadata>
- <property name="mimetypes">text/x-octave;text/x-matlab</property>
+ <property name="mimetypes">text/x-matlab</property>
<property name="globs">*.m</property>
<property name="line-comment-start">%</property>
<property name="block-comment-start">%{</property>
diff --git a/data/language-specs/octave.lang b/data/language-specs/octave.lang
index 6afb491..15acd11 100644
--- a/data/language-specs/octave.lang
+++ b/data/language-specs/octave.lang
@@ -25,7 +25,7 @@
-->
<language id="octave" _name="Octave" version="2.0" _section="Scientific">
<metadata>
- <property name="mimetypes">text/x-octave;text/x-matlab</property>
+ <property name="mimetypes">text/x-octave</property>
<property name="globs">*.m</property>
<property name="line-comment-start">#</property>
<property name="block-comment-start">#{</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]