Warning, /frameworks/syntax-highlighting/autotests/input/highlight.m is written in an unsupported language. File is not indexed.
0001 %%===================================================== 0002 % MATLAB test code for Kate/Kwrite syntax highlighting 0003 %%===================================================== 0004 0005 % Numbers _____________________________________________ 0006 5, 5.5, .1, 0.1, 0.4e5, 1.2e-5, 5i, 5.3i, 6j, .345+3i 0007 5', 5.5', .1', 0.1', 0.4e5', 1.2e-5', 5i', 5.3i', 6j', .345+3i' 0008 0009 % Operators ___________________________________________ 0010 % relational operators 0011 'asdf'~=4, c<=4, d>=4, a<b, a>b, a==b, b||c, b&&c 0012 % elementwise arithmetic operators 0013 a.^b, a.*b a./b, 1:4:5 0014 % single-character binary arithmetic 0015 a+3, a-3, a*2, a^3, a/3, a\3, a|b, a&b 0016 % unary operators 0017 a = ~g; g = @sfdgdsf(sdfsd,345); g.' + 1i.' - ('asdf').' 0018 % separators and delimiter 0019 (asd),[sadf];{asdf},;;,;;;() 0020 % continuation 0021 a = 1+ ... 0022 2; 0023 0024 % Character vectors, strings and adjoint ______________ 0025 % incomplete character vectors 0026 'string 0027 'str'' 0028 'str''ing 0029 % complete character vectors 0030 'string' % simple string 0031 '''' % string containing ' 0032 'str''ing' % one string containing ' 0033 '"' % string containing " 0034 'str"ing' % one string containing " 0035 'string' 'string' % two character vectors 0036 'asdf' 'asdf''' variable % two character vectors and a variable 0037 'asdf''asdf'' fsgdfg' + (asdf)' - 'asdf'.' + []''''.';'' 0038 'sadf'.' % string transpose 0039 % adjoint 0040 {'asdf'}' + 1 0041 ('asdf')' + 1 0042 ['asdf']' + 1 0043 '' var''' % empty string, var with >1 adjoints 0044 [5]'*{5}'*('asd')'.'+(5)'*6'*asdf'*asdf'.' % many adjoints 0045 A'*B + 1 % adjoint 0046 A.'*B + 1 % transpose 0047 A.'.'*B + 1 % double transpose 0048 A'.' + 1 % adjoint, then transpose 0049 A.'' % transpose, then adjoint 0050 % incomplete strings 0051 "string 0052 "str"" 0053 "str""ing 0054 % complete strings 0055 "string" % simple string 0056 "'" % string containing ' 0057 "str'ing" % one string containing ' 0058 """" % string containing " 0059 "str""ing" % one string containing " 0060 "string" "string" % two strings 0061 "asdf" "asdf""" variable % two strings and a variable 0062 0063 % System command ______________________________________ 0064 !hostname 0065 !cp * /tmp 0066 0067 % Reserved keywords ___________________________________ 0068 function, persistent, global 0069 switch, case, otherwise 0070 if, else, elseif 0071 try, catch 0072 for, while, break, continue 0073 end, return 0074 function, FUNCTION, Function % case sensitive!