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.

136 lines
5.0KB

  1. <?php
  2. /*************************************************************************************
  3. * oobas.php
  4. * ---------
  5. * Author: Roberto Rossi (rsoftware@altervista.org)
  6. * Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2004/08/30
  9. *
  10. * OpenOffice.org Basic language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2008/05/23 (1.0.7.22)
  15. * - Added description of extra language features (SF#1970248)
  16. * 2004/11/27 (1.0.1)
  17. * - Added support for multiple object splitters
  18. * 2004/10/27 (1.0.0)
  19. * - First Release
  20. *
  21. * TODO (updated 2004/11/27)
  22. * -------------------------
  23. *
  24. *************************************************************************************
  25. *
  26. * This file is part of GeSHi.
  27. *
  28. * GeSHi is free software; you can redistribute it and/or modify
  29. * it under the terms of the GNU General Public License as published by
  30. * the Free Software Foundation; either version 2 of the License, or
  31. * (at your option) any later version.
  32. *
  33. * GeSHi is distributed in the hope that it will be useful,
  34. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  35. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  36. * GNU General Public License for more details.
  37. *
  38. * You should have received a copy of the GNU General Public License
  39. * along with GeSHi; if not, write to the Free Software
  40. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  41. *
  42. ************************************************************************************/
  43. $language_data = array (
  44. 'LANG_NAME' => 'OpenOffice.org Basic',
  45. 'COMMENT_SINGLE' => array(1 => "'"),
  46. 'COMMENT_MULTI' => array(),
  47. //Single-Line comments using REM keyword
  48. 'COMMENT_REGEXP' => array(2 => '/\bREM.*?$/i'),
  49. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  50. 'QUOTEMARKS' => array('"'),
  51. 'ESCAPE_CHAR' => '',
  52. 'KEYWORDS' => array(
  53. 1 => array(
  54. 'dim','private','public','global','as','if','redim','true','set','byval',
  55. 'false','bool','double','integer','long','object','single','variant',
  56. 'msgbox','print','inputbox','green','blue','red','qbcolor',
  57. 'rgb','open','close','reset','freefile','get','input','line',
  58. 'put','write','loc','seek','eof','lof','chdir','chdrive',
  59. 'curdir','dir','fileattr','filecopy','filedatetime','fileexists',
  60. 'filelen','getattr','kill','mkdir','name','rmdir','setattr',
  61. 'dateserial','datevalue','day','month','weekday','year','cdatetoiso',
  62. 'cdatefromiso','hour','minute','second','timeserial','timevalue',
  63. 'date','now','time','timer','erl','err','error','on','goto','resume',
  64. 'and','eqv','imp','not','or','xor','mod','atn','cos','sin','tan','log',
  65. 'exp','rnd','randomize','sqr','fix','int','abs','sgn','hex','oct',
  66. 'it','then','else','select','case','iif','do','loop','for','next','to',
  67. 'while','wend','gosub','return','call','choose','declare',
  68. 'end','exit','freelibrary','function','rem','stop','sub','switch','with',
  69. 'cbool','cdate','cdbl','cint','clng','const','csng','cstr','defbool',
  70. 'defdate','defdbl','defint','deflng','asc','chr','str','val','cbyte',
  71. 'space','string','format','lcase','left','lset','ltrim','mid','right',
  72. 'rset','rtrim','trim','ucase','split','join','converttourl','convertfromurl',
  73. 'instr','len','strcomp','beep','shell','wait','getsystemticks','environ',
  74. 'getsolarversion','getguitype','twipsperpixelx','twipsperpixely',
  75. 'createunostruct','createunoservice','getprocessservicemanager',
  76. 'createunodialog','createunolistener','createunovalue','thiscomponent',
  77. 'globalscope'
  78. )
  79. ),
  80. 'SYMBOLS' => array(
  81. '(', ')', '='
  82. ),
  83. 'CASE_SENSITIVE' => array(
  84. GESHI_COMMENTS => false,
  85. 1 => false
  86. ),
  87. 'STYLES' => array(
  88. 'KEYWORDS' => array(
  89. 1 => 'color: #b1b100;'
  90. ),
  91. 'COMMENTS' => array(
  92. 1 => 'color: #808080;',
  93. 2 => 'color: #808080;'
  94. ),
  95. 'BRACKETS' => array(
  96. 0 => 'color: #66cc66;'
  97. ),
  98. 'STRINGS' => array(
  99. 0 => 'color: #ff0000;'
  100. ),
  101. 'NUMBERS' => array(
  102. 0 => 'color: #cc66cc;'
  103. ),
  104. 'METHODS' => array(
  105. 1 => 'color: #006600;'
  106. ),
  107. 'SYMBOLS' => array(
  108. 0 => 'color: #66cc66;'
  109. ),
  110. 'ESCAPE_CHAR' => array(
  111. 0 => 'color: #000099;'
  112. ),
  113. 'SCRIPT' => array(
  114. ),
  115. 'REGEXPS' => array(
  116. )
  117. ),
  118. 'URLS' => array(
  119. 1 => ''
  120. ),
  121. 'OOLANG' => true,
  122. 'OBJECT_SPLITTERS' => array(
  123. 1 => '.'
  124. ),
  125. 'REGEXPS' => array(
  126. ),
  127. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  128. 'SCRIPT_DELIMITERS' => array(
  129. ),
  130. 'HIGHLIGHT_STRICT_BLOCK' => array(
  131. )
  132. );
  133. ?>