2 /*************************************************************************************
5 * Author: Florian Knorn (floz@gmx.de)
6 * Copyright: (c) 2004 Florian Knorn (http://www.florian-knorn.com)
7 * Release Version: 1.0.7.19
8 * Date Started: 2005/02/09
10 * Matlab M-file language file for GeSHi.
15 * - support for the transpose operator
16 * - many keywords added
17 * - links to the matlab documentation at mathworks
18 * by: Olivier Verdier (olivier.verdier@free.fr)
23 *************************************************************************************
25 * This file is part of GeSHi.
27 * GeSHi is free software; you can redistribute it and/or modify
28 * it under the terms of the GNU General Public License as published by
29 * the Free Software Foundation; either version 2 of the License, or
30 * (at your option) any later version.
32 * GeSHi is distributed in the hope that it will be useful,
33 * but WITHOUT ANY WARRANTY; without even the implied warranty of
34 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 * GNU General Public License for more details.
37 * You should have received a copy of the GNU General Public License
38 * along with GeSHi; if not, write to the Free Software
39 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
41 ************************************************************************************/
43 $language_data = array (
44 'LANG_NAME' => 'Matlab M',
45 'COMMENT_SINGLE' => array(1 => '%'),
46 'COMMENT_MULTI' => array(),
47 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
48 'QUOTEMARKS' => array(),
52 'break', 'case', 'catch', 'continue', 'elseif', 'else', 'end', 'for',
53 'function', 'global', 'if', 'otherwise', 'persistent', 'return',
54 'switch', 'try', 'while','...'
599 'waitforbuttonpress',
799 'CASE_SENSITIVE' => array(
800 GESHI_COMMENTS
=> true
,
808 1 => 'color: #0000FF;',
809 2 => 'color: #0000FF;'
812 1 => 'color: #228B22;',
814 'ESCAPE_CHAR' => array(
821 //0 => 'color: #A020F0;'
834 0 => 'color:#A020F0;'
842 2 => 'http://www.mathworks.com/access/helpdesk/help/techdoc/ref/{FNAME}.html',
847 'OBJECT_SPLITTERS' => array(
853 GESHI_SEARCH
=> "([^\w])'([^\\n\\r']*)'",
854 GESHI_REPLACE
=> '\\2',
855 GESHI_MODIFIERS
=> '',
856 GESHI_BEFORE
=> "\\1'",
860 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
861 'SCRIPT_DELIMITERS' => array(
863 'HIGHLIGHT_STRICT_BLOCK' => array(