2 /************************************************************************************* |
2 /************************************************************************************* |
3 * glsl.php |
3 * glsl.php |
4 * ----- |
4 * ----- |
5 * Author: Benny Baumann (BenBE@omorphia.de) |
5 * Author: Benny Baumann (BenBE@omorphia.de) |
6 * Copyright: (c) 2008 Benny Baumann (BenBE@omorphia.de) |
6 * Copyright: (c) 2008 Benny Baumann (BenBE@omorphia.de) |
7 * Release Version: 1.0.8.2 |
7 * Release Version: 1.0.8.4 |
8 * Date Started: 2008/03/20 |
8 * Date Started: 2008/03/20 |
9 * |
9 * |
10 * glSlang language file for GeSHi. |
10 * glSlang language file for GeSHi. |
11 * |
11 * |
12 * CHANGES |
12 * CHANGES |
39 |
39 |
40 $language_data = array ( |
40 $language_data = array ( |
41 'LANG_NAME' => 'glSlang', |
41 'LANG_NAME' => 'glSlang', |
42 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), |
42 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), |
43 'COMMENT_MULTI' => array('/*' => '*/'), |
43 'COMMENT_MULTI' => array('/*' => '*/'), |
|
44 'COMMENT_REGEXP' => array( |
|
45 //Multiline-continued single-line comments |
|
46 1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m', |
|
47 //Multiline-continued preprocessor define |
|
48 2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m' |
|
49 ), |
44 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
50 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
45 'QUOTEMARKS' => array("'", '"'), |
51 'QUOTEMARKS' => array("'", '"'), |
46 'ESCAPE_CHAR' => '\\', |
52 'ESCAPE_CHAR' => '\\', |
47 'KEYWORDS' => array( |
53 'KEYWORDS' => array( |
48 1 => array( |
54 1 => array( |
52 ), |
58 ), |
53 2 => array( |
59 2 => array( |
54 'const', 'uniform', 'attribute', 'centroid', 'varying', 'invariant', |
60 'const', 'uniform', 'attribute', 'centroid', 'varying', 'invariant', |
55 'in', 'out', 'inout', 'input', 'output', 'typedef', 'volatile', |
61 'in', 'out', 'inout', 'input', 'output', 'typedef', 'volatile', |
56 'public', 'static', 'extern', 'external', 'packed', |
62 'public', 'static', 'extern', 'external', 'packed', |
57 'inline', 'noinline' |
63 'inline', 'noinline', 'noperspective', 'flat' |
58 ), |
64 ), |
59 3 => array( |
65 3 => array( |
60 'void', 'bool', 'int', 'long', 'short', 'float', 'half', 'fixed', |
66 'void', 'bool', 'int', 'long', 'short', 'float', 'half', 'fixed', |
61 'unsigned', 'lowp', 'mediump', 'highp', 'precision', |
67 'unsigned', 'lowp', 'mediump', 'highp', 'precision', |
62 'vec2', 'vec3', 'vec4', 'bvec2', 'bvec3', 'bvec4', |
68 'vec2', 'vec3', 'vec4', 'bvec2', 'bvec3', 'bvec4', |