-
Notifications
You must be signed in to change notification settings - Fork 7
/
highlighting-test.m
36 lines (30 loc) · 1016 Bytes
/
highlighting-test.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% 1. Double-quoted strings: https://github.com/JamesRitchie/language-matlab/issues/32
s1 = "a double-quoted string";
c1 = 'a character array';
% 2. %% comment issue: https://github.com/JamesRitchie/language-matlab/issues/28
%%
y = abs(rand(3)); % make sure this isn't a comment line
% 3. Everything showing up as meta.variable.other.valid.matlab: https://github.com/JamesRitchie/language-matlab/issues/23
someVariable = A\b;
% 4. Highlighting in monokai-dark: https://github.com/JamesRitchie/language-matlab/issues/15
% This isn't valid syntax inside of a script but it still will highlight for testing
classdef aclass
properties
prop1
prop2
end
methods
function y = someMethod(x)
y = sort(repmat(x,2,3));
end
end
end
% 5. fprintf with double quotes: https://github.com/JamesRitchie/language-matlab/issues/10
fprintf(" %d" , decimal)
% 6. Comment blocks: https://github.com/thedavidprice/language-matlab-octave/issues/14
%{
disp('Commented block')
%}
%{/
disp('Active block')
%}