update inbox list
This commit is contained in:
27
vendor/scrivo/highlight.php/test/markup/matlab/block_comment.expect.txt
vendored
Normal file
27
vendor/scrivo/highlight.php/test/markup/matlab/block_comment.expect.txt
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<span class="hljs-comment">%{ evaluate_this = false; % Evaluated as regular single-line comment</span>
|
||||
evaluate_this = <span class="hljs-built_in">true</span>;
|
||||
<span class="hljs-comment">%}</span>
|
||||
|
||||
evaluate_this = <span class="hljs-built_in">true</span>;
|
||||
<span class="hljs-comment">
|
||||
%{
|
||||
This is a multi-line comment
|
||||
evaluate_this = false;
|
||||
%{
|
||||
%}
|
||||
</span>
|
||||
evaluate_this = <span class="hljs-built_in">true</span>;
|
||||
<span class="hljs-comment">
|
||||
%{
|
||||
Opening (%{) and closing (%}) block comment markers can be within a comment block
|
||||
%}
|
||||
</span>
|
||||
evaluate_this = <span class="hljs-built_in">true</span>;
|
||||
<span class="hljs-comment">
|
||||
%{
|
||||
Indented block comments can be indented
|
||||
or not
|
||||
and whitespace can be added before or after the %{ and %}
|
||||
%}
|
||||
</span>
|
||||
evaluate_this = <span class="hljs-built_in">true</span>;
|
||||
27
vendor/scrivo/highlight.php/test/markup/matlab/block_comment.txt
vendored
Normal file
27
vendor/scrivo/highlight.php/test/markup/matlab/block_comment.txt
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
%{ evaluate_this = false; % Evaluated as regular single-line comment
|
||||
evaluate_this = true;
|
||||
%}
|
||||
|
||||
evaluate_this = true;
|
||||
|
||||
%{
|
||||
This is a multi-line comment
|
||||
evaluate_this = false;
|
||||
%{
|
||||
%}
|
||||
|
||||
evaluate_this = true;
|
||||
|
||||
%{
|
||||
Opening (%{) and closing (%}) block comment markers can be within a comment block
|
||||
%}
|
||||
|
||||
evaluate_this = true;
|
||||
|
||||
%{
|
||||
Indented block comments can be indented
|
||||
or not
|
||||
and whitespace can be added before or after the %{ and %}
|
||||
%}
|
||||
|
||||
evaluate_this = true;
|
||||
40
vendor/scrivo/highlight.php/test/markup/matlab/transpose.expect.txt
vendored
Normal file
40
vendor/scrivo/highlight.php/test/markup/matlab/transpose.expect.txt
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
<span class="hljs-comment">% This use of ' is for transpose:</span>
|
||||
mat2x2 = [<span class="hljs-number">1</span> <span class="hljs-number">2</span>; <span class="hljs-number">3</span> <span class="hljs-number">4</span>]'; <span class="hljs-comment">% transpose of a matrix</span>
|
||||
cell2x2 = {<span class="hljs-number">1</span> <span class="hljs-number">2</span>; <span class="hljs-number">3</span> <span class="hljs-number">4</span>}'; <span class="hljs-comment">% transpose of a cell</span>
|
||||
v=mat2x2'; <span class="hljs-comment">% transpose of a variable</span>
|
||||
v2 = (v')'; <span class="hljs-comment">% two transpose operations</span>
|
||||
foo = <span class="hljs-number">1.</span>'; <span class="hljs-comment">% transpose of scalar 1.</span>
|
||||
|
||||
<span class="hljs-comment">% Nonconjugate transpose uses .'</span>
|
||||
mat2x2 = [<span class="hljs-number">1</span> <span class="hljs-number">2</span>; <span class="hljs-number">3</span> <span class="hljs-number">4</span>].'; <span class="hljs-comment">% of a matrix</span>
|
||||
cell2x2 = {<span class="hljs-number">1</span> <span class="hljs-number">2</span>; <span class="hljs-number">3</span> <span class="hljs-number">4</span>}.'; <span class="hljs-comment">% of a cell</span>
|
||||
v=mat2x2.'; <span class="hljs-comment">% of a variable</span>
|
||||
v2 = (v.').'; <span class="hljs-comment">% two operations</span>
|
||||
foo = <span class="hljs-number">1.</span>.'; <span class="hljs-comment">% of scalar 1.</span>
|
||||
bar = v.''.'.''; <span class="hljs-comment">% mix of transpose operations</span>
|
||||
|
||||
<span class="hljs-comment">% single quote strings:</span>
|
||||
sq1 = <span class="hljs-string">'a single quote string'</span>;
|
||||
sq2 = ...
|
||||
<span class="hljs-string">' abcd '</span>; <span class="hljs-comment">% single quote string starting at column 1</span>
|
||||
sq3 = [<span class="hljs-string">'a'</span>,<span class="hljs-string">'bc'</span>]; <span class="hljs-comment">% array of single quote strings</span>
|
||||
sq4 = {<span class="hljs-string">'a'</span>,<span class="hljs-string">'bc'</span>}; <span class="hljs-comment">% cell of single quote strings</span>
|
||||
|
||||
<span class="hljs-comment">% double quote strings</span>
|
||||
dq1 = <span class="hljs-string">"a double string"</span>;
|
||||
dq2 = ...
|
||||
<span class="hljs-string">" abcd "</span>; <span class="hljs-comment">% double quote string starting at column 1</span>
|
||||
dq3 = [<span class="hljs-string">"a"</span>,<span class="hljs-string">"bc"</span>]; <span class="hljs-comment">% array of double quote strings</span>
|
||||
|
||||
<span class="hljs-comment">% Mixture of strings and transpose</span>
|
||||
c2 = {<span class="hljs-string">'a'</span>,<span class="hljs-string">'bc'</span>}'; <span class="hljs-comment">% transpose of a cell of strings</span>
|
||||
s = [<span class="hljs-string">'a'</span>,<span class="hljs-string">'bc'</span>]'; <span class="hljs-comment">% you can transpose vectors of strings (they are really 'char' arrays)</span>
|
||||
s = s'; <span class="hljs-comment">% and transpose back</span>
|
||||
<span class="hljs-comment">% (s')' is a double transpose of a string</span>
|
||||
x = [(s')', <span class="hljs-string">' xyz '</span>, <span class="hljs-string">'a single quote in a string'', escape \', two quotes in a string'''''</span>];
|
||||
|
||||
s2 = <span class="hljs-string">"abc\"def""ghi"</span>; <span class="hljs-comment">% newer versions of MATLAB support double quoted strings</span>
|
||||
s3 = ([<span class="hljs-string">"abc"</span>, <span class="hljs-string">"defg"</span>]')'; <span class="hljs-comment">% transpose a vectors of quoted string twice</span>
|
||||
s4 = <span class="hljs-string">"abc"</span>!; <span class="hljs-comment">% transpose a quoted string</span>
|
||||
|
||||
b = <span class="hljs-built_in">true</span>' + <span class="hljs-built_in">false</span>'; <span class="hljs-comment">% boolean constants</span>
|
||||
40
vendor/scrivo/highlight.php/test/markup/matlab/transpose.txt
vendored
Normal file
40
vendor/scrivo/highlight.php/test/markup/matlab/transpose.txt
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
% This use of ' is for transpose:
|
||||
mat2x2 = [1 2; 3 4]'; % transpose of a matrix
|
||||
cell2x2 = {1 2; 3 4}'; % transpose of a cell
|
||||
v=mat2x2'; % transpose of a variable
|
||||
v2 = (v')'; % two transpose operations
|
||||
foo = 1.'; % transpose of scalar 1.
|
||||
|
||||
% Nonconjugate transpose uses .'
|
||||
mat2x2 = [1 2; 3 4].'; % of a matrix
|
||||
cell2x2 = {1 2; 3 4}.'; % of a cell
|
||||
v=mat2x2.'; % of a variable
|
||||
v2 = (v.').'; % two operations
|
||||
foo = 1..'; % of scalar 1.
|
||||
bar = v.''.'.''; % mix of transpose operations
|
||||
|
||||
% single quote strings:
|
||||
sq1 = 'a single quote string';
|
||||
sq2 = ...
|
||||
' abcd '; % single quote string starting at column 1
|
||||
sq3 = ['a','bc']; % array of single quote strings
|
||||
sq4 = {'a','bc'}; % cell of single quote strings
|
||||
|
||||
% double quote strings
|
||||
dq1 = "a double string";
|
||||
dq2 = ...
|
||||
" abcd "; % double quote string starting at column 1
|
||||
dq3 = ["a","bc"]; % array of double quote strings
|
||||
|
||||
% Mixture of strings and transpose
|
||||
c2 = {'a','bc'}'; % transpose of a cell of strings
|
||||
s = ['a','bc']'; % you can transpose vectors of strings (they are really 'char' arrays)
|
||||
s = s'; % and transpose back
|
||||
% (s')' is a double transpose of a string
|
||||
x = [(s')', ' xyz ', 'a single quote in a string'', escape \', two quotes in a string'''''];
|
||||
|
||||
s2 = "abc\"def""ghi"; % newer versions of MATLAB support double quoted strings
|
||||
s3 = (["abc", "defg"]')'; % transpose a vectors of quoted string twice
|
||||
s4 = "abc"!; % transpose a quoted string
|
||||
|
||||
b = true' + false'; % boolean constants
|
||||
Reference in New Issue
Block a user