ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
dart.php
Go to the documentation of this file.
1<?php
2/*************************************************************************************
3 * dart.php
4 * --------
5 * Author: Edward Hart (edward.dan.hart@gmail.com)
6 * Copyright: (c) 2013 Edward Hart
7 * Release Version: 1.0.8.12
8 * Date Started: 2013/10/25
9 *
10 * Dart language file for GeSHi.
11 *
12 * CHANGES
13 * -------
14 * 2013/10/25
15 * - First Release
16 *
17 * TODO (updated 2013/10/25)
18 * -------------------------
19 * - Highlight standard library types.
20 *
21 *************************************************************************************
22 *
23 * This file is part of GeSHi.
24 *
25 * GeSHi is free software; you can redistribute it and/or modify
26 * it under the terms of the GNU General Public License as published by
27 * the Free Software Foundation; either version 2 of the License, or
28 * (at your option) any later version.
29 *
30 * GeSHi is distributed in the hope that it will be useful,
31 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 * GNU General Public License for more details.
34 *
35 * You should have received a copy of the GNU General Public License
36 * along with GeSHi; if not, write to the Free Software
37 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
38 *
39 ************************************************************************************/
40
42 'LANG_NAME' => 'Dart',
43
44 'COMMENT_SINGLE' => array('//'),
45 'COMMENT_MULTI' => array('/*' => '*/'),
46 'COMMENT_REGEXP' => array(),
47
48 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
49 'QUOTEMARKS' => array("'", '"'),
50 'ESCAPE_CHAR' => '',
51 'ESCAPE_REGEXP' => array(
52 //Simple Single Char Escapes
53 1 => "#\\\\[\\\\nrfbtv\'\"?\n]#i",
54 //Hexadecimal Char Specs
55 2 => "#\\\\x[\da-fA-F]{2}#",
56 //Hexadecimal Char Specs
57 3 => "#\\\\u[\da-fA-F]{4}#",
58 4 => "#\\\\u\\{[\da-fA-F]*\\}#"
59 ),
60 'NUMBERS' =>
64
65 'KEYWORDS' => array(
66 1 => array(
67 'abstract', 'as', 'assert', 'break', 'case', 'catch', 'class',
68 'const', 'continue', 'default', 'do', 'dynamic', 'else', 'export',
69 'extends', 'external', 'factory', 'false', 'final', 'finally',
70 'for', 'get', 'if', 'implements', 'import', 'in', 'is', 'library',
71 'new', 'null', 'operator', 'part', 'return', 'set', 'static',
72 'super', 'switch', 'this', 'throw', 'true', 'try', 'typedef', 'var',
73 'while', 'with'
74 ),
75 2 => array(
76 'double', 'bool', 'int', 'num', 'void'
77 ),
78 ),
79
80 'SYMBOLS' => array(
81 0 => array('(', ')', '{', '}', '[', ']'),
82 1 => array('+', '-', '*', '/', '%', '~'),
83 2 => array('&', '|', '^'),
84 3 => array('=', '!', '<', '>'),
85 4 => array('?', ':'),
86 5 => array('..'),
87 6 => array(';', ',')
88 ),
89
90 'CASE_SENSITIVE' => array(
91 GESHI_COMMENTS => false,
92 1 => true,
93 2 => true,
94 ),
95
96 'STYLES' => array(
97 'KEYWORDS' => array(
98 1 => 'font-weight: bold;',
99 2 => 'color: #445588; font-weight: bold;'
100 ),
101 'COMMENTS' => array(
102 0 => 'color: #999988; font-style: italic;',
103 'MULTI' => 'color: #999988; font-style: italic;'
104 ),
105 'ESCAPE_CHAR' => array(
106 0 => 'color: #000099; font-weight: bold;',
107 1 => 'color: #000099; font-weight: bold;',
108 2 => 'color: #660099; font-weight: bold;',
109 3 => 'color: #660099; font-weight: bold;',
110 4 => 'color: #660099; font-weight: bold;',
111 5 => 'color: #006699; font-weight: bold;',
112 'HARD' => ''
113 ),
114 'STRINGS' => array(
115 0 => 'color: #d14;'
116 ),
117 'NUMBERS' => array(
118 0 => 'color: #009999;',
119 GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
120 GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
121 GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
122 GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
123 GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
124 ),
125 'BRACKETS' => array(''),
126 'METHODS' => array(
127 1 => 'color: #006633;'
128 ),
129 'SYMBOLS' => array(
130 0 => 'font-weight: bold;',
131 1 => 'font-weight: bold;',
132 2 => 'font-weight: bold;',
133 3 => 'font-weight: bold;',
134 4 => 'font-weight: bold;',
135 5 => 'font-weight: bold;',
136 6 => 'font-weight: bold;'
137 ),
138 'REGEXPS' => array(
139 ),
140 'SCRIPT' => array(
141 )
142 ),
143 'URLS' => array(
144 1 => '',
145 2 => ''
146 ),
147 'OOLANG' => true,
148 'OBJECT_SPLITTERS' => array(
149 1 => '.'
150 ),
151 'REGEXPS' => array(
152 ),
153 'STRICT_MODE_APPLIES' => GESHI_NEVER,
154 'SCRIPT_DELIMITERS' => array(
155 ),
156 'HIGHLIGHT_STRICT_BLOCK' => array(
157 ),
158 'TAB_WIDTH' => 4
159);
An exception for terminatinating execution or to throw for unit testing.
$language_data
Definition: dart.php:41
const GESHI_NUMBER_INT_BASIC
Basic number format for integers.
Definition: geshi.php:199
const GESHI_NUMBER_FLT_NONSCI
Number format to highlight floating-point numbers without support for scientific notation.
Definition: geshi.php:223
const GESHI_NUMBER_FLT_NONSCI_F
Number format to highlight floating-point numbers without support for scientific notation.
Definition: geshi.php:225
const GESHI_NUMBER_INT_CSTYLE
Enhanced number format for integers like seen in C.
Definition: geshi.php:201
const GESHI_CAPS_NO_CHANGE
Lowercase keywords found.
Definition: geshi.php:95
const GESHI_NUMBER_HEX_PREFIX
Number format to highlight hex numbers with a prefix 0x.
Definition: geshi.php:217
const GESHI_NUMBER_FLT_SCI_ZERO
Number format to highlight floating-point numbers with support for scientific notation (E) and requir...
Definition: geshi.php:229
const GESHI_COMMENTS
Used in language files to mark comments.
Definition: geshi.php:150
const GESHI_NEVER
#+ @access private
Definition: geshi.php:124
const GESHI_NUMBER_FLT_SCI_SHORT
Number format to highlight floating-point numbers with support for scientific notation (E) and option...
Definition: geshi.php:227