Added detection for Scilab language

This commit is contained in:
Sylvestre Ledru
2012-02-08 15:23:51 +01:00
parent 4ad921f176
commit 5b5ae20c5e
5 changed files with 31 additions and 0 deletions

14
test/fixtures/scilab_function.sci vendored Normal file
View File

@@ -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

2
test/fixtures/scilab_script.sce vendored Normal file
View File

@@ -0,0 +1,2 @@
disp(%pi);

3
test/fixtures/scilab_test.tst vendored Normal file
View File

@@ -0,0 +1,3 @@
assert_checkequal(1+1,2);
assert_checkfalse(%pi==%e);