isagalaev/highlight.js — pull request #115 by enizhibitsky (2012-08-21 14:30:59+00:00)
Title: Add matrices, cells and transposed variables

As we had discussed earlier in the mailing list, I have added matrices, cells and transposed variables detection in order to prevent confusing transpose operators with string beginnings.

##### Testing code fragment (github markdown doesn't work properly here)

~~~
function transposeTest

foo_matrix = [1, 2, 3; 4, 5, 6]''';
foo_cell = {1, 2, 3; 4, 5, 6}''.'.';

string = 'hello world';

bar_matrix = [1, 2, 3; 4, 5, 6];
bar_cell = {1, 2, 3; 4, 5, 6};

strings_in_matrix = ['hello', 'world'; 'from', 'matlab'];

foo_var = foo_var''';
bar_var = bar_var'''.'.';

fprintf('%.0f %.0f ', eps, pi);

end
~~~