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