1 | <?php
|
---|
2 | /*************************************************************************************
|
---|
3 | * scala.php
|
---|
4 | * ----------
|
---|
5 | * Author: Franco Lombardo ([email protected])
|
---|
6 | * Copyright: (c) 2008 Franco Lombardo, Benny Baumann
|
---|
7 | * Release Version: 1.0.8.8
|
---|
8 | * Date Started: 2008/02/08
|
---|
9 | *
|
---|
10 | * Scala language file for GeSHi.
|
---|
11 | *
|
---|
12 | * CHANGES
|
---|
13 | * -------
|
---|
14 | * 2008/02/08 (1.0.7.22)
|
---|
15 | * - First Release
|
---|
16 | *
|
---|
17 | * TODO (updated 2007/04/27)
|
---|
18 | * -------------------------
|
---|
19 | *
|
---|
20 | *************************************************************************************
|
---|
21 | *
|
---|
22 | * This file is part of GeSHi.
|
---|
23 | *
|
---|
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.
|
---|
28 | *
|
---|
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.
|
---|
33 | *
|
---|
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
|
---|
37 | *
|
---|
38 | ************************************************************************************/
|
---|
39 |
|
---|
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' => '\\',
|
---|
47 | 'KEYWORDS' => array(
|
---|
48 | 1 => array(
|
---|
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'
|
---|
57 | ),
|
---|
58 | 2 => array(
|
---|
59 | 'void', 'double', 'int', 'boolean', 'byte', 'short', 'long', 'char', 'float'
|
---|
60 | )
|
---|
61 | ),
|
---|
62 | 'SYMBOLS' => array(
|
---|
63 | '(', ')', '[', ']', '{', '}', '*', '&', '%', '!', ';', '<', '>', '?',
|
---|
64 | '_', ':', '=', '=>', '<<:',
|
---|
65 | '<%', '>:', '#', '@'
|
---|
66 | ),
|
---|
67 | 'CASE_SENSITIVE' => array(
|
---|
68 | GESHI_COMMENTS => false,
|
---|
69 | 1 => true,
|
---|
70 | 2 => true
|
---|
71 | ),
|
---|
72 | 'STYLES' => array(
|
---|
73 | 'KEYWORDS' => array(
|
---|
74 | 1 => 'color: #0000ff; font-weight: bold;',
|
---|
75 | 2 => 'color: #9999cc; font-weight: bold;',
|
---|
76 | ),
|
---|
77 | 'COMMENTS' => array(
|
---|
78 | 1=> 'color: #008000; font-style: italic;',
|
---|
79 | 'MULTI' => 'color: #00ff00; font-style: italic;'
|
---|
80 | ),
|
---|
81 | 'ESCAPE_CHAR' => array(
|
---|
82 | 0 => 'color: #0000ff; font-weight: bold;'
|
---|
83 | ),
|
---|
84 | 'BRACKETS' => array(
|
---|
85 | 0 => 'color: #F78811;'
|
---|
86 | ),
|
---|
87 | 'STRINGS' => array(
|
---|
88 | 0 => 'color: #6666FF;'
|
---|
89 | ),
|
---|
90 | 'NUMBERS' => array(
|
---|
91 | 0 => 'color: #F78811;'
|
---|
92 | ),
|
---|
93 | 'METHODS' => array(
|
---|
94 | 1 => 'color: #000000;',
|
---|
95 | 2 => 'color: #000000;'
|
---|
96 | ),
|
---|
97 | 'SYMBOLS' => array(
|
---|
98 | 0 => 'color: #000080;'
|
---|
99 | ),
|
---|
100 | 'SCRIPT' => array(
|
---|
101 | ),
|
---|
102 | 'REGEXPS' => array(
|
---|
103 | )
|
---|
104 | ),
|
---|
105 | 'URLS' => array(
|
---|
106 | 1 => 'http://scala-lang.org',
|
---|
107 | 2 => ''
|
---|
108 | ),
|
---|
109 | 'OOLANG' => true,
|
---|
110 | 'OBJECT_SPLITTERS' => array(
|
---|
111 | 1 => '.'
|
---|
112 | ),
|
---|
113 | 'REGEXPS' => array(
|
---|
114 | ),
|
---|
115 | 'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
---|
116 | 'SCRIPT_DELIMITERS' => array(
|
---|
117 | ),
|
---|
118 | 'HIGHLIGHT_STRICT_BLOCK' => array(
|
---|
119 | )
|
---|
120 | );
|
---|
121 |
|
---|
122 | ?>
|
---|