-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
syntax_test_matlab.m
79 lines (63 loc) · 2 KB
/
syntax_test_matlab.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
% SYNTAX TEST "Packages/Matlab/Matlab.sublime-syntax"
%---------------------------------------------
% Matlab OOP test
classdef (Sealed = false) classname < baseclass
% <- keyword.other
% ^ variable.parameter
% ^ keyword.operator.symbols
% ^ constant.language
% ^ entity.name.class
% ^ entity.other.inherited-class
properties (SetAccess = private, GetAccess = true)
% ^ keyword.other
% ^ variable.parameter
% ^ constant.language
% ^ variable.parameter
PropName
end
% ^ keyword.control
methods
% ^ keyword.other
methodName
end
events
% ^ keyword.other
EventName
end
enumeration
% ^ keyword.other
EnumName
end
end
%---------------------------------------------
% Syntax brackets/parens punctuation test
x = [ 1.76 ]
% <- source.matlab meta.variable.other.valid.matlab
% ^ source.matlab keyword.operator.symbols.matlab
% ^ source.matlab punctuation.section.brackets.begin.matlab
% ^ source.matlab meta.brackets.matlab constant.numeric.matlab
% ^ source.matlab punctuation.section.brackets.end.matlab
xAprox = fMetodoDeNewton( xi )
% <- source.matlab meta.variable.other.valid.matlab
% ^ source.matlab keyword.operator.symbols.matlab
% ^ source.matlab meta.variable.other.valid.matlab
% ^ source.matlab punctuation.section.parens.begin.matlab
% ^ source.matlab meta.parens.matlab meta.variable.other.valid.matlab
% ^ source.matlab punctuation.section.parens.end.matlab
%---------------------------------------------
% Block comment test
% Success case
%{
x = 5
% ^ source.matlab comment.block.percentage.matlab
%}
% Failure case
%{ fail
x = 5
% ^ source.matlab keyword.operator.symbols.matlab
%}
%{
%} fail
x = 5
% ^ source.matlab comment.block.percentage.matlab
%}