summaryrefslogtreecommitdiff
path: root/inc/geshi/glsl.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-09-12 22:23:34 +0200
committerAndreas Gohr <andi@splitbrain.org>2008-09-12 22:23:34 +0200
commit8e39ccf504d73d5d12e07bd879c5a696d5ceac3d (patch)
treee98977e1a3b2a5f3886da350b95c4a196ea04449 /inc/geshi/glsl.php
parent535bed707571573f6670f91094e3c8eed6d9420c (diff)
downloadrpg-8e39ccf504d73d5d12e07bd879c5a696d5ceac3d.tar.gz
rpg-8e39ccf504d73d5d12e07bd879c5a696d5ceac3d.tar.bz2
GeSHi update to 1.0.8
darcs-hash:20080912202334-7ad00-ee4e69ad5516c38729955e8919d55f3b940caf1a.gz
Diffstat (limited to 'inc/geshi/glsl.php')
-rw-r--r--inc/geshi/glsl.php306
1 files changed, 156 insertions, 150 deletions
diff --git a/inc/geshi/glsl.php b/inc/geshi/glsl.php
index 972aac81a..e5a536575 100644
--- a/inc/geshi/glsl.php
+++ b/inc/geshi/glsl.php
@@ -4,7 +4,7 @@
* -----
* Author: Benny Baumann (BenBE@omorphia.de)
* Copyright: (c) 2008 Benny Baumann (BenBE@omorphia.de)
- * Release Version: 1.0.7.22
+ * Release Version: 1\.0\.8
* Date Started: 2008/03/20
*
* glSlang language file for GeSHi.
@@ -38,156 +38,162 @@
************************************************************************************/
$language_data = array (
- 'LANG_NAME' => 'glSlang',
- 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
- 'COMMENT_MULTI' => array('/*' => '*/'),
- 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
- 'QUOTEMARKS' => array("'", '"'),
- 'ESCAPE_CHAR' => '\\',
- 'KEYWORDS' => array(
- 1 => array(
- 'if', 'else', 'for', 'while', 'do', 'break', 'continue', 'asm',
- 'switch', 'case', 'default', 'return', 'discard',
- 'namespace', 'using', 'sizeof', 'cast'
- ),
- 2 => array(
- 'const', 'uniform', 'attribute', 'centroid', 'varying', 'invariant',
- 'in', 'out', 'inout', 'input', 'output', 'typedef', 'volatile',
- 'public', 'static', 'extern', 'external', 'packed',
- 'inline', 'noinline'
- ),
- 3 => array(
- 'void', 'bool', 'int', 'long', 'short', 'float', 'half', 'fixed',
- 'unsigned', 'lowp', 'mediump', 'highp', 'precision',
- 'vec2', 'vec3', 'vec4', 'bvec2', 'bvec3', 'bvec4',
- 'dvec2', 'dvec3', 'dvec4', 'fvec2', 'fvec3', 'fvec4',
- 'hvec2', 'hvec3', 'hvec4', 'ivec2', 'ivec3', 'ivec4',
- 'mat2', 'mat3', 'mat4', 'mat2x2', 'mat3x2', 'mat4x2',
- 'mat2x3', 'mat3x3', 'mat4x3', 'mat2x4', 'mat3x4', 'mat4x4',
- 'sampler1D', 'sampler2D', 'sampler3D', 'samplerCube',
- 'sampler1DShadow', 'sampler2DShadow',
- 'struct', 'class', 'union', 'enum', 'interface', 'template'
- ),
- 4 => array(
- 'this', 'false', 'true'
- ),
- 5 => array(
- 'radians', 'degrees', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan',
- 'pow', 'exp2', 'log2', 'sqrt', 'inversesqrt', 'abs', 'sign', 'ceil',
- 'floor', 'fract', 'mod', 'min', 'max', 'clamp', 'mix', 'step',
- 'smoothstep', 'length', 'distance', 'dot', 'cross', 'normalize',
- 'ftransform', 'faceforward', 'reflect', 'matrixCompMult', 'equal',
- 'lessThan', 'lessThanEqual', 'greaterThan', 'greaterThanEqual',
- 'notEqual', 'any', 'all', 'not', 'texture1D', 'texture1DProj',
- 'texture1DLod', 'texture1DProjLod', 'texture2D', 'texture2DProj',
- 'texture2DLod', 'texture2DProjLod', 'texture3D', 'texture3DProj',
- 'texture3DLod', 'texture3DProjLod', 'textureCube', 'textureCubeLod',
- 'shadow1D', 'shadow1DProj', 'shadow1DLod', 'shadow1DProjLod',
- 'shadow2D', 'shadow2DProj', 'shadow2DLod', 'shadow2DProjLod',
- 'noise1', 'noise2', 'noise3', 'noise4'
- ),
- 6 => array(
- 'gl_Position', 'gl_PointSize', 'gl_ClipVertex', 'gl_FragColor',
- 'gl_FragData', 'gl_FragDepth', 'gl_FragCoord', 'gl_FrontFacing',
- 'gl_Color', 'gl_SecondaryColor', 'gl_Normal', 'gl_Vertex',
- 'gl_MultiTexCoord0', 'gl_MultiTexCoord1', 'gl_MultiTexCoord2',
- 'gl_MultiTexCoord3', 'gl_MultiTexCoord4', 'gl_MultiTexCoord5',
- 'gl_MultiTexCoord6', 'gl_MultiTexCoord7', 'gl_FogCoord',
- 'gl_MaxLights', 'gl_MaxClipPlanes', 'gl_MaxTextureUnits',
- 'gl_MaxTextureCoords', 'gl_MaxVertexAttribs', 'gl_MaxVaryingFloats',
- 'gl_MaxVertexUniformComponents', 'gl_MaxVertexTextureImageUnits',
- 'gl_MaxCombinedTextureImageUnits', 'gl_MaxTextureImageUnits',
- 'gl_MaxFragmentUniformComponents', 'gl_MaxDrawBuffers', 'gl_Point',
- 'gl_ModelViewMatrix', 'gl_ProjectionMatrix', 'gl_FrontMaterial',
- 'gl_ModelViewProjectionMatrix', 'gl_TextureMatrix', 'gl_ClipPlane',
- 'gl_NormalMatrix', 'gl_ModelViewMatrixInverse', 'gl_BackMaterial',
- 'gl_ProjectionMatrixInverse', 'gl_ModelViewProjectionMatrixInverse',
- 'gl_TextureMatrixInverse', 'gl_ModelViewMatrixTranspose', 'gl_Fog',
- 'gl_ProjectionMatrixTranspose', 'gl_NormalScale', 'gl_DepthRange',
- 'gl_odelViewProjectionMatrixTranspose', 'gl_TextureMatrixTranspose',
- 'gl_ModelViewMatrixInverseTranspose', 'gl_LightSource',
- 'gl_ProjectionMatrixInverseTranspose', 'gl_LightModel',
- 'gl_ModelViewProjectionMatrixInverseTranspose', 'gl_TexCoord',
- 'gl_TextureMatrixInverseTranspose', 'gl_TextureEnvColor',
- 'gl_FrontLightModelProduct', 'gl_BackLightModelProduct',
- 'gl_FrontLightProduct', 'gl_BackLightProduct', 'gl_ObjectPlaneS',
- 'gl_ObjectPlaneT', 'gl_ObjectPlaneR', 'gl_ObjectPlaneQ',
- 'gl_EyePlaneS', 'gl_EyePlaneT', 'gl_EyePlaneR', 'gl_EyePlaneQ',
- 'gl_FrontColor', 'gl_BackColor', 'gl_FrontSecondaryColor',
- 'gl_BackSecondaryColor', 'gl_FogFragCoord', 'gl_PointCoord'
- )
- ),
- 'SYMBOLS' => array(
- '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^',
- '&', '?', ':', '|', ';', ',', '<', '>'
- ),
- 'CASE_SENSITIVE' => array(
- GESHI_COMMENTS => true,
- 1 => true,
- 2 => true,
- 3 => true,
- 4 => true,
- 5 => true,
- 6 => true,
- ),
- 'STYLES' => array(
- 'KEYWORDS' => array(
- 1 => 'color: #000000; font-weight: bold;',
- 2 => 'color: #333399; font-weight: bold;',
- 3 => 'color: #000066; font-weight: bold;',
- 4 => 'color: #333399; font-weight: bold;',
- 5 => 'color: #993333; font-weight: bold;',
- 6 => 'color: #551111;'
- ),
- 'COMMENTS' => array(
- 1 => 'color: #666666; font-style: italic;',
- 2 => 'color: #009900;',
- 'MULTI' => 'color: #666666; font-style: italic;'
- ),
- 'ESCAPE_CHAR' => array(
- 0 => 'color: #000099; font-weight: bold;'
- ),
- 'BRACKETS' => array(
- 0 => 'color: #000066;'
- ),
- 'STRINGS' => array(
- 0 => 'color: #ff0000;'
- ),
- 'NUMBERS' => array(
- 0 => 'color: #0000ff;'
- ),
- 'METHODS' => array(
- 1 => 'color: #009900;',
- 2 => 'color: #663300;'
- ),
- 'SYMBOLS' => array(
- 0 => 'color: #000066;'
- ),
- 'REGEXPS' => array(
- ),
- 'SCRIPT' => array(
- )
- ),
- 'URLS' => array(
- 1 => '',
- 2 => '',
- 3 => '',
- 4 => '',
- 5 => '',
- 6 => ''
- ),
- 'OOLANG' => false,
- 'OBJECT_SPLITTERS' => array(
- 1 => '.'
- ),
- 'REGEXPS' => array(
- ),
- 'STRICT_MODE_APPLIES' => GESHI_NEVER,
- 'SCRIPT_DELIMITERS' => array(
- ),
- 'HIGHLIGHT_STRICT_BLOCK' => array(
+ 'LANG_NAME' => 'glSlang',
+ 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
+ 'COMMENT_MULTI' => array('/*' => '*/'),
+ 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
+ 'QUOTEMARKS' => array("'", '"'),
+ 'ESCAPE_CHAR' => '\\',
+ 'KEYWORDS' => array(
+ 1 => array(
+ 'if', 'else', 'for', 'while', 'do', 'break', 'continue', 'asm',
+ 'switch', 'case', 'default', 'return', 'discard',
+ 'namespace', 'using', 'sizeof', 'cast'
+ ),
+ 2 => array(
+ 'const', 'uniform', 'attribute', 'centroid', 'varying', 'invariant',
+ 'in', 'out', 'inout', 'input', 'output', 'typedef', 'volatile',
+ 'public', 'static', 'extern', 'external', 'packed',
+ 'inline', 'noinline'
+ ),
+ 3 => array(
+ 'void', 'bool', 'int', 'long', 'short', 'float', 'half', 'fixed',
+ 'unsigned', 'lowp', 'mediump', 'highp', 'precision',
+ 'vec2', 'vec3', 'vec4', 'bvec2', 'bvec3', 'bvec4',
+ 'dvec2', 'dvec3', 'dvec4', 'fvec2', 'fvec3', 'fvec4',
+ 'hvec2', 'hvec3', 'hvec4', 'ivec2', 'ivec3', 'ivec4',
+ 'mat2', 'mat3', 'mat4', 'mat2x2', 'mat3x2', 'mat4x2',
+ 'mat2x3', 'mat3x3', 'mat4x3', 'mat2x4', 'mat3x4', 'mat4x4',
+ 'sampler1D', 'sampler2D', 'sampler3D', 'samplerCube',
+ 'sampler1DShadow', 'sampler2DShadow',
+ 'struct', 'class', 'union', 'enum', 'interface', 'template'
+ ),
+ 4 => array(
+ 'this', 'false', 'true'
+ ),
+ 5 => array(
+ 'radians', 'degrees', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan',
+ 'pow', 'exp2', 'log2', 'sqrt', 'inversesqrt', 'abs', 'sign', 'ceil',
+ 'floor', 'fract', 'mod', 'min', 'max', 'clamp', 'mix', 'step',
+ 'smoothstep', 'length', 'distance', 'dot', 'cross', 'normalize',
+ 'ftransform', 'faceforward', 'reflect', 'matrixCompMult', 'equal',
+ 'lessThan', 'lessThanEqual', 'greaterThan', 'greaterThanEqual',
+ 'notEqual', 'any', 'all', 'not', 'texture1D', 'texture1DProj',
+ 'texture1DLod', 'texture1DProjLod', 'texture2D', 'texture2DProj',
+ 'texture2DLod', 'texture2DProjLod', 'texture3D', 'texture3DProj',
+ 'texture3DLod', 'texture3DProjLod', 'textureCube', 'textureCubeLod',
+ 'shadow1D', 'shadow1DProj', 'shadow1DLod', 'shadow1DProjLod',
+ 'shadow2D', 'shadow2DProj', 'shadow2DLod', 'shadow2DProjLod',
+ 'noise1', 'noise2', 'noise3', 'noise4'
+ ),
+ 6 => array(
+ 'gl_Position', 'gl_PointSize', 'gl_ClipVertex', 'gl_FragColor',
+ 'gl_FragData', 'gl_FragDepth', 'gl_FragCoord', 'gl_FrontFacing',
+ 'gl_Color', 'gl_SecondaryColor', 'gl_Normal', 'gl_Vertex',
+ 'gl_MultiTexCoord0', 'gl_MultiTexCoord1', 'gl_MultiTexCoord2',
+ 'gl_MultiTexCoord3', 'gl_MultiTexCoord4', 'gl_MultiTexCoord5',
+ 'gl_MultiTexCoord6', 'gl_MultiTexCoord7', 'gl_FogCoord',
+ 'gl_MaxLights', 'gl_MaxClipPlanes', 'gl_MaxTextureUnits',
+ 'gl_MaxTextureCoords', 'gl_MaxVertexAttribs', 'gl_MaxVaryingFloats',
+ 'gl_MaxVertexUniformComponents', 'gl_MaxVertexTextureImageUnits',
+ 'gl_MaxCombinedTextureImageUnits', 'gl_MaxTextureImageUnits',
+ 'gl_MaxFragmentUniformComponents', 'gl_MaxDrawBuffers', 'gl_Point',
+ 'gl_ModelViewMatrix', 'gl_ProjectionMatrix', 'gl_FrontMaterial',
+ 'gl_ModelViewProjectionMatrix', 'gl_TextureMatrix', 'gl_ClipPlane',
+ 'gl_NormalMatrix', 'gl_ModelViewMatrixInverse', 'gl_BackMaterial',
+ 'gl_ProjectionMatrixInverse', 'gl_ModelViewProjectionMatrixInverse',
+ 'gl_TextureMatrixInverse', 'gl_ModelViewMatrixTranspose', 'gl_Fog',
+ 'gl_ProjectionMatrixTranspose', 'gl_NormalScale', 'gl_DepthRange',
+ 'gl_odelViewProjectionMatrixTranspose', 'gl_TextureMatrixTranspose',
+ 'gl_ModelViewMatrixInverseTranspose', 'gl_LightSource',
+ 'gl_ProjectionMatrixInverseTranspose', 'gl_LightModel',
+ 'gl_ModelViewProjectionMatrixInverseTranspose', 'gl_TexCoord',
+ 'gl_TextureMatrixInverseTranspose', 'gl_TextureEnvColor',
+ 'gl_FrontLightModelProduct', 'gl_BackLightModelProduct',
+ 'gl_FrontLightProduct', 'gl_BackLightProduct', 'gl_ObjectPlaneS',
+ 'gl_ObjectPlaneT', 'gl_ObjectPlaneR', 'gl_ObjectPlaneQ',
+ 'gl_EyePlaneS', 'gl_EyePlaneT', 'gl_EyePlaneR', 'gl_EyePlaneQ',
+ 'gl_FrontColor', 'gl_BackColor', 'gl_FrontSecondaryColor',
+ 'gl_BackSecondaryColor', 'gl_FogFragCoord', 'gl_PointCoord'
+ )
),
- 'TAB_WIDTH' => 4
+ 'SYMBOLS' => array(
+ '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^',
+ '&', '?', ':', '.', '|', ';', ',', '<', '>'
+ ),
+ 'CASE_SENSITIVE' => array(
+ GESHI_COMMENTS => false,
+ 1 => true,
+ 2 => true,
+ 3 => true,
+ 4 => true,
+ 5 => true,
+ 6 => true,
+ ),
+ 'STYLES' => array(
+ 'KEYWORDS' => array(
+ 1 => 'color: #000000; font-weight: bold;',
+ 2 => 'color: #333399; font-weight: bold;',
+ 3 => 'color: #000066; font-weight: bold;',
+ 4 => 'color: #333399; font-weight: bold;',
+ 5 => 'color: #993333; font-weight: bold;',
+ 6 => 'color: #551111;'
+ ),
+ 'COMMENTS' => array(
+ 1 => 'color: #666666; font-style: italic;',
+ 2 => 'color: #009900;',
+ 'MULTI' => 'color: #666666; font-style: italic;'
+ ),
+ 'ESCAPE_CHAR' => array(
+ 0 => 'color: #000099; font-weight: bold;'
+ ),
+ 'BRACKETS' => array(
+ 0 => 'color: #000066;'
+ ),
+ 'STRINGS' => array(
+ 0 => 'color: #ff0000;'
+ ),
+ 'NUMBERS' => array(
+ 0 => 'color: #0000ff;'
+ ),
+ 'METHODS' => array(
+ 1 => 'color: #006600;'
+ ),
+ 'SYMBOLS' => array(
+ 0 => 'color: #000066;'
+ ),
+ 'REGEXPS' => array(
+ ),
+ 'SCRIPT' => array(
+ )
+ ),
+ 'URLS' => array(
+ 1 => '',
+ 2 => '',
+ 3 => '',
+ 4 => '',
+ 5 => '',
+ 6 => ''
+ ),
+ 'OOLANG' => true,
+ 'OBJECT_SPLITTERS' => array(
+ 1 => '.'
+ ),
+ 'REGEXPS' => array(
+ ),
+ 'STRICT_MODE_APPLIES' => GESHI_NEVER,
+ 'SCRIPT_DELIMITERS' => array(
+ ),
+ 'HIGHLIGHT_STRICT_BLOCK' => array(
+ ),
+ 'TAB_WIDTH' => 4,
+ 'PARSER_CONTROL' => array(
+ 'OOLANG' => array(
+ 'MATCH_BEFORE' => '',
+ 'MATCH_AFTER' => '[a-zA-Z_][a-zA-Z0-9_]*',
+ 'MATCH_SPACES' => '[\s]*'
+ )
+ )
);
?>