Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * Auto-generated class. CSS syntax highlighting
4
 *
5
 * PHP version 4 and 5
6
 *
7
 * LICENSE: This source file is subject to version 3.0 of the PHP license
8
 * that is available through the world-wide-web at the following URI:
9
 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
10
 * the PHP License and are unable to obtain it through the web, please
11
 * send a note to license@php.net so we can mail you a copy immediately.
12
 *
13
 * @copyright  2004-2006 Andrey Demenev
14
 * @license    http://www.php.net/license/3_0.txt  PHP License
15
 * @link       http://pear.php.net/package/Text_Highlighter
16
 * @category   Text
17
 * @package    Text_Highlighter
18
 * @version    generated from: : css.xml,v 1.1 2007/06/03 02:35:28 ssttoo Exp
19
 * @author Andrey Demenev <demenev@gmail.com>
20
 *
21
 */
22
 
23
/**
24
 * Auto-generated class. CSS syntax highlighting
25
 *
26
 * @author Andrey Demenev <demenev@gmail.com>
27
 * @category   Text
28
 * @package    Text_Highlighter
29
 * @copyright  2004-2006 Andrey Demenev
30
 * @license    http://www.php.net/license/3_0.txt  PHP License
31
 * @version    Release: 0.7.0
32
 * @link       http://pear.php.net/package/Text_Highlighter
33
 */
