KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

177 lines
6.0KB

  1. <?php
  2. /*************************************************************************************
  3. * pixelbender.php
  4. * ----------------
  5. * Author: Richard Olsson (r@richardolsson.se)
  6. * Copyright: (c) 2008 Richard Olsson (richardolsson.se)
  7. * Release Version: 1.0.8.11
  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. $language_data = array(
  65. 'LANG_NAME' => 'Pixel Bender 1.0',
  66. 'COMMENT_SINGLE' => array(1 => '//'),
  67. 'COMMENT_MULTI' => array('/*' => '*/'),
  68. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  69. 'QUOTEMARKS' => array('"'),
  70. 'ESCAPE_CHAR' => '\\',
  71. 'KEYWORDS' => array(
  72. 1 => array(
  73. 'languageVersion', 'kernel'
  74. ),
  75. 2 => array(
  76. 'import', 'parameter', 'dependent', 'const', 'input', 'output',
  77. 'evaluatePixel', 'evaluateDependents', 'needed', 'changed', 'generated'
  78. ),
  79. 3 => array(
  80. 'bool', 'bool2', 'bool3', 'bool4', 'int', 'int2', 'int3', 'int4',
  81. 'float', 'float2', 'float3', 'float4', 'float2x2', 'float3x3', 'float4x4',
  82. 'pixel2', 'pixel3', 'pixel4', 'region', 'image1', 'image2', 'image3', 'image4',
  83. 'imageRef', 'void'
  84. ),
  85. 4 => array(
  86. 'in', 'out', 'inout', 'if', 'else', 'for', 'while', 'do', 'break',
  87. 'continue', 'return'
  88. ),
  89. 5 => array(
  90. 'radians', 'degrees', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'pow',
  91. 'exp', 'exp2', 'log', 'log2', 'sqrt', 'inverseSqrt', 'abs', 'sign', 'floor',
  92. 'ceil', 'fract', 'mod', 'min', 'max', 'step', 'clamp', 'mix', 'smoothStep',
  93. 'length', 'distance', 'dot', 'cross', 'normalize', 'matrixCompMult', 'lessThan',
  94. 'lessThanEqual', 'greaterThan', 'greaterThanEqual', 'equal', 'notEqual', 'any',
  95. 'all', 'not', 'nowhere', 'everywhere', 'transform', 'union', 'intersect',
  96. 'outset', 'inset', 'bounds', 'isEmpty', 'sample', 'sampleLinear', 'sampleNearest',
  97. 'outCoord', 'dod', 'pixelSize', 'pixelAspectRatio'
  98. ),
  99. 6 => array(
  100. 'namespace', 'vendor', 'version', 'minValue', 'maxValue', 'defaultValue', 'description'
  101. ),
  102. 7 => array(
  103. '#if', '#endif', '#ifdef', '#elif', 'defined', '#define',
  104. 'AIF_ATI', 'AIF_NVIDIA', 'AIF_FLASH_TARGET'
  105. )
  106. ),
  107. 'SYMBOLS' => array(
  108. '(', ')', '[', ']', '{', '}', '!', '%', '&', '|', '+', '-', '*', '/', '=', '<', '>', '?', ':'
  109. ),
  110. 'CASE_SENSITIVE' => array(
  111. GESHI_COMMENTS => false,
  112. 1 => true,
  113. 2 => true,
  114. 3 => true,
  115. 4 => true,
  116. 5 => true,
  117. 6 => true,
  118. 7 => true
  119. ),
  120. 'STYLES' => array(
  121. 'KEYWORDS' => array(
  122. 1 => 'color: #0033ff;',
  123. 2 => 'color: #0033ff; font-weight: bold;',
  124. 3 => 'color: #0033ff;',
  125. 4 => 'color: #9900cc; font-weight: bold;',
  126. 5 => 'color: #333333;',
  127. 6 => 'color: #666666;',
  128. 7 => 'color: #990000;',
  129. ),
  130. 'COMMENTS' => array(
  131. 1 => 'color: #009900;',
  132. 'MULTI' => 'color: #3f5fbf;'
  133. ),
  134. 'ESCAPE_CHAR' => array(
  135. 0 => ''
  136. ),
  137. 'BRACKETS' => array(
  138. 0 => 'color: #000000;'
  139. ),
  140. 'STRINGS' => array(
  141. 0 => 'color: #990000;'
  142. ),
  143. 'NUMBERS' => array(
  144. 0 => 'color: #000000; font-weight:bold;'
  145. ),
  146. 'METHODS' => array(
  147. 0 => 'color: #000000;',
  148. ),
  149. 'SYMBOLS' => array(
  150. 0 => 'color: #000000; font-weight: bold;'
  151. ),
  152. 'REGEXPS' => array(
  153. ),
  154. 'SCRIPT' => array(
  155. )
  156. ),
  157. 'URLS' => array(
  158. 1 => '',
  159. 2 => '',
  160. 3 => '',
  161. 4 => '',
  162. 5 => '',
  163. 6 => '',
  164. 7 => ''
  165. ),
  166. 'OOLANG' => true,
  167. 'OBJECT_SPLITTERS' => array('.'),
  168. 'REGEXPS' => array(),
  169. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  170. 'SCRIPT_DELIMITERS' => array(),
  171. 'HIGHLIGHT_STRICT_BLOCK' => array()
  172. );
  173. ?>