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.

143 lines
5.4KB

  1. <?php
  2. /*************************************************************************************
  3. * xbasic.php
  4. * ----------
  5. * Author: José Gabriel Moya Yangüela (josemoya@gmail.com)
  6. * Copyright: (c) 2005 José Gabriel Moya Yangüela (http://aprenderadesaprender.6te.net)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2005/11/23
  9. *
  10. * XBasic language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * - Removed duplicate keywords
  15. * - Tabs converted in spaces.
  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. $language_data = array (
  36. 'LANG_NAME' => 'XBasic',
  37. 'COMMENT_SINGLE' => array(1 => "'"),
  38. 'COMMENT_MULTI' => array(),
  39. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  40. 'QUOTEMARKS' => array('"'),
  41. 'ESCAPE_CHAR' => '',
  42. 'KEYWORDS' => array(
  43. 1 => array(
  44. 'WHILE', 'UNTIL', 'TRUE', 'TO', 'THEN', 'SUB', 'STOP', 'STEP',
  45. 'SELECT', 'RETURN', 'PROGRAM', 'NEXT', 'LOOP', 'IFZ',
  46. 'IFT', 'IFF', 'IF', 'GOTO', 'GOSUB', 'FOR', 'FALSE', 'EXIT',
  47. 'ENDIF', 'END', 'ELSE', 'DO', 'CASE', 'ALL'
  48. ),
  49. 2 => array(
  50. 'XMAKE', 'XLONGAT', 'XLONG', 'WRITE', 'VOID', 'VERSION$', 'VERSION',
  51. 'USHORTAT', 'USHORT', 'UNION', 'ULONGAT', 'ULONG', 'UCASE$',
  52. 'UBYTEAT', 'UBYTE', 'UBOUND', 'TYPE','TRIM$', 'TAB', 'SWAP',
  53. 'SUBADDRESS', 'SUBADDR', 'STUFF$', 'STRING', 'STRING$', 'STR$',
  54. 'STATIC', 'SSHORTAT', 'SSHORT', 'SPACE$', 'SMAKE', 'SLONGAT', 'SLONG',
  55. 'SIZE', 'SINGLEAT', 'SINGLE', 'SIGNED$', 'SIGN', 'SHELL', 'SHARED',
  56. 'SGN', 'SFUNCTION', 'SET', 'SEEK', 'SCOMPLEX', 'SBYTEAT', 'SBYTE',
  57. 'RTRIM$', 'ROTATER', 'ROTATEL', 'RJUST$', 'RINSTRI', 'RINSTR',
  58. 'RINCHRI', 'RINCHR', 'RIGHT$', 'REDIM', 'READ', 'RCLIP$', 'QUIT',
  59. 'PROGRAM$', 'PRINT', 'POF', 'OPEN', 'OCTO$', 'OCT$', 'NULL$', 'MIN',
  60. 'MID$', 'MAX', 'MAKE', 'LTRIM$', 'LOF', 'LJUST$', 'LIBRARY', 'LEN',
  61. 'LEFT$', 'LCLIP$', 'LCASE$', 'INTERNAL', 'INT', 'INSTRI', 'INSTR',
  62. 'INLINE$', 'INFILE$', 'INCHRI', 'INCHR', 'INC', 'IMPORT', 'HIGH1',
  63. 'HIGH0', 'HEXX$', 'HEX$', 'GOADDRESS', 'GOADDR', 'GMAKE', 'GLOW',
  64. 'GIANTAT', 'GIANT', 'GHIGH', 'FUNCTION', 'FUNCADDRESS', 'FUNCADDR',
  65. 'FORMAT$', 'FIX', 'EXTU', 'EXTS', 'EXTERNAL', 'ERROR', 'ERROR$',
  66. 'EOF', 'DOUBLEAT', 'DOUBLE', 'DMAKE', 'DLOW', 'DIM', 'DHIGH',
  67. 'DECLARE', 'DEC', 'DCOMPLEX', 'CSTRING$', 'CSIZE', 'CSIZE$', 'CLR',
  68. 'CLOSE', 'CLEAR', 'CJUST$', 'CHR$', 'CFUNCTION', 'BITFIELD', 'BINB$',
  69. 'BIN$', 'AUTOX', 'AUTOS', 'AUTO', 'ATTACH', 'ASC', 'ABS'
  70. ),
  71. 3 => array(
  72. 'XOR', 'OR', 'NOT', 'MOD', 'AND'
  73. ),
  74. 4 => array(
  75. 'TANH', 'TAN', 'SQRT', 'SINH', 'SIN', 'SECH', 'SEC', 'POWER',
  76. 'LOG10', 'LOG', 'EXP10', 'EXP', 'CSCH', 'CSC', 'COTH', 'COT', 'COSH',
  77. 'COS', 'ATANH', 'ATAN', 'ASINH', 'ASIN', 'ASECH', 'ASEC', 'ACSCH',
  78. 'ACSC', 'ACOSH', 'ACOS'
  79. )
  80. ),
  81. 'SYMBOLS' => array(
  82. '(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>',
  83. '=','+','-'
  84. ),
  85. 'CASE_SENSITIVE' => array(
  86. GESHI_COMMENTS => false,
  87. 1 => false,
  88. 2 => false,
  89. 3 => false,
  90. 4 => false
  91. ),
  92. 'STYLES' => array(
  93. 'KEYWORDS' => array(
  94. 1 => 'color: #00a1a1;font-weight: bold',
  95. 2 => 'color: #000066;font-weight: bold',
  96. 3 => 'color: #00a166;font-weight: bold',
  97. 4 => 'color: #0066a1;font-weight: bold'
  98. ),
  99. 'COMMENTS' => array(
  100. 1 => 'color: #808080;'
  101. ),
  102. 'BRACKETS' => array(
  103. 0 => 'color: #66cc66;'
  104. ),
  105. 'STRINGS' => array(
  106. 0 => 'color: #ff0000;'
  107. ),
  108. 'NUMBERS' => array(
  109. 0 => 'color: #cc66cc;'
  110. ),
  111. 'METHODS' => array(
  112. ),
  113. 'SYMBOLS' => array(
  114. 0 => 'color: #66cc66;'
  115. ),
  116. 'ESCAPE_CHAR' => array(
  117. 0 => 'color: #000099;'
  118. ),
  119. 'SCRIPT' => array(
  120. ),
  121. 'REGEXPS' => array(
  122. )
  123. ),
  124. 'URLS' => array(
  125. 1 => '',
  126. 2 => '',
  127. 3 => 'http://www.xbasic.org',
  128. 4 => 'http://www.xbasic.org'
  129. ),
  130. 'OOLANG' => false,
  131. 'OBJECT_SPLITTERS' => array(
  132. ),
  133. 'REGEXPS' => array(
  134. ),
  135. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  136. 'SCRIPT_DELIMITERS' => array(
  137. ),
  138. 'HIGHLIGHT_STRICT_BLOCK' => array(
  139. )
  140. );
  141. ?>