34
class  Text_Highlighter_CSS extends Text_Highlighter
35
{
36
    var $_language = 'css';
37
 
38
    /**
39
     *  Constructor
40
     *
41
     * @param array  $options
42
     * @access public
43
     */
44
    function __construct($options=array())
45
    {
46
 
47
        $this->_options = $options;
48
        $this->_regs = array (
49
            -1 => '/((?i)(@[a-z\\d]+))|((?i)(((\\.|#)?[a-z]+[a-z\\d\\-]*(?![a-z\\d\\-]))|(\\*))(?!\\s*:\\s*[\\s\\{]))|((?i):[a-z][a-z\\d\\-]*)|((?i)\\[)|((?i)\\{)/',
50
 
51
            1 => '/((?i)\')|((?i)")|((?i)[\\w\\-\\:]+)/',
52
            2 => '/((?i)[a-z][a-z\\d\\-]*\\s*:)|((?i)(((\\.|#)?[a-z]+[a-z\\d\\-]*(?![a-z\\d\\-]))|(\\*))(?!\\s*:\\s*[\\s\\{]))|((?i)\\{)/',
53
            3 => '/((?i)\\\\[\\\\(\\\\)\\\\])/',
54
            4 => '/((?i)\\\\\\\\|\\\\"|\\\\\'|\\\\`)/',
55
            5 => '/((?i)\\\\\\\\|\\\\"|\\\\\'|\\\\`|\\\\t|\\\\n|\\\\r)/',
56
        );
57
        $this->_counts = array (
58
            -1 =>
59
            array (
60
 
61
                1 => 4,
62
                2 => 0,
63
                3 => 0,
64
                4 => 0,
65
            ),
66
 
67
            array (
68
 
69
                1 => 0,
70
                2 => 0,
71
                3 => 1,
72
            ),
73
            1 =>
74
            array (
75
 
76
                1 => 0,
77
                2 => 0,
78
            ),
79
            2 =>
80
            array (
81
 
82
                1 => 4,
83
                2 => 0,
84
            ),
85
            3 =>
86
            array (
87
 
88
            ),
89
            4 =>
90
            array (
91
 
92
            ),
93
            5 =>
94
            array (
95
 
96
            ),
97
        );
98
        $this->_delim = array (
99
            -1 =>
100
            array (
101
 
102
                1 => '',
103
                2 => '',
104
                3 => 'brackets',
105
                4 => 'brackets',
106
            ),
107
 
108
            array (
109
 
110
                1 => '',
111
                2 => '',
112
                3 => '',
113
            ),
114
            1 =>
115
            array (
116
 
117
                1 => 'quotes',
118
                2 => '',
119
            ),
120
            2 =>
121
            array (
122
 
123
                1 => '',
124
                2 => 'brackets',
125
            ),
126
            3 =>
127
            array (
128
 
129
            ),
130
            4 =>
131
            array (
132
 
133
            ),
134
            5 =>
135
            array (
136
 
137
            ),
138
        );
139
        $this->_inner = array (
140
            -1 =>
141
            array (
142
 
143
                1 => 'identifier',
144
                2 => 'special',
145
                3 => 'code',
146
                4 => 'code',
147
            ),
148
 
149
            array (
150
 
151
                1 => 'number',
152
                2 => 'code',
153
                3 => 'var',
154
            ),
155
            1 =>
156
            array (
157
 
158
                1 => 'string',
159
                2 => 'var',
160
            ),
161
            2 =>
162
            array (
163
 
164
                1 => 'identifier',
165
                2 => 'code',
166
            ),
167
            3 =>
168
            array (
169
 
170
            ),
171
            4 =>
172
            array (
173
 
174
            ),
175
            5 =>
176
            array (
177
 
178
            ),
179
        );
180
        $this->_end = array (
181
 
182
            1 => '/(?i)\\]/',
183
            2 => '/(?i)\\}/',
184
            3 => '/(?i)\\)/',
185
            4 => '/(?i)\'/',
186
            5 => '/(?i)"/',
187
        );
188
        $this->_states = array (
189
            -1 =>
190
            array (
191
 
192
                1 => -1,
193
                2 => -1,
194
                3 => 1,
195
                4 => 2,
196
            ),
197
 
198
            array (
199
 
200
                1 => -1,
201
                2 => -1,
202
                3 => -1,
203
            ),
204
            1 =>
205
            array (
206
 
207
                1 => 5,
208
                2 => -1,
209
            ),
210
            2 =>
211
            array (
212
 
213
                1 => -1,
214
                2 => 2,
215
            ),
216
            3 =>
217
            array (
218
 
219
            ),
220
            4 =>
221
            array (
222
 
223
            ),
224
            5 =>
225
            array (
226
 
227
            ),
228
        );
229
        $this->_keywords = array (
230
            -1 =>
231
            array (
232
 
233
                array (
234
                ),
235
                1 =>
236
                array (
237
                ),
238
                2 =>
239
                array (
240
                ),
241
                3 => -1,
242
                4 => -1,
243
            ),
244
 
245
            array (
246
 
247
                array (
248
                ),
249
                1 =>
250
                array (
251
                ),
252
                2 =>
253
                array (
254
                    'propertyValue' => '/^((?i)far-left|left|center-left|center-right|center|far-right|right-side|right|behind|leftwards|rightwards|inherit|scroll|fixed|transparent|none|repeat-x|repeat-y|repeat|no-repeat|collapse|separate|auto|top|bottom|both|open-quote|close-quote|no-open-quote|no-close-quote|crosshair|default|pointer|move|e-resize|ne-resize|nw-resize|n-resize|se-resize|sw-resize|s-resize|text|wait|help|ltr|rtl|inline|block|list-item|run-in|compact|marker|table|inline-table|table-row-group|table-header-group|table-footer-group|table-row|table-column-group|table-column|table-cell|table-caption|below|level|above|higher|lower|show|hide|caption|icon|menu|message-box|small-caption|status-bar|normal|wider|narrower|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|italic|oblique|small-caps|bold|bolder|lighter|inside|outside|disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman|lower-greek|lower-alpha|lower-latin|upper-alpha|upper-latin|hebrew|armenian|georgian|cjk-ideographic|hiragana|katakana|hiragana-iroha|katakana-iroha|crop|cross|invert|visible|hidden|always|avoid|x-low|low|medium|high|x-high|mix?|repeat?|static|relative|absolute|portrait|landscape|spell-out|once|digits|continuous|code|x-slow|slow|fast|x-fast|faster|slower|justify|underline|overline|line-through|blink|capitalize|uppercase|lowercase|embed|bidi-override|baseline|sub|super|text-top|middle|text-bottom|silent|x-soft|soft|loud|x-loud|pre|nowrap|serif|sans-serif|cursive|fantasy|monospace|empty|string|strict|loose|char|true|false|dotted|dashed|solid|double|groove|ridge|inset|outset|larger|smaller|xx-small|x-small|small|large|x-large|xx-large|all|newspaper|distribute|distribute-all-lines|distribute-center-last|inter-word|inter-ideograph|inter-cluster|kashida|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|keep-all|break-all|break-word|lr-tb|tb-rl|thin|thick|inline-block|w-resize|hand|distribute-letter|distribute-space|whitespace|male|female|child)$/',
255
                    'namedcolor' => '/^((?i)aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|purple|red|silver|teal|white|yellow|activeborder|activecaption|appworkspace|background|buttonface|buttonhighlight|buttonshadow|buttontext|captiontext|graytext|highlight|highlighttext|inactiveborder|inactivecaption|inactivecaptiontext|infobackground|infotext|menu|menutext|scrollbar|threeddarkshadow|threedface|threedhighlight|threedlightshadow|threedshadow|window|windowframe|windowtext)$/',
256
                ),
257
                3 =>
258
                array (
259
                ),
260
            ),
261
            1 =>
262
            array (
263
 
264
                1 => -1,
265
                2 =>
266
                array (
267
                ),
268
            ),
269
            2 =>
270
            array (
271
 
272
                1 =>
273
                array (
274
                ),
275
                2 => -1,
276
            ),
277
            3 =>
278
            array (
279
 
280
                array (
281
                ),
282
            ),
283
            4 =>
284
            array (
285
 
286
                array (
287
                ),
288
            ),
289
            5 =>
290
            array (
291
 
292
                array (
293
                ),
294
            ),
295
        );
296
        $this->_parts = array (
297
 
298
            array (
299
 
300
                array (
301
                    1 => 'string',
302
                ),
303
                1 => NULL,
304
                2 => NULL,
305
                3 => NULL,
306
            ),
307
            1 =>
308
            array (
309
 
310
                1 => NULL,
311
                2 => NULL,
312
            ),
313
            2 =>
314
            array (
315
 
316
                1 => NULL,
317
                2 => NULL,
318
            ),
319
            3 =>
320
            array (
321
 
322
            ),
323
            4 =>
324
            array (
325
 
326
            ),
327
            5 =>
328
            array (
329
 
330
            ),
331
        );
332
        $this->_subst = array (
333
            -1 =>
334
            array (
335
 
336
                1 => false,
337
                2 => false,
338
                3 => false,
339
                4 => false,
340
            ),
341
 
342
            array (
343
 
344
                1 => false,
345
                2 => false,
346
                3 => false,
347
            ),
348
            1 =>
349
            array (
350
 
351
                1 => false,
352
                2 => false,
353
            ),
354
            2 =>
355
            array (
356
 
357
                1 => false,
358
                2 => false,
359
            ),
360
            3 =>
361
            array (
362
 
363
            ),
364
            4 =>
365
            array (
366
 
367
            ),
368
            5 =>
369
            array (
370
 
371
            ),
372
        );
373
        $this->_conditions = array (
374
        );
375
        $this->_kwmap = array (
376
            'propertyValue' => 'string',
377
            'namedcolor' => 'var',
378
        );
379
        $this->_defClass = 'code';
380
        $this->_checkDefines();
381
    }
382
 
383
}