1 | 1 | simandl | <?php |
2 | | | /************************************************************************************* |
3 | | | * povray.php |
4 | | | * -------- |
5 | | | * Author: Carl FĂźrstenberg (azatoth@gmail.com) |
6 | | | * Copyright: Š 2007 Carl Fßrstenberg |
7 | 3 | simandl | * Release Version: 1.0.8.3 |
8 | 1 | simandl | * Date Started: 2008/07/11 |
9 | | | * |
10 | | | * Povray language file for GeSHi. |
11 | | | * |
12 | | | * CHANGES |
13 | | | * ------- |
14 | | | * 2008/07/11 (1.0.8) |
15 | | | * - initial import to GeSHi SVN |
16 | | | ************************************************************************************* |
17 | | | * |
18 | | | * This file is part of GeSHi. |
19 | | | * |
20 | | | * GeSHi is free software; you can redistribute it and/or modify |
21 | | | * it under the terms of the GNU General Public License as published by |
22 | | | * the Free Software Foundation; either version 2 of the License, or |
23 | | | * (at your option) any later version. |
24 | | | * |
25 | | | * GeSHi is distributed in the hope that it will be useful, |
26 | | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
27 | | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
28 | | | * GNU General Public License for more details. |
29 | | | * |
30 | | | * You should have received a copy of the GNU General Public License |
31 | | | * along with GeSHi; if not, write to the Free Software |
32 | | | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
33 | | | * |
34 | | | ************************************************************************************/ |
35 | | | |
36 | | | $language_data = array ( |
37 | | | 'LANG_NAME' => 'POVRAY', |
38 | | | 'COMMENT_SINGLE' => array(1 => '//'), |
39 | | | 'COMMENT_MULTI' => array('/*' => '*/'), |
40 | | | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
41 | | | 'QUOTEMARKS' => array("'", '"'), |
42 | | | 'ESCAPE_CHAR' => '\\', |
43 | | | 'KEYWORDS' => array( |
44 | | | 1 => array( |
45 | | | 'yes', 'wrinkles', 'wood', 'width', 'waves', 'water_level', 'warp', 'vturbulence', |
46 | | | 'vstr', 'vrotate', 'vnormalize', 'vlength', 'vcross', 'vaxis_rotate', 'variance', 'v_steps', |
47 | | | 'uv_mapping', 'utf8', 'use_index', 'use_colour', 'use_color', 'use_alpha', 'up', 'undef', |
48 | | | 'ultra_wide_angle', 'u_steps', 'type', 'turbulence', 'turb_depth', 'ttf', 'true', 'triangle_wave', |
49 | | | 'translate', 'transform', 'trace', 'toroidal', 'tolerance', 'tiles', 'tile2', 'tightness', |
50 | | | 'tiff', 'threshold', 'thickness', 'tga', 'texture_map', 'target', 'sys', 'sum', |
51 | | | 'substr', 'sturm', 'strupr', 'strlwr', 'strength', 'str', 'statistics', 'sqr', |
52 | | | 'spotted', 'spotlight', 'split_union', 'spline', 'spiral2', 'spiral1', 'spherical', 'specular', |
53 | | | 'spacing', 'solid', 'smooth', 'slope', 'slice', 'sky', 'size', 'sine_wave', |
54 | | | 'shadowless', 'scattering', 'scallop_wave', 'scale', 'save_file', 'samples', 'roughness', 'rotate', |
55 | | | 'ripples', 'right', 'rgbt', 'rgbft', 'rgbf', 'rgb', 'repeat', 'render', |
56 | | | 'refraction', 'reflection_exponent', 'recursion_limit', 'reciprocal', 'ratio', 'ramp_wave', 'radius', 'radial', |
57 | | | 'quilted', 'quick_colour', 'quick_color', 'quaternion', 'quadratic_spline', 'pwr', 'projected_through', 'prod', |
58 | | | 'pretrace_start', 'pretrace_end', 'precompute', 'precision', 'ppm', 'pow', 'pot', 'poly_wave', |
59 | | | 'point_at', 'png', 'planar', 'pigment_pattern', 'pi', 'phong_size', 'phong', 'phase', |
60 | | | 'pgm', 'perspective', 'pattern', 'pass_through', 'parallel', 'panoramic', 'orthographic', 'orientation', |
61 | | | 'orient', 'open', 'onion', 'once', 'on', 'omnimax', 'omega', 'offset', |
62 | | | 'off', 'octaves', 'number_of_waves', 'noise_generator', 'no_shadow', 'no_reflection', 'no_image', 'no_bump_scale', |
63 | | | 'no', 'nearest_count', 'natural_spline', 'mortar', 'minimum_reuse', 'min_extent', 'metric', 'method', |
64 | | | 'metallic', 'media_interaction', 'media_attenuation', 'media', 'max_trace_level', 'max_trace', 'max_sample', 'max_iteration', |
65 | | | 'max_intersections', 'max_gradient', 'max_extent', 'matrix', 'material_map', 'marble', 'map_type', 'mandel', |
66 | | | 'major_radius', 'magnet', 'low_error_factor', 'look_at', 'location', 'load_file', 'linear_sweep', 'linear_spline', |
67 | | | 'leopard', 'lambda', 'julia', 'jpeg', 'jitter', 'irid_wavelength', 'ior', 'inverse', |
68 | | | 'intervals', 'interpolate', 'internal', 'inside_vector', 'inside', 'initial_frame', 'initial_clock', 'image_width', |
69 | | | 'image_pattern', 'image_height', 'iff', 'hypercomplex', 'hollow', 'hierarchy', 'hf_gray_16', 'hexagon', |
70 | | | 'gray_threshold', 'granite', 'gradient', 'global_lights', 'gif', 'gather', 'fresnel', 'frequency', |
71 | | | 'frame_number', 'form', 'fog_type', 'fog_offset', 'fog_alt', 'focal_point', 'flip', 'flatness', |
72 | | | 'fisheye', 'final_frame', 'final_clock', 'false', 'falloff_angle', 'falloff', 'fade_power', 'fade_distance', |
73 | | | 'fade_colour', 'fade_color', 'facets', 'extinction', 'exterior', 'exponent', 'expand_thresholds', 'evaluate', |
74 | | | 'error_bound', 'emission', 'eccentricity', 'double_illuminate', 'distance', 'dist_exp', 'dispersion_samples', 'dispersion', |
75 | | | 'direction', 'diffuse', 'df3', 'dents', 'density_map', 'density_file', 'density', 'cylindrical', |
76 | | | 'cutaway_textures', 'cubic_wave', 'cubic_spline', 'cube', 'crand', 'crackle', 'count', 'coords', |
77 | | | 'control1', 'control0', 'conserve_energy', 'conic_sweep', 'confidence', 'concat', 'composite', 'component', |
78 | | | 'colour_map', 'colour', 'color', 'collect', 'clock_on', 'clock_delta', 'clock', 'circular', |
79 | | | 'chr', 'checker', 'charset', 'cells', 'caustics', 'bumps', 'bump_size', 'brilliance', |
80 | | | 'brightness', 'brick_size', 'brick', 'bozo', 'boxed', 'blur_samples', 'black_hole', 'bezier_spline', |
81 | | | 'b_spline', 'average', 'autostop', 'assumed_gamma', 'ascii', 'array', 'area_light', 'arc_angle', |
82 | | | 'append', 'aperture', 'angle', 'ambient_light', 'ambient', 'always_sample', 'altitude', 'alpha', |
83 | | | 'all_intersections', 'all', 'agate_turb', 'agate', 'adc_bailout', 'adaptive', 'accuracy', 'absorption', |
84 | | | 'aa_threshold', 'aa_level', 'reflection' |
85 | | | ), |
86 | | | 2 => array( |
87 | | | 'abs', 'acos', 'acosh', 'asc', 'asin', 'asinh', 'atan', 'atanh', |
88 | | | 'atan2', 'ceil', 'cos', 'cosh', 'defined', 'degrees', 'dimensions', 'dimension_size', |
89 | | | 'div', 'exp', 'file_exists', 'floor', 'int', 'ln', 'log', 'max', |
90 | | | 'min', 'mod', 'pov', 'radians', 'rand', 'seed', 'select', 'sin', |
91 | | | 'sinh', 'sqrt', 'strcmp', 'strlen', 'tan', 'tanh', 'val', 'vdot', |
92 | | | 'vlenght', |
93 | | | ), |
94 | | | 3 => array ( |
95 | | | 'x', 'y', 'z', 't', 'u', 'v', 'red', 'blue', |
96 | | | 'green', 'filter', 'transmit', 'gray', 'e', |
97 | | | ), |
98 | | | 4 => array ( |
99 | | | 'camera', 'background', 'fog', 'sky_sphere', 'rainbow', 'global_settings', 'radiosity', 'photon', |
100 | | | 'object', 'blob', 'sphere', 'cylinder', 'box', 'cone', 'height_field', 'julia_fractal', |
101 | | | 'lathe', 'prism', 'sphere_sweep', 'superellipsoid', 'sor', 'text', 'torus', 'bicubic_patch', |
102 | | | 'disc', 'mesh', 'triangle', 'smooth_triangle', 'mesh2', 'vertex_vectors', 'normal_vectors', 'uv_vectors', |
103 | | | 'texture_list', 'face_indices', 'normal_indices', 'uv_indices', 'texture', 'polygon', 'plane', 'poly', |
104 | | | 'cubic', 'quartic', 'quadric', 'isosurface', 'function', 'contained_by', 'parametric', 'pigment', |
105 | | | 'union', 'intersection', 'difference', 'merge', 'light_source', 'looks_like', 'light_group', 'clipped_by', |
106 | | | 'bounded_by', 'interior', 'material', 'interior_texture', 'normal', 'finish', 'color_map', 'pigment_map', |
107 | | | 'image_map', 'bump_map', 'slope_map', 'normal_map', 'irid', 'photons', |
108 | | | ) |
109 | | | ), |
110 | | | 'SYMBOLS' => array( |
111 | | | '(', ')', '[', ']', '{', '}', '!', |
112 | | | '@', '%', '&', '*', '|', '/', '<', |
113 | | | '>', '+', '-', '.', '=', '<=', '>=', |
114 | | | '!=', |
115 | | | ), |
116 | | | 'CASE_SENSITIVE' => array( |
117 | | | GESHI_COMMENTS => false, |
118 | | | 1 => false, |
119 | | | 2 => false, |
120 | | | 3 => false, |
121 | | | 4 => false |
122 | | | ), |
123 | | | 'STYLES' => array( |
124 | | | 'KEYWORDS' => array( |
125 | | | 1 => 'color: #a63123;', |
126 | | | 2 => 'color: #2312bc;', |
127 | | | 3 => 'color: #cc1122; font-weight: bold;', |
128 | | | 4 => 'color: #116688; font-weight: bold;', |
129 | | | ), |
130 | | | 'COMMENTS' => array( |
131 | | | 1 => 'color: #808080; font-style: italic;', |
132 | | | // 2 => 'color: #808080; font-style: italic;', |
133 | | | 'MULTI' => 'color: #808080; font-style: italic;' |
134 | | | ), |
135 | | | 'ESCAPE_CHAR' => array( |
136 | | | |
137 | | | ), |
138 | | | 'BRACKETS' => array( |
139 | | | |
140 | | | ), |
141 | | | 'STRINGS' => array( |
142 | | | |
143 | | | ), |
144 | | | 'NUMBERS' => array( |
145 | | | |
146 | | | ), |
147 | | | 'METHODS' => array( |
148 | | | 1 => 'color: #006600;', |
149 | | | 2 => 'color: #006600;' |
150 | | | ), |
151 | | | 'SYMBOLS' => array( |
152 | | | |
153 | | | ), |
154 | | | 'REGEXPS' => array( |
155 | | | |
156 | | | 1 => 'color: #66cc66; font-weight: bold;', |
157 | | | 2 => 'color: #66cc66; font-weight: bold;' |
158 | | | ), |
159 | | | 'SCRIPT' => array( |
160 | | | |
161 | | | 1 => '', |
162 | | | 2 => '', |
163 | | | 3 => '' |
164 | | | ) |
165 | | | ), |
166 | | | 'URLS' => array( |
167 | | | 1 => '', |
168 | | | 2 => '', |
169 | | | 3 => '', |
170 | | | 4 => '' |
171 | | | ), |
172 | | | 'OOLANG' => false, |
173 | | | 'OBJECT_SPLITTERS' => array( |
174 | | | ), |
175 | | | 'REGEXPS' => array( |
176 | | | # normal hash lines |
177 | | | |
178 | | | # syntax functions hash thingis |
179 | | | 1 => "\#(include|declare|local|fopen|fclose|read|write|default|version|if|else|end|ifdef|ifndef|switch|case|range|break|while|debug|error|warning|macro)", |
180 | | | 2 => array( |
181 | | | GESHI_SEARCH => "([a-zA-Z]+)(\n)(.*)(\n)(\\1;?)", |
182 | | | GESHI_REPLACE => '\3', |
183 | | | GESHI_BEFORE => '\1\2', |
184 | | | GESHI_AFTER => '\4\5', |
185 | | | GESHI_MODIFIERS => 'siU' |
186 | | | ) |
187 | | | ), |
188 | | | 'STRICT_MODE_APPLIES' => GESHI_MAYBE, |
189 | | | 'SCRIPT_DELIMITERS' => array( |
190 | | | ), |
191 | | | 'HIGHLIGHT_STRICT_BLOCK' => array( |
192 | | | |
193 | | | 1 => true, |
194 | | | 2 => true, |
195 | | | 3 => true |
196 | | | ), |
197 | | | 'TAB_WIDTH' => 4 |
198 | | | ); |
199 | | | ?> |