Permalink
Browse files

Added detection for Scilab language

  • Loading branch information...
1 parent 4ad921f commit 5b5ae20c5ef693ce32ff97eff16577482b035bba @sylvestre committed Feb 8, 2012
@@ -924,6 +924,13 @@ Scheme:
- .sps
- .ss
+Scilab:
+ type: programming
@abevoelker

abevoelker Feb 17, 2012

Bonjour! Tests are failing due to there not being a lexer provided here. If you don't mind not having syntax highlighting, add this after line 928:

lexer: Text only

If you do want syntax highlighting, you will have to implement a Scilab lexer for Pygments.

@sylvestre

sylvestre via email Feb 17, 2012

Owner
@sylvestre

sylvestre Feb 18, 2012

Owner

Already merged!

@abevoelker

abevoelker Feb 18, 2012

Bien! Now you're just waiting for pygments.rb to get updated like the rest of us. 😃

@sylvestre

sylvestre Feb 22, 2012

Owner

@abevoelker
I guess you don't have any ETA ?

Could you consider the merge of this commit until then ?

@abevoelker

abevoelker Feb 22, 2012

Sorry, I'm not a GitHub employee so I don't have commit access and no idea of ETA. I'm just a concerned citizen trying to help out. 😃

If you want to encourage progress you could give a 👍 to this pull request, which is currently what we're waiting on.

@sylvestre

sylvestre Feb 22, 2012

Owner

OK, thanks for the input :)

+ primary_extension: .sci
+ extensions:
+ - .sce
+ - .tst
+
Self:
type: programming
lexer: Text only
@@ -0,0 +1,14 @@
+// A comment with whites and tabulations
+// Email: <scilab.support@scilab.org>
+// Scilab editor: http://www.scilab.org/
+function [a, b] = myfunction(d, e, f)
+ a = 2.71828 + %pi + f($, :);
+ b = cos(a) + cosh(a);
+ if d == e then
+ b = 10 - e.field;
+ else
+ b = " test " + home
+ return
+ end
+ myvar = 1.23e-45;
+endfunction
@@ -0,0 +1,2 @@
+disp(%pi);
+
@@ -0,0 +1,3 @@
+assert_checkequal(1+1,2);
+assert_checkfalse(%pi==%e);
+
View
@@ -305,6 +305,11 @@ def test_language
assert_equal Language['Standard ML'], blob("Foo.sig").language
assert_equal Language['Standard ML'], blob("Foo.sml").language
+ # Scilab
+ assert_equal Language['Scilab'], blob("scilab_script.sce").language
+ assert_equal Language['Scilab'], blob("scilab_function.sci").language
+ assert_equal Language['Scilab'], blob("scilab_test.tst").language
+
# Config files
assert_equal Language['INI'], blob(".gitconfig").language
assert_equal Language['Shell'], blob(".bash_profile").language

0 comments on commit 5b5ae20

Please sign in to comment.