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.9
8 * CVS Revision Version: $Revision: 1.11 $
9 * Date Started: 2005/02/09
10 * Last Modified: $Date: 2006/04/23 01:14:41 $
12 * Matlab M-file language file for GeSHi.
17 * - support for the transpose operator
18 * - many keywords added
19 * - links to the matlab documentation at mathworks
20 * by: Olivier Verdier (olivier.verdier@free.fr)
25 *************************************************************************************
27 * This file is part of GeSHi.
29 * GeSHi is free software; you can redistribute it and/or modify
30 * it under the terms of the GNU General Public License as published by
31 * the Free Software Foundation; either version 2 of the License, or
32 * (at your option) any later version.
34 * GeSHi is distributed in the hope that it will be useful,
35 * but WITHOUT ANY WARRANTY; without even the implied warranty of
36 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 * GNU General Public License for more details.
39 * You should have received a copy of the GNU General Public License
40 * along with GeSHi; if not, write to the Free Software
41 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
43 ************************************************************************************/
45 $language_data = array (
46 'LANG_NAME' => 'Matlab M',
47 'COMMENT_SINGLE' => array(1 => '%'),
48 'COMMENT_MULTI' => array(),
49 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
50 'QUOTEMARKS' => array(),
54 'break', 'case', 'catch', 'continue', 'elseif', 'else', 'end', 'for',
55 'function', 'global', 'if', 'otherwise', 'persistent', 'return',
56 'switch', 'try', 'while','...'
601 'waitforbuttonpress',
801 'CASE_SENSITIVE' => array(
802 GESHI_COMMENTS
=> true
,
810 1 => 'color: #0000FF;',
811 2 => 'color: #0000FF;'
814 1 => 'color: #228B22;',
816 'ESCAPE_CHAR' => array(
823 //0 => 'color: #A020F0;'
836 0 => 'color:#A020F0;'
844 2 => 'http://www.mathworks.com/access/helpdesk/help/techdoc/ref/{FNAME}.html',
849 'OBJECT_SPLITTERS' => array(
855 GESHI_SEARCH
=> "([^\w])'([^\\n\\r']*)'",
856 GESHI_REPLACE
=> '\\2',
857 GESHI_MODIFIERS
=> '',
858 GESHI_BEFORE
=> "\\1'",
862 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
863 'SCRIPT_DELIMITERS' => array(
865 'HIGHLIGHT_STRICT_BLOCK' => array(