From: <car...@us...> - 2012-05-28 11:31:56
|
Revision: 10531 http://octave.svn.sourceforge.net/octave/?rev=10531&view=rev Author: carandraug Date: 2012-05-28 11:31:45 +0000 (Mon, 28 May 2012) Log Message: ----------- GeSHi highlighting: * comments on file * added URL * made keywords match case insensitive * improved pkg regexp * swapped keyword #1 with #4 to to workaround GeSHi bug * removed octave deprecated functions * removed attempt to highlight complex numbers * fixed indentation problem Modified Paths: -------------- trunk/octave-forge/admin/langfiles/octave.php Modified: trunk/octave-forge/admin/langfiles/octave.php =================================================================== --- trunk/octave-forge/admin/langfiles/octave.php 2012-05-28 10:35:46 UTC (rev 10530) +++ trunk/octave-forge/admin/langfiles/octave.php 2012-05-28 11:31:45 UTC (rev 10531) @@ -6,17 +6,20 @@ * Juan Pablo Carbajal (car...@if...) * Copyright: (c) 2012 Carnë Draug * (c) 2012 Juan Pablo Carbajal - * Release Version: 1.0.0 + * Release Version: 1.0.8.11 * Date Started: 2012/05/22 * * GNU/Octave M-file language file for GeSHi. * + * This file was heavily based on octave.lang from gtksourceview. If bugs are + * found and/or fixed on this file, please send them to the gtksourceview + * project or e-mail them to this file authors. Thanks in advance + * * CHANGES * ------- - * 2012/05/22 (1.0.0) + * 2012/05/22 (1.0.8.11) * - First Release * - * ************************************************************************************* * * This file is part of GeSHi. @@ -39,20 +42,21 @@ $language_data = array ( 'LANG_NAME' => 'GNU/Octave', - 'COMMENT_SINGLE' => array(1=> '#', 2 => '%'), - // we really can't use this since these characters need to be alone (or with - // whitespace) on a line. We will have to use regexp + 'COMMENT_SINGLE' => array(1 => '#', 2 => '%'), + // we can't use COMMENT_MULTI since start and end of block comments need to + // be alone on the line (optionally, with whitespace). See COMMENT_REGEXP 'COMMENT_MULTI' => array(), + // we can't use QUOTEMARKS, not even HARDQUOTE, see COMMENT_REGEXP 'QUOTEMARKS' => array(), + 'ESCAPE_CHAR' => '', 'COMMENT_REGEXP' => array( - // Single quote strings: we really can't use QUOTEMARKS here since new + // Single quote strings: we can't use QUOTEMARKS here since new // lines will break the string. Plus, single quote strings do not even // allow for continuation markers, only double quote strings allow it. // Also, to do not misdetect the transpose operator ' as the start of a // string we assert to not follow a variable name (letters, digits and // underscores) or a closing bracket (round, square or curly) or a dot // (to form the array transpose operator ".'" ). - // see the source of octave.lang of gtksourceview 3 => "/(?<![0-9a-zA-Z_\)\]}\.])'.*?'/", // Double quote strings: we also can't use QUOTEMARKS here (see single // line quotes). However, with double quote strings both \ and ... can @@ -64,6 +68,12 @@ // comments on the first and last line of source) and make . also match // a newline 5 => "/^\s*?[%#]{\s*?$.*?^\s*?[%#]}\s*?$/ms", + // Packaging system: comes here so that pkg can also be used in the + // function form. The list of pkg commands is optional to the match so + // that at least pkg is highlighted if new commands are implemented + 6 => "/\bpkg(?!\s*\()\s+((un)?install|update|(un)?load|list|(global|local)_list|describe|prefix|(re)?build)?\b/", + // Function handles + 7 => "/@([a-z_][a-z1-9_]*)?/i", ), 'NUMBERS' => GESHI_NUMBER_INT_BASIC | @@ -71,12 +81,15 @@ GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_SCI_ZERO, 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, - 'ESCAPE_CHAR' => '', 'KEYWORDS' => array( - // Data types + // Reserved words 1 => array( - 'cell', 'char', 'double', 'uint8', 'uint16', 'uint32', 'uint64', - 'int8','int16', 'int32', 'int64', 'logical', 'single', 'struct' + 'break', 'case', 'catch', 'continue', 'do', 'else', 'elseif', 'end', + 'end_try_catch', 'end_unwind_protect', 'endfor', 'endfunction', + 'endif', 'endparfor', 'endswitch', 'endwhile', 'for', 'function', + 'if', 'otherwise', 'parfor', 'return', + 'switch', 'try', 'until', 'unwind_protect', + 'unwind_protect_cleanup', 'varargin', 'varargout', 'while' ), // Storage type 2 => array( @@ -84,14 +97,10 @@ ), // Internal variable 3 => array('ans'), - // Reserved words + // Data types 4 => array( - 'break', 'case', 'catch', 'continue', 'do', 'else', 'elseif', 'end', - 'end_try_catch', 'end_unwind_protect', 'endfor', 'endfunction', - 'endif', 'endparfor', 'endswitch', 'endwhile', 'for', 'function', - 'if', 'otherwise', 'parfor', 'return', - 'switch', 'try', 'until', 'unwind_protect', - 'unwind_protect_cleanup', 'varargin', 'varargout', 'while' + 'cell', 'char', 'double', 'uint8', 'uint16', 'uint32', 'uint64', + 'int8','int16', 'int32', 'int64', 'logical', 'single', 'struct' ), // Built in 5 => array( @@ -187,38 +196,38 @@ 'acscd', 'acsch', 'addpref', 'addtodate', 'allchild', 'amd', 'ancestor', 'anova', 'arch_fit', 'arch_rnd', 'arch_test', 'area', 'arma_rnd', 'asctime', 'asec', 'asecd', 'asech', 'asind', - 'assert', 'atand', 'autocor', 'autocov', 'autoreg_matrix', 'autumn', + 'assert', 'atand', 'autoreg_matrix', 'autumn', 'axes', 'axis', 'balance', 'bar', 'barh', 'bartlett', 'bartlett_test', - 'base2dec', 'beep', 'bessel', 'besselj', 'beta', 'betacdf', 'betai', + 'base2dec', 'beep', 'bessel', 'besselj', 'beta', 'betacdf', 'betainc', 'betainv', 'betaln', 'betapdf', 'betarnd', 'bicg', 'bicgstab', 'bicubic', 'bin2dec', 'bincoeff', 'binocdf', 'binoinv', 'binopdf', 'binornd', 'bitcmp', 'bitget', 'bitset', 'blackman', 'blanks', 'blkdiag', 'bone', 'box', 'brighten', 'bsxfun', 'bug_report', 'bunzip2', 'bzip2', 'calendar', 'cart2pol', 'cart2sph', 'cast', 'cauchy_cdf', 'cauchy_inv', 'cauchy_pdf', 'cauchy_rnd', - 'caxis', 'ccolamd', 'cell2mat', 'celldisp', 'cellfun', 'cellidx', + 'caxis', 'ccolamd', 'cell2mat', 'celldisp', 'cellfun', 'center', 'cgs', 'chi2cdf', 'chi2inv', 'chi2pdf', 'chi2rnd', 'chisquare_test_homogeneity', 'chisquare_test_independence', 'chol', - 'chop', 'circshift', 'cla', 'clabel', 'clf', 'clg', 'clock', + 'chop', 'circshift', 'cla', 'clabel', 'clf', 'clock', 'cloglog', 'close', 'closereq', 'colamd', 'colloc', 'colon', 'colorbar', 'colormap', 'colperm', 'colstyle', 'comet', 'comet3', 'comma', 'common_size', 'commutation_matrix', 'compan', 'compare_versions', 'compass', 'computer', 'cond', 'condest', 'contour', 'contour3', 'contourc', 'contourf', 'contrast', 'conv', - 'conv2', 'convhull', 'convhulln', 'cool', 'copper', 'copyfile', 'cor', - 'cor_test', 'corr', 'corrcoef', 'cosd', 'cot', 'cotd', 'coth', 'cov', - 'cplxpair', 'cquad', 'cross', 'csc', 'cscd', 'csch', 'cstrcat', - 'csvread', 'csvwrite', 'ctime', 'cumtrapz', 'curl', 'cut', 'cylinder', + 'conv2', 'convhull', 'convhulln', 'cool', 'copper', 'copyfile', + 'cor_test', 'corr', 'cosd', 'cot', 'cotd', 'coth', 'cov', + 'cplxpair', 'cross', 'csc', 'cscd', 'csch', 'cstrcat', + 'csvread', 'csvwrite', 'ctime', 'cumtrapz', 'curl', 'cylinder', 'daspect', 'daspk', 'dasrt', 'dassl', 'date', 'datenum', 'datestr', 'datetick', 'datevec', 'dblquad', 'deal', 'deblank', 'debug', 'dec2base', 'dec2bin', 'dec2hex', 'deconv', 'del2', 'delaunay', 'delaunay3', 'delaunayn', 'delete', 'demo', 'det', 'detrend', 'diffpara', 'diffuse', 'dir', 'discrete_cdf', 'discrete_inv', - 'discrete_pdf', 'discrete_rnd', 'dispatch', 'display', 'divergence', + 'discrete_pdf', 'discrete_rnd', 'display', 'divergence', 'dlmread', 'dlmwrite', 'dmperm', 'doc', 'dos', 'dot', 'dsearch', 'dsearchn', 'dump_prefs', 'duplication_matrix', 'durbinlevinson', 'edit', 'eig', 'eigs', 'ellipsoid', 'empirical_cdf', 'empirical_inv', - 'empirical_pdf', 'empirical_rnd', 'eomday', 'error_text', 'errorbar', + 'empirical_pdf', 'empirical_rnd', 'eomday', 'errorbar', 'etime', 'etreeplot', 'example', 'expcdf', 'expinv', 'expm', 'exppdf', 'exprnd', 'ezcontour', 'ezcontourf', 'ezmesh', 'ezmeshc', 'ezplot', 'ezplot3', 'ezpolar', 'ezsurf', 'ezsurfc', 'f_test_regression', @@ -227,13 +236,13 @@ 'fileattrib', 'fileparts', 'fileread', 'fill', 'filter', 'filter2', 'find', 'findall', 'findobj', 'findstr', 'finv', 'flag', 'flipdim', 'fliplr', 'flipud', 'fminbnd', 'fminunc', 'fpdf', 'fplot', - 'fractdiff', 'freqz', 'freqz_plot', 'frnd', 'fsolve', 'fstat', - 'fullfile', 'fzero', 'gamcdf', 'gaminv', 'gammai', 'gammainc', + 'fractdiff', 'freqz', 'freqz_plot', 'frnd', 'fsolve', + 'fullfile', 'fzero', 'gamcdf', 'gaminv', 'gammainc', 'gampdf', 'gamrnd', 'gca', 'gcbf', 'gcbo', 'gcd', 'gcf', 'gen_doc_cache', 'genvarname', 'geocdf', 'geoinv', 'geopdf', 'geornd', 'get_first_help_sentence', 'getappdata', 'getfield', 'getgrent', 'getpref', 'getpwent', 'getrusage', 'ginput', 'givens', 'glpk', - 'glpkmex', 'gls', 'gmap40', 'gmres', 'gnuplot_binary', 'gplot', + 'gls', 'gmap40', 'gmres', 'gnuplot_binary', 'gplot', 'gradient', 'graphics_toolkit', 'gray', 'gray2ind', 'grid', 'griddata', 'griddata3', 'griddatan', 'gtext', 'guidata', 'guihandles', 'gunzip', 'gzip', 'hadamard', 'hamming', 'hankel', @@ -244,16 +253,16 @@ 'imagesc', 'imfinfo', 'imread', 'imshow', 'imwrite', 'ind2gray', 'ind2rgb', 'index', 'info', 'inpolygon', 'inputname', 'int2str', 'interp1', 'interp1q', 'interp2', 'interp3', 'interpft', 'interpn', - 'intersect', 'intwarning', 'inv', 'invhilb', 'iqr', - 'is_duplicate_entry', 'is_global', 'is_leap_year', 'is_valid_file_id', + 'intersect', 'inv', 'invhilb', 'iqr', + 'is_leap_year', 'is_valid_file_id', 'isa', 'isappdata', 'iscolumn', 'isdefinite', 'isdeployed', 'isdir', 'isequal', 'isequalwithequalnans', 'isfigure', 'ishermitian', 'ishghandle', 'ishold', 'isletter', 'ismac', 'ismember', 'isocolors', 'isonormals', 'isosurface', 'ispc', 'ispref', 'isprime', 'isprop', - 'isrow', 'isscalar', 'issquare', 'isstr', 'isstrprop', 'issymmetric', + 'isrow', 'isscalar', 'issquare', 'isstrprop', 'issymmetric', 'isunix', 'isvector', 'jet', 'kendall', 'kolmogorov_smirnov_cdf', 'kolmogorov_smirnov_test', 'kolmogorov_smirnov_test_2', 'kron', - 'kruskal_wallis_test', 'krylov', 'krylovb', 'kurtosis', 'laplace_cdf', + 'kruskal_wallis_test', 'krylov', 'kurtosis', 'laplace_cdf', 'laplace_inv', 'laplace_pdf', 'laplace_rnd', 'lcm', 'legend', 'legendre', 'license', 'lin2mu', 'line', 'linkprop', 'list_primes', 'loadaudio', 'loadobj', 'logistic_cdf', 'logistic_inv', @@ -272,11 +281,11 @@ 'ocean', 'ols', 'onenormest', 'optimget', 'optimset', 'orderfields', 'orient', 'orth', 'pack', 'paren', 'pareto', 'parseparams', 'pascal', 'patch', 'pathdef', 'pbaspect', 'pcg', 'pchip', 'pcolor', 'pcr', - 'peaks', 'periodogram', 'perl', 'perms', 'perror', 'pie', 'pie3', - 'pink', 'pinv', 'planerot', 'playaudio', 'plot', 'plot3', + 'peaks', 'periodogram', 'perl', 'perms', 'pie', 'pie3', + 'pink', 'pinv', 'pkg', 'planerot', 'playaudio', 'plot', 'plot3', 'plotmatrix', 'plotyy', 'poisscdf', 'poissinv', 'poisspdf', 'poissrnd', 'pol2cart', 'polar', 'poly', 'polyaffine', 'polyarea', - 'polyder', 'polyderiv', 'polyfit', 'polygcd', 'polyint', 'polyout', + 'polyder', 'polyfit', 'polygcd', 'polyint', 'polyout', 'polyreduce', 'polyval', 'polyvalm', 'postpad', 'pow2', 'powerset', 'ppder', 'ppint', 'ppjumps', 'ppplot', 'ppval', 'pqpnonneg', 'prctile', 'prepad', 'primes', 'print', 'printAllBuiltins', @@ -286,15 +295,15 @@ 'qz', 'qzhess', 'rainbow', 'rand', 'randi', 'range', 'rank', 'ranks', 'rat', 'rcond', 'reallog', 'realpow', 'realsqrt', 'record', 'rectangle', 'rectint', 'recycle', 'refresh', 'refreshdata', 'regexp', - 'regexptranslate', 'replot', 'repmat', 'residue', 'rgb2hsv', + 'regexptranslate', 'repmat', 'residue', 'rgb2hsv', 'rgb2ind', 'rgb2ntsc', 'ribbon', 'rindex', 'rmappdata', 'rmpref', 'roots', 'rose', 'rosser', 'rot90', 'rotdim', 'rref', 'run', 'run_count', 'run_test', 'rundemos', 'runlength', 'runtests', - 'saveas', 'saveaudio', 'saveimage', 'saveobj', 'savepath', 'scatter', + 'saveas', 'saveaudio', 'saveobj', 'savepath', 'scatter', 'scatter3', 'schur', 'sec', 'secd', 'sech', 'semicolon', 'semilogx', 'semilogxerr', 'semilogy', 'semilogyerr', 'setappdata', 'setaudio', - 'setdiff', 'setfield', 'setpref', 'setstr', 'setxor', 'shading', - 'shell_cmd', 'shg', 'shift', 'shiftdim', 'sign_test', 'sinc', 'sind', + 'setdiff', 'setfield', 'setpref', 'setxor', 'shading', + 'shg', 'shift', 'shiftdim', 'sign_test', 'sinc', 'sind', 'sinetone', 'sinewave', 'skewness', 'slice', 'sombrero', 'sortrows', 'spaugment', 'spconvert', 'spdiags', 'spearman', 'spectral_adf', 'spectral_xdf', 'specular', 'speed', 'spencer', 'speye', 'spfun', @@ -302,12 +311,12 @@ 'sprand', 'sprandn', 'sprandsym', 'spring', 'spstats', 'spy', 'sqp', 'sqrtm', 'stairs', 'statistics', 'std', 'stdnormal_cdf', 'stdnormal_inv', 'stdnormal_pdf', 'stdnormal_rnd', 'stem', 'stem3', - 'stft', 'str2double', 'str2num', 'strcat', 'strchr', 'strerror', + 'stft', 'str2double', 'str2num', 'strcat', 'strchr', 'strfind', 'strjust', 'strmatch', 'strread', 'strsplit', 'strtok', - 'strtrim', 'strtrunc', 'structfun', 'studentize', 'sub2ind', + 'strtrim', 'strtrunc', 'structfun', 'sub2ind', 'subplot', 'subsindex', 'subspace', 'substr', 'substruct', 'summer', 'surf', 'surface', 'surfc', 'surfl', 'surfnorm', 'svd', 'svds', - 'swapbytes', 'syl', 'sylvester_matrix', 'symbfact', 'symrcm', + 'swapbytes', 'syl', 'symbfact', 'symrcm', 'symvar', 'synthesis', 't_test', 't_test_2', 't_test_regression', 'table', 'tand', 'tar', 'tcdf', 'tempdir', 'tempname', 'test', 'text', 'textread', 'textscan', 'time', 'tinv', 'title', 'toeplitz', 'tpdf', @@ -319,11 +328,11 @@ 'unidcdf', 'unidinv', 'unidpdf', 'unidrnd', 'unifcdf', 'unifinv', 'unifpdf', 'unifrnd', 'unimplemented', 'union', 'unique', 'unix', 'unmkpp', 'unpack', 'untabify', 'untar', 'unwrap', 'unzip', - 'urlwrite', 'usejava', 'validatestring', 'values', 'vander', 'var', + 'urlwrite', 'usejava', 'validatestring', 'vander', 'var', 'var_test', 'vech', 'ver', 'version', 'view', 'voronoi', 'voronoin', 'waitbar', 'waitforbuttonpress', 'warning_ids', 'wavread', 'wavwrite', - 'wblcdf', 'wblinv', 'wblpdf', 'wblrnd', 'weekday', 'weibcdf', - 'weibinv', 'weibpdf', 'weibrnd', 'welch_test', 'what', 'which', + 'wblcdf', 'wblinv', 'wblpdf', 'wblrnd', 'weekday', + 'welch_test', 'what', 'which', 'white', 'whitebg', 'wienrnd', 'wilcoxon_test', 'wilkinson', 'winter', 'xlabel', 'xlim', 'xor', 'ylabel', 'ylim', 'yulewalker', 'z_test', 'z_test_2', 'zip', 'zlabel', 'zlim', 'zscore', 'airy', 'arrayfun', @@ -363,7 +372,7 @@ // Private Octave functions 8 => array( '__all_opts__', '__contourc__', '__delaunayn__', '__dispatch__', - '__dsearchn__', '__error_text__', '__finish__', '__fltk_uigetfile__', + '__dsearchn__', '__finish__', '__fltk_uigetfile__', '__glpk__', '__gnuplot_drawnow__', '__init_fltk__', '__init_gnuplot__', '__lin_interpn__', '__magick_read__', '__makeinfo__', '__pchip_deriv__', '__plt_get_axis_arg__', '__qp__', @@ -387,7 +396,10 @@ 'WIFSTOPPED', 'WNOHANG', 'WSTOPSIG', 'WTERMSIG', 'WUNTRACED' ), // Constant functions - 10 => array ('e','eps','inf','nan','NA','pi','i','j','true','false'), + 10 => array ( + 'e', 'eps', 'inf', 'Inf', 'nan', 'NaN', 'NA', 'pi', 'i', 'I', 'j', + 'J', 'true', 'false' + ), ), 'SYMBOLS' => array( // Comparison & logical @@ -408,121 +420,86 @@ 4 => array(':'), // Delimiters 5 => array(',', '...', ';'), - ), + ), 'CASE_SENSITIVE' => array( - GESHI_COMMENTS => false, - 1 => false, - 2 => false, - 3 => false, - 4 => false, - 5 => false, - 6 => false, - 7 => false, - 8 => false, - 9 => false, - 10 => false + GESHI_COMMENTS => true, + 1 => true, + 2 => true, + 3 => true, + 4 => true, + 5 => true, + 6 => true, + 7 => true, + 8 => true, + 9 => true, + 10 => true, ), 'URLS' => array( 1 => '', 2 => '', 3 => '', - 4 => '', - 5 => '', - 6 => '', + 4 => 'http://octave.sourceforge.net/octave/function/{FNAME}.html', + 5 => 'http://octave.sourceforge.net/octave/function/{FNAME}.html', + 6 => 'http://octave.sourceforge.net/octave/function/{FNAME}.html', 7 => '', 8 => '', - 9 => '', - 10 => '' + 9 => 'http://octave.sourceforge.net/octave/function/{FNAME}.html', + 10 => 'http://octave.sourceforge.net/octave/function/{FNAME}.html', ), 'OOLANG' => true, 'OBJECT_SPLITTERS' => array( 1 => '.', - 2 => '::' ), - 'REGEXPS' => array( - // Complex numbers - 1 => array( - GESHI_SEARCH => '([+-]?\d+(\.\d+)?(e\d+)?\s*[+-]\s*([ij]\*?)?\d+(\.\d+)?(e\d+)?(\*?[ij])?)', - GESHI_REPLACE => '\\1', - GESHI_MODIFIERS => 'si', - GESHI_BEFORE => '', - GESHI_AFTER => '' - ), - //Function handle - 2 => array( - GESHI_SEARCH => '(@([A-Za-z_][A-Za-z1-9_]*)?)', - GESHI_REPLACE => '\\1', - GESHI_MODIFIERS => '', - GESHI_BEFORE => '', - GESHI_AFTER => '' - ), - //Packaging system - 3 => array( - GESHI_SEARCH => '((\b)pkg(?!(\s)*\()(\s)+(((un)?install|(un)?load|list|(global|local)_list|describe|prefix|(re)?build)(\b))?)', - GESHI_REPLACE => '\\1', - GESHI_MODIFIERS => '', - GESHI_BEFORE => '', - GESHI_AFTER => '' - ) - ), + 'REGEXPS' => array(), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array(), 'HIGHLIGHT_STRICT_BLOCK' => array(), 'STYLES' => array( - 'KEYWORDS' => array( - 1 => 'color: #2E8B57; font-weight:bold;', // Data types - 2 => 'color: #2E8B57;', // Storage type - 3 => 'color: #0000FF; font-weight:bold;', // Internal variable - 4 => 'color: #990000; font-weight:bold;', // Reserved words - 5 => 'color: #008A8C; font-weight:bold;', // Built-in - 6 => 'color: #008A8C;', // Octave functions - 9 => 'color: #000000; font-weight:bold;', // Builtin Global Variables - 10 => 'color: #008A8C; font-weight:bold;' // Constant functions - ), 'COMMENTS' => array( - 1 => 'color: #0000FF; font-style: italic;', // single quote strings - 2 => 'color: #0000FF; font-style: italic;', // double quote strings + 1 => 'color: #0000FF; font-style: italic;', // comments with # + 2 => 'color: #0000FF; font-style: italic;', // comments with % 3 => 'color: #FF00FF; font-style: italic;', // single quote strings 4 => 'color: #FF00FF; font-style: italic;', // double quote strings 5 => 'color: #0000FF; font-style: italic;', // block comments - 'MULTI' => 'color: #0000FF; font-style: italic;' + 6 => 'color: #996600; font-weight:bold;', // packaging system + 7 => 'color: #006600; font-weight:bold;', // function handles + 'MULTI' => 'color: #0000FF; font-style: italic;', ), - 'ESCAPE_CHAR' => array( - 0 => '' + 'KEYWORDS' => array( + 1 => 'color: #990000; font-weight:bold;', // Reserved words + 2 => 'color: #2E8B57;', // Storage type + 3 => 'color: #0000FF; font-weight:bold;', // Internal variable + 4 => 'color: #2E8B57; font-weight:bold;', // Data types + 5 => 'color: #008A8C; font-weight:bold;', // Built-in + 6 => 'color: #008A8C;', // Octave functions + 9 => 'color: #000000; font-weight:bold;', // Builtin Global Variables + 10 => 'color: #008A8C; font-weight:bold;', // Constant functions ), + 'ESCAPE_CHAR' => array(), 'BRACKETS' => array( - 0 => 'color: #080;' + 0 => 'color: #080;', ), 'STRINGS' => array( - 0 => 'color: #A020F0;' + // strings were specified on the COMMENT_REGEXP section ), 'NUMBERS' => array( 0 => 'color: #cc66cc;', GESHI_NUMBER_OCT_PREFIX => 'color: #208080;', GESHI_NUMBER_HEX_PREFIX => 'color: #208080;', - GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;' + GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;', ), - 'METHODS' => array( - 1 => '', - 2 => '' - ), + 'METHODS' => array(), 'SYMBOLS' => array( - 0 => 'color: #FF9696; font-weight:bold;', // Comparison & logical - 1 => 'color: #CC0000; font-weight:bold;', // Aritmethical - 2 => 'color: #993333; font-weight:bold;', // Elementwise arithmetical - 3 => 'color: #FF0000; font-weight:bold;', // Arithmetical & assignation - 4 => 'color: #33F;', // Indexer - 5 => 'color: #33F;' // Delimiters + 0 => 'color: #FF9696; font-weight:bold;', // Comparison & logical + 1 => 'color: #CC0000; font-weight:bold;', // Aritmethical + 2 => 'color: #993333; font-weight:bold;', // Elementwise arithmetical + 3 => 'color: #FF0000; font-weight:bold;', // Arithmetical & assignation + 4 => 'color: #33F;', // Indexer + 5 => 'color: #33F;', // Delimiters ), - 'REGEXPS' => array( - 1 => 'color: #9966FF; font-weight:bold;', // Complex number - 2 => 'color: #006600; font-weight:bold;', //Function handle - 3 => 'color: #996600; font-weight:bold;', // Package manager - ), - 'SCRIPT' => array( - 0 => '' - ) - ) + 'REGEXPS' => array(), + 'SCRIPT' => array(), + ), ); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |