ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
chapel.php
Go to the documentation of this file.
1<?php
2/*************************************************************************************
3 * chapel.php
4 * -----
5 * Author: Richard Molitor (richard.molitor@student.kit.edu)
6 * Copyright: (c) 2013 Richard Molitor
7 * Release Version: 1.0.9.0
8 * Date Started: 2013/06/22
9 *
10 * Chapel language file for GeSHi.
11 *
12 * CHANGES
13 * -------
14 * 2013/06/22 (1.0.8.13)
15 * - First Release
16 *
17 * TODO (updated 2013/06/22)
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
41 'LANG_NAME' => 'Chapel',
42 'COMMENT_SINGLE' => array(1 => '//'),
43 'COMMENT_MULTI' => array('/*' => '*/'),
44 'COMMENT_REGEXP' => array(
45 ),
46 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
47 'QUOTEMARKS' => array("'", '"'),
48 'ESCAPE_CHAR' => '',
49 'ESCAPE_REGEXP' => array(
50 ),
51 'NUMBERS' =>
55 'KEYWORDS' => array(
56 // statements
57 1 => array(
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'
63 ),
64 // literals
65 2 => array(
66 'nil', 'true', 'false'
67 ),
68 // built-in functions
69 3 => array(
70 'by', 'delete', 'dmapped', 'domain', 'enum', 'index', 'min',
71 'minloc', 'max', 'maxloc', 'new', 'range', 'reduce', 'scan',
72 'sparse', 'subdomain', 'sync', 'union', 'zip'
73 ),
74 // built-in types
75 4 => array(
76 'config', 'const', 'in', 'inout', 'opaque', 'on', 'out', 'param',
77 'ref', 'single', 'type'
78 ),
79 // library types
80 5 => array(
81 'void', 'bool', 'int', 'uint', 'real', 'imag', 'complex', 'string',
82 'locale'
83 ),
84 ),
85 'SYMBOLS' => array(
86 '(', ')', '{', '}', '[', ']',
87 '+', '-', '*', '/', '%',
88 '=', '<', '>',
89 '!', '^', '&', '|',
90 '?', ':',
91 ';', ','
92 ),
93 'CASE_SENSITIVE' => array(
94 GESHI_COMMENTS => false,
95 1 => true,
96 2 => true,
97 3 => true,
98 4 => true,
99 5 => true
100 ),
101 'STYLES' => array(
102 'KEYWORDS' => array(
103 1 => 'color: #b1b100;',
104 2 => 'color: #000000; font-weight: bold;',
105 3 => 'color: #000066;',
106 4 => 'color: #993333;'
107 ),
108 'COMMENTS' => array(
109 1 => 'color: #666666; font-style: italic;',
110 //2 => 'color: #339933;',
111 'MULTI' => 'color: #808080; font-style: italic;'
112 ),
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;',
120 'HARD' => '',
121 ),
122 'BRACKETS' => array(
123 0 => 'color: #009900;'
124 ),
125 'STRINGS' => array(
126 0 => 'color: #ff0000;'
127 ),
128 'NUMBERS' => array(
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;'
137 ),
138 'METHODS' => array(
139 1 => 'color: #202020;',
140 2 => 'color: #202020;'
141 ),
142 'SYMBOLS' => array(
143 0 => 'color: #339933;'
144 ),
145 'REGEXPS' => array(
146 ),
147 'SCRIPT' => array(
148 )
149 ),
150 'URLS' => array(
151 1 => '',
152 2 => '',
153 3 => '',
154 4 => '',
155 5 => ''
156 ),
157 'OOLANG' => true,
158 'OBJECT_SPLITTERS' => array(
159 1 => '.',
160 ),
161 'REGEXPS' => array(
162 ),
163 'STRICT_MODE_APPLIES' => GESHI_NEVER,
164 'SCRIPT_DELIMITERS' => array(
165 ),
166 'HIGHLIGHT_STRICT_BLOCK' => array(
167 ),
168 'TAB_WIDTH' => 4
169);
$language_data
Definition: chapel.php:40
An exception for terminatinating execution or to throw for unit testing.
const GESHI_NUMBER_INT_BASIC
Basic number format for integers.
Definition: geshi.php:165
const GESHI_NUMBER_FLT_NONSCI
Number format to highlight floating-point numbers without support for scientific notation.
Definition: geshi.php:189
const GESHI_NUMBER_FLT_NONSCI_F
Number format to highlight floating-point numbers without support for scientific notation.
Definition: geshi.php:191
const GESHI_NUMBER_INT_CSTYLE
Enhanced number format for integers like seen in C.
Definition: geshi.php:167
const GESHI_CAPS_NO_CHANGE
Lowercase keywords found.
Definition: geshi.php:94
const GESHI_NUMBER_BIN_PREFIX_0B
Number format to highlight binary numbers with a prefix 0b (C)
Definition: geshi.php:173
const GESHI_NUMBER_OCT_PREFIX
Number format to highlight octal numbers with a leading zero.
Definition: geshi.php:175
const GESHI_NUMBER_HEX_PREFIX
Number format to highlight hex numbers with a prefix 0x.
Definition: geshi.php:183
const GESHI_NUMBER_FLT_SCI_ZERO
Number format to highlight floating-point numbers with support for scientific notation (E) and requir...
Definition: geshi.php:195
const GESHI_COMMENTS
Used in language files to mark comments.
Definition: geshi.php:149
const GESHI_NEVER
#+ @access private
Definition: geshi.php:123
const GESHI_NUMBER_FLT_SCI_SHORT
Number format to highlight floating-point numbers with support for scientific notation (E) and option...
Definition: geshi.php:193