1 | 1 | simandl | <?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 | 3 | simandl | * Release Version: 1.0.8.3 |
8 | 1 | simandl | * 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 | | | |
44 | | | $language_data = array ( |
45 | | | 'LANG_NAME' => 'OpenOffice.org Basic', |
46 | | | 'COMMENT_SINGLE' => array(1 => "'"), |
47 | | | 'COMMENT_MULTI' => array(), |
48 | | | //Single-Line comments using REM keyword |
49 | | | 'COMMENT_REGEXP' => array(2 => '/\bREM.*?$/i'), |
50 | | | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
51 | | | 'QUOTEMARKS' => array('"'), |
52 | | | 'ESCAPE_CHAR' => '', |
53 | | | 'KEYWORDS' => array( |
54 | | | 1 => array( |
55 | | | 'dim','private','public','global','as','if','redim','true','set','byval', |
56 | | | 'false','bool','double','integer','long','object','single','variant', |
57 | | | 'msgbox','print','inputbox','green','blue','red','qbcolor', |
58 | | | 'rgb','open','close','reset','freefile','get','input','line', |
59 | | | 'put','write','loc','seek','eof','lof','chdir','chdrive', |
60 | | | 'curdir','dir','fileattr','filecopy','filedatetime','fileexists', |
61 | | | 'filelen','getattr','kill','mkdir','name','rmdir','setattr', |
62 | | | 'dateserial','datevalue','day','month','weekday','year','cdatetoiso', |
63 | | | 'cdatefromiso','hour','minute','second','timeserial','timevalue', |
64 | | | 'date','now','time','timer','erl','err','error','on','goto','resume', |
65 | | | 'and','eqv','imp','not','or','xor','mod','atn','cos','sin','tan','log', |
66 | | | 'exp','rnd','randomize','sqr','fix','int','abs','sgn','hex','oct', |
67 | | | 'it','then','else','select','case','iif','do','loop','for','next','to', |
68 | | | 'while','wend','gosub','return','call','choose','declare', |
69 | | | 'end','exit','freelibrary','function','rem','stop','sub','switch','with', |
70 | | | 'cbool','cdate','cdbl','cint','clng','const','csng','cstr','defbool', |
71 | | | 'defdate','defdbl','defint','deflng','asc','chr','str','val','cbyte', |
72 | | | 'space','string','format','lcase','left','lset','ltrim','mid','right', |
73 | | | 'rset','rtrim','trim','ucase','split','join','converttourl','convertfromurl', |
74 | | | 'instr','len','strcomp','beep','shell','wait','getsystemticks','environ', |
75 | | | 'getsolarversion','getguitype','twipsperpixelx','twipsperpixely', |
76 | | | 'createunostruct','createunoservice','getprocessservicemanager', |
77 | | | 'createunodialog','createunolistener','createunovalue','thiscomponent', |
78 | | | 'globalscope' |
79 | | | ) |
80 | | | ), |
81 | | | 'SYMBOLS' => array( |
82 | | | '(', ')', '=' |
83 | | | ), |
84 | | | 'CASE_SENSITIVE' => array( |
85 | | | GESHI_COMMENTS => false, |
86 | | | 1 => false |
87 | | | ), |
88 | | | 'STYLES' => array( |
89 | | | 'KEYWORDS' => array( |
90 | | | 1 => 'color: #b1b100;' |
91 | | | ), |
92 | | | 'COMMENTS' => array( |
93 | | | 1 => 'color: #808080;', |
94 | | | 2 => 'color: #808080;' |
95 | | | ), |
96 | | | 'BRACKETS' => array( |
97 | | | |
98 | | | ), |
99 | | | 'STRINGS' => array( |
100 | | | |
101 | | | ), |
102 | | | 'NUMBERS' => array( |
103 | | | |
104 | | | ), |
105 | | | 'METHODS' => array( |
106 | | | 1 => 'color: #006600;' |
107 | | | ), |
108 | | | 'SYMBOLS' => array( |
109 | | | |
110 | | | ), |
111 | | | 'ESCAPE_CHAR' => array( |
112 | | | |
113 | | | ), |
114 | | | 'SCRIPT' => array( |
115 | | | ), |
116 | | | 'REGEXPS' => array( |
117 | | | ) |
118 | | | ), |
119 | | | 'URLS' => array( |
120 | | | 1 => '' |
121 | | | ), |
122 | | | 'OOLANG' => true, |
123 | | | 'OBJECT_SPLITTERS' => array( |
124 | | | 1 => '.' |
125 | | | ), |
126 | | | 'REGEXPS' => array( |
127 | | | ), |
128 | | | 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
129 | | | 'SCRIPT_DELIMITERS' => array( |
130 | | | ), |
131 | | | 'HIGHLIGHT_STRICT_BLOCK' => array( |
132 | | | ) |
133 | | | ); |
134 | | | |
135 | | | ?> |