2 /*************************************************************************************
5 * Author: Franco Lombardo (franco@francolombardo.net)
6 * Copyright: (c) 2008 Franco Lombardo, Benny Baumann
7 * Release Version: 1.0.8.3
8 * Date Started: 2008/02/08
10 * Scala language file for GeSHi.
14 * 2008/02/08 (1.0.7.22)
17 * TODO (updated 2007/04/27)
18 * -------------------------
20 *************************************************************************************
22 * This file is part of GeSHi.
24 * GeSHi is free software; you can redistribute it and/or modify
25 * it under the terms of the GNU General Public License as published by
26 * the Free Software Foundation; either version 2 of the License, or
27 * (at your option) any later version.
29 * GeSHi is distributed in the hope that it will be useful,
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 * GNU General Public License for more details.
34 * You should have received a copy of the GNU General Public License
35 * along with GeSHi; if not, write to the Free Software
36 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
38 ************************************************************************************/
40 $language_data = array (
41 'LANG_NAME' => 'Scala',
42 'COMMENT_SINGLE' => array(1 => '//'),
43 'COMMENT_MULTI' => array('/*' => '*/'),
44 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
45 'QUOTEMARKS' => array("'", '"'),
46 'ESCAPE_CHAR' => '\\',
49 'abstract', 'case', 'catch', 'class', 'def',
50 'do', 'else', 'extends', 'false', 'final',
51 'finally', 'for', 'forSome', 'if', 'implicit',
52 'import', 'match', 'new', 'null', 'object',
53 'override', 'package', 'private', 'protected', 'requires',
54 'return', 'sealed', 'super', 'this', 'throw',
55 'trait', 'try', 'true', 'type', 'val',
56 'var', 'while', 'with', 'yield'
59 'void', 'double', 'int', 'boolean', 'byte', 'short', 'long', 'char', 'float'
63 '(', ')', '[', ']', '{', '}', '*', '&', '%', '!', ';', '<', '>', '?',
64 '_', ':', '=', '=>', '<<:',
67 'CASE_SENSITIVE' => array(
68 GESHI_COMMENTS => false,
74 1 => 'color: #0000ff; font-weight: bold;',
75 2 => 'color: #9999cc; font-weight: bold;',
78 1=> 'color: #008000; font-style: italic;',
79 'MULTI' => 'color: #00ff00; font-style: italic;'
81 'ESCAPE_CHAR' => array(
82 0 => 'color: #0000ff; font-weight: bold;'
85 0 => 'color: #F78811;'
88 0 => 'color: #6666FF;'
91 0 => 'color: #F78811;'
94 1 => 'color: #000000;',
95 2 => 'color: #000000;'
98 0 => 'color: #000080;'
106 1 => 'http://scala-lang.org',
110 'OBJECT_SPLITTERS' => array(
115 'STRICT_MODE_APPLIES' => GESHI_NEVER,
116 'SCRIPT_DELIMITERS' => array(
118 'HIGHLIGHT_STRICT_BLOCK' => array(