1 | <?php
|
---|
2 | /*************************************************************************************
|
---|
3 | * oxygene.php
|
---|
4 | * ----------
|
---|
5 | * Author: Carlo Kok ([email protected]), Jï¿œrja Norbert ([email protected]), Benny Baumann ([email protected])
|
---|
6 | * Copyright: (c) 2004 Jï¿œrja Norbert, Benny Baumann ([email protected]), Nigel McNie (http://qbnz.com/highlighter)
|
---|
7 | * Release Version: 1.0.8.8
|
---|
8 | * Date Started: 2010/01/11
|
---|
9 | *
|
---|
10 | * Delphi Prism (Oxygene) language file for GeSHi.
|
---|
11 | * Based on the original Delphi language file.
|
---|
12 | *
|
---|
13 | * CHANGES
|
---|
14 | * -------
|
---|
15 | * 2010/01/11 (1.0.0)
|
---|
16 | * - First Release
|
---|
17 | *
|
---|
18 | *************************************************************************************
|
---|
19 | *
|
---|
20 | * This file is part of GeSHi.
|
---|
21 | *
|
---|
22 | * GeSHi is free software; you can redistribute it and/or modify
|
---|
23 | * it under the terms of the GNU General Public License as published by
|
---|
24 | * the Free Software Foundation; either version 2 of the License, or
|
---|
25 | * (at your option) any later version.
|
---|
26 | *
|
---|
27 | * GeSHi is distributed in the hope that it will be useful,
|
---|
28 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
29 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
30 | * GNU General Public License for more details.
|
---|
31 | *
|
---|
32 | * You should have received a copy of the GNU General Public License
|
---|
33 | * along with GeSHi; if not, write to the Free Software
|
---|
34 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
35 | *
|
---|
36 | ************************************************************************************/
|
---|
37 |
|
---|
38 | $language_data = array (
|
---|
39 | 'LANG_NAME' => 'Oxygene (Delphi Prism)',
|
---|
40 | 'COMMENT_SINGLE' => array(1 => '//'),
|
---|
41 | 'COMMENT_MULTI' => array('(*' => '*)', '{' => '}'),
|
---|
42 | //Compiler directives
|
---|
43 | 'COMMENT_REGEXP' => array(2 => '/{\\$.*?}|\\(\\*\\$.*?\\*\\)/U'),
|
---|
44 | 'CASE_KEYWORDS' => 0,
|
---|
45 | 'QUOTEMARKS' => array("'"),
|
---|
46 | 'ESCAPE_CHAR' => '',
|
---|
47 | 'KEYWORDS' => array(
|
---|
48 | 1 => array(
|
---|
49 | 'and', 'begin', 'case', 'const', 'div', 'do', 'downto', 'else',
|
---|
50 | 'end', 'for', 'function', 'if', 'in', 'mod', 'not', 'of', 'or',
|
---|
51 | 'procedure', 'repeat', 'record', 'set', 'shl', 'shr', 'then', 'to',
|
---|
52 | 'type', 'until', 'uses', 'var','while', 'with', 'xor', 'exit', 'break',
|
---|
53 | 'class', 'constructor', 'inherited', 'private', 'public', 'protected',
|
---|
54 | 'property', 'As', 'Is', 'Unit', 'Continue', 'Try', 'Except', 'Forward',
|
---|
55 | 'Interface','Implementation', 'nil', 'out', 'loop', 'namespace', 'true',
|
---|
56 | 'false', 'new', 'ensure', 'require', 'on', 'event', 'delegate', 'method',
|
---|
57 | 'raise', 'assembly', 'module', 'using','locking', 'old', 'invariants', 'operator',
|
---|
58 | 'self', 'async', 'finalizer', 'where', 'yield', 'nullable', 'Future',
|
---|
59 | 'From', 'Finally', 'dynamic'
|
---|
60 | ),
|
---|
61 | 2 => array(
|
---|
62 | 'override', 'virtual', 'External', 'read', 'add', 'remove','final', 'abstract',
|
---|
63 | 'empty', 'global', 'locked', 'sealed', 'reintroduce', 'implements', 'each',
|
---|
64 | 'default', 'partial', 'finalize', 'enum', 'flags', 'result', 'readonly', 'unsafe',
|
---|
65 | 'pinned', 'matching', 'static', 'has', 'step', 'iterator', 'inline', 'nested',
|
---|
66 | 'Implies', 'Select', 'Order', 'By', 'Desc', 'Asc', 'Group', 'Join', 'Take',
|
---|
67 | 'Skip', 'Concat', 'Union', 'Reverse', 'Distinct', 'Into', 'Equals', 'params',
|
---|
68 | 'sequence', 'index', 'notify', 'Parallel', 'create', 'array', 'Queryable', 'Aspect',
|
---|
69 | 'volatile'
|
---|
70 | ),
|
---|
71 | 3 => array(
|
---|
72 | 'chr', 'ord', 'inc', 'dec', 'assert', 'iff', 'assigned','futureAssigned', 'length', 'low', 'high', 'typeOf', 'sizeOf', 'disposeAndNil', 'Coalesce', 'unquote'
|
---|
73 | ),
|
---|
74 | ),
|
---|
75 | 'CASE_SENSITIVE' => array(
|
---|
76 | GESHI_COMMENTS => false,
|
---|
77 | 1 => false,
|
---|
78 | 2 => false,
|
---|
79 | 3 => false,
|
---|
80 | // 4 => false,
|
---|
81 | ),
|
---|
82 | 'SYMBOLS' => array(
|
---|
83 | 0 => array('(', ')', '[', ']'),
|
---|
84 | 1 => array('.', ',', ':', ';'),
|
---|
85 | 2 => array('@', '^'),
|
---|
86 | 3 => array('=', '+', '-', '*', '/')
|
---|
87 | ),
|
---|
88 | 'STYLES' => array(
|
---|
89 | 'KEYWORDS' => array(
|
---|
90 | 1 => 'color: #000000; font-weight: bold;',
|
---|
91 | 2 => 'color: #000000; font-weight: bold;',
|
---|
92 | 3 => 'color: #000066;',
|
---|
93 | // 4 => 'color: #000066; font-weight: bold;'
|
---|
94 | ),
|
---|
95 | 'COMMENTS' => array(
|
---|
96 | 1 => 'color: #808080; font-style: italic;',
|
---|
97 | 2 => 'color: #008000; font-style: italic;',
|
---|
98 | 'MULTI' => 'color: #808080; font-style: italic;'
|
---|
99 | ),
|
---|
100 | 'ESCAPE_CHAR' => array(
|
---|
101 | 0 => 'color: #ff0000; font-weight: bold;'
|
---|
102 | ),
|
---|
103 | 'BRACKETS' => array(
|
---|
104 | 0 => 'color: #000066;'
|
---|
105 | ),
|
---|
106 | 'STRINGS' => array(
|
---|
107 | 0 => 'color: #ff0000;'
|
---|
108 | ),
|
---|
109 | 'NUMBERS' => array(
|
---|
110 | 0 => 'color: #0000ff;'
|
---|
111 | ),
|
---|
112 | 'METHODS' => array(
|
---|
113 | 1 => 'color: #000000;'
|
---|
114 | ),
|
---|
115 | 'REGEXPS' => array(
|
---|
116 | 0 => 'color: #9ac;',
|
---|
117 | 1 => 'color: #ff0000;'
|
---|
118 | ),
|
---|
119 | 'SYMBOLS' => array(
|
---|
120 | 0 => 'color: #000066;',
|
---|
121 | 1 => 'color: #000066;',
|
---|
122 | 2 => 'color: #000066;',
|
---|
123 | 3 => 'color: #000066;'
|
---|
124 | ),
|
---|
125 | 'SCRIPT' => array(
|
---|
126 | )
|
---|
127 | ),
|
---|
128 | 'URLS' => array(
|
---|
129 | 1 => '',
|
---|
130 | 2 => '',
|
---|
131 | 3 => '',
|
---|
132 | // 4 => ''
|
---|
133 | ),
|
---|
134 | 'OOLANG' => true,
|
---|
135 | 'OBJECT_SPLITTERS' => array(
|
---|
136 | 1 => '.'
|
---|
137 | ),
|
---|
138 | 'REGEXPS' => array(
|
---|
139 | //Hex numbers
|
---|
140 | 0 => '\$[0-9a-fA-F]+',
|
---|
141 | //Characters
|
---|
142 | 1 => '\#\$?[0-9]{1,3}'
|
---|
143 | ),
|
---|
144 | 'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
---|
145 | 'SCRIPT_DELIMITERS' => array(
|
---|
146 | ),
|
---|
147 | 'HIGHLIGHT_STRICT_BLOCK' => array(
|
---|
148 | ),
|
---|
149 | 'TAB_WIDTH' => 2
|
---|
150 | );
|
---|
151 |
|
---|
152 | ?> |
---|