notepad-plus-plus/lexilla/test/examples/matlab/Issue18_EscapeSequence.m.ma...

17 lines
552 B
Plaintext
Raw Normal View History

{7}a{6}={8}""""{6};{0}
{7}b{6}={3}1{6};{0}
{7}c{6}={5}'\'{6};{0}
{7}d{6}={3}2{6};{0}
{7}e{6}={8}"\"{6};{0}
{7}f{6}={3}3{6};{0}
{1}%" this should be a comment (colored as such), instead it closes the string{0}
{7}g{6}={8}"
h=123;
%"{0} {7}this{0} {7}is{0} {7}a{0} {7}syntax{0} {7}error{0} {7}in{0} {7}Matlab{0} {6}({7}about{0} {5}'g'{6}),{0}
{1}% followed by a valid assignment (of 'h'){0}
{1}% Instead, 'h' is colored as part of the string{0}
{1}% Octave terminates string at 3rd ", Matlab at 4th{0}
{7}i{6}={8}"\"{0} {8}"; % "{0} {1}%{0}
{1}% end{0}