2
/*************************************************************************************
5
* Author: Richard Molitor (richard.molitor@student.kit.edu)
6
* Copyright: (c) 2013 Richard Molitor
7
* Release Version: 1.0.8.12
8
* Date Started: 2013/06/22
10
* Chapel language file for GeSHi.
14
* 2013/06/22 (1.0.8.12)
17
* TODO (updated 2013/06/22)
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' => 'Chapel',
42
'COMMENT_SINGLE' => array(1 => '//'),
43
'COMMENT_MULTI' => array('/*' => '*/'),
44
'COMMENT_REGEXP' => array(
46
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
47
'QUOTEMARKS' => array("'", '"'),
49
'ESCAPE_REGEXP' => array(
52
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
53
GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI | GESHI_NUMBER_FLT_NONSCI_F |
54
GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
58
'atomic', 'begin', 'break', 'class', 'cobegin', 'coforall',
59
'continue', 'do', 'else', 'export', 'extern', 'for', 'forall', 'if',
60
'iter', 'inline', 'label', 'let', 'local', 'module',
61
'otherwise', 'proc', 'record', 'return', 'select', 'serial',
62
'then', 'use', 'var', 'when', 'where', 'while', 'yield'
66
'nil', 'true', 'false'
70
'by', 'delete', 'dmapped', 'domain', 'enum', 'index', 'min',
71
'minloc', 'max', 'maxloc', 'new', 'range', 'reduce', 'scan',
72
'sparse', 'subdomain', 'sync', 'union', 'zip'
76
'config', 'const', 'in', 'inout', 'opaque', 'on', 'out', 'param',
77
'ref', 'single', 'type'
81
'void', 'bool', 'int', 'uint', 'real', 'imag', 'complex', 'string',
86
'(', ')', '{', '}', '[', ']',
87
'+', '-', '*', '/', '%',
93
'CASE_SENSITIVE' => array(
94
GESHI_COMMENTS => false,
103
1 => 'color: #b1b100;',
104
2 => 'color: #000000; font-weight: bold;',
105
3 => 'color: #000066;',
106
4 => 'color: #993333;'
109
1 => 'color: #666666; font-style: italic;',
110
//2 => 'color: #339933;',
111
'MULTI' => 'color: #808080; font-style: italic;'
113
'ESCAPE_CHAR' => array(
114
0 => 'color: #000099; font-weight: bold;',
115
1 => 'color: #000099; font-weight: bold;',
116
2 => 'color: #660099; font-weight: bold;',
117
3 => 'color: #660099; font-weight: bold;',
118
4 => 'color: #660099; font-weight: bold;',
119
5 => 'color: #006699; font-weight: bold;',
123
0 => 'color: #009900;'
126
0 => 'color: #ff0000;'
129
0 => 'color: #0000dd;',
130
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;',
131
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;',
132
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
133
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
134
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
135
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
136
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
139
1 => 'color: #202020;',
140
2 => 'color: #202020;'
143
0 => 'color: #339933;'
158
'OBJECT_SPLITTERS' => array(
163
'STRICT_MODE_APPLIES' => GESHI_NEVER,
164
'SCRIPT_DELIMITERS' => array(
166
'HIGHLIGHT_STRICT_BLOCK' => array(