source: documentation/trunk/packages/dokuwiki-2011-05-25a/inc/geshi/pixelbender.php@ 25027

Last change on this file since 25027 was 25027, checked in by jmt12, 12 years ago

Adding the packages directory, and within it a configured version of dokuwiki all ready to run

File size: 6.0 KB
Line 
1<?php
2/*************************************************************************************
3 * pixelbender.php
4 * ----------------
5 * Author: Richard Olsson ([email protected])
6 * Copyright: (c) 2008 Richard Olsson (richardolsson.se)
7 * Release Version: 1.0.8.8
8 * Date Started: 2008/11/16
9 *
10 * Pixel Bender 1.0 language file for GeSHi.
11 *
12 *
13 * Please feel free to modify this file, although I would greatly appreciate
14 * it if you would then send some feedback on why the file needed to be
15 * changed, using the e-mail address above.
16 *
17 *
18 * The colors are inspired by those used in the Pixel Bender Toolkit, with
19 * some slight modifications.
20 *
21 * For more info on Pixel Bender, see the Adobe Labs Wiki article at
22 * http://labs.adobe.com/wiki/index.php/Pixel_Bender_Toolkit.
23 *
24 * Keyword groups are defined as follows (groups marked with an asterisk
25 * inherit their names from terminology used in the language specification
26 * included with the Pixel Bender Toolkit, see URL above.)
27 *
28 * 1. languageVersion & kernel keywords
29 * 2. Kernel Members *
30 * 3. Types *
31 * 4. Statements * & qualifiers (in, out, inout)
32 * 5. Built-in functions *
33 * 6. Meta-data names
34 * 7. Preprocessor & Pre-defined symbols *
35 *
36 *
37 * CHANGES
38 * -------
39 * 2008/11/16 (1.0.8.2)
40 * - Initial release
41 *
42 * TODO (updated 2008/11/16)
43 * -------------------------
44 *
45 *************************************************************************************
46 *
47 * This file is part of GeSHi.
48 *
49 * GeSHi is free software; you can redistribute it and/or modify
50 * it under the terms of the GNU General Public License as published by
51 * the Free Software Foundation; either version 2 of the License, or
52 * (at your option) any later version.
53 *
54 * GeSHi is distributed in the hope that it will be useful,
55 * but WITHOUT ANY WARRANTY; without even the implied warranty of
56 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57 * GNU General Public License for more details.
58 *
59 * You should have received a copy of the GNU General Public License
60 * along with GeSHi; if not, write to the Free Software
61 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
62 *
63 ************************************************************************************/
64
65$language_data = array(
66 'LANG_NAME' => 'Pixel Bender 1.0',
67 'COMMENT_SINGLE' => array(1 => '//'),
68 'COMMENT_MULTI' => array('/*' => '*/'),
69 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
70 'QUOTEMARKS' => array('"'),
71 'ESCAPE_CHAR' => '\\',
72 'KEYWORDS' => array(
73 1 => array(
74 'languageVersion', 'kernel'
75 ),
76 2 => array(
77 'import', 'parameter', 'dependent', 'const', 'input', 'output',
78 'evaluatePixel', 'evaluateDependents', 'needed', 'changed', 'generated'
79 ),
80 3 => array(
81 'bool', 'bool2', 'bool3', 'bool4', 'int', 'int2', 'int3', 'int4',
82 'float', 'float2', 'float3', 'float4', 'float2x2', 'float3x3', 'float4x4',
83 'pixel2', 'pixel3', 'pixel4', 'region', 'image1', 'image2', 'image3', 'image4',
84 'imageRef', 'void'
85 ),
86 4 => array(
87 'in', 'out', 'inout', 'if', 'else', 'for', 'while', 'do', 'break',
88 'continue', 'return'
89 ),
90 5 => array(
91 'radians', 'degrees', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'pow',
92 'exp', 'exp2', 'log', 'log2', 'sqrt', 'inverseSqrt', 'abs', 'sign', 'floor',
93 'ceil', 'fract', 'mod', 'min', 'max', 'step', 'clamp', 'mix', 'smoothStep',
94 'length', 'distance', 'dot', 'cross', 'normalize', 'matrixCompMult', 'lessThan',
95 'lessThanEqual', 'greaterThan', 'greaterThanEqual', 'equal', 'notEqual', 'any',
96 'all', 'not', 'nowhere', 'everywhere', 'transform', 'union', 'intersect',
97 'outset', 'inset', 'bounds', 'isEmpty', 'sample', 'sampleLinear', 'sampleNearest',
98 'outCoord', 'dod', 'pixelSize', 'pixelAspectRatio'
99 ),
100 6 => array(
101 'namespace', 'vendor', 'version', 'minValue', 'maxValue', 'defaultValue', 'description'
102 ),
103 7 => array(
104 '#if', '#endif', '#ifdef', '#elif', 'defined', '#define',
105 'AIF_ATI', 'AIF_NVIDIA', 'AIF_FLASH_TARGET'
106 )
107 ),
108 'SYMBOLS' => array(
109 '(', ')', '[', ']', '{', '}', '!', '%', '&', '|', '+', '-', '*', '/', '=', '<', '>', '?', ':'
110 ),
111 'CASE_SENSITIVE' => array(
112 GESHI_COMMENTS => false,
113 1 => true,
114 2 => true,
115 3 => true,
116 4 => true,
117 5 => true,
118 6 => true,
119 7 => true
120 ),
121 'STYLES' => array(
122 'KEYWORDS' => array(
123 1 => 'color: #0033ff;',
124 2 => 'color: #0033ff; font-weight: bold;',
125 3 => 'color: #0033ff;',
126 4 => 'color: #9900cc; font-weight: bold;',
127 5 => 'color: #333333;',
128 6 => 'color: #666666;',
129 7 => 'color: #990000;',
130 ),
131 'COMMENTS' => array(
132 1 => 'color: #009900;',
133 'MULTI' => 'color: #3f5fbf;'
134 ),
135 'ESCAPE_CHAR' => array(
136 0 => ''
137 ),
138 'BRACKETS' => array(
139 0 => 'color: #000000;'
140 ),
141 'STRINGS' => array(
142 0 => 'color: #990000;'
143 ),
144 'NUMBERS' => array(
145 0 => 'color: #000000; font-weight:bold;'
146 ),
147 'METHODS' => array(
148 0 => 'color: #000000;',
149 ),
150 'SYMBOLS' => array(
151 0 => 'color: #000000; font-weight: bold;'
152 ),
153 'REGEXPS' => array(
154 ),
155 'SCRIPT' => array(
156 )
157 ),
158 'URLS' => array(
159 1 => '',
160 2 => '',
161 3 => '',
162 4 => '',
163 5 => '',
164 6 => '',
165 7 => ''
166 ),
167 'OOLANG' => true,
168 'OBJECT_SPLITTERS' => array('.'),
169 'REGEXPS' => array(),
170 'STRICT_MODE_APPLIES' => GESHI_NEVER,
171 'SCRIPT_DELIMITERS' => array(),
172 'HIGHLIGHT_STRICT_BLOCK' => array()
173);
174
175
176?>
Note: See TracBrowser for help on using the repository browser.