[25027] | 1 | <?php
|
---|
| 2 | /*************************************************************************************
|
---|
| 3 | * gwbasic.php
|
---|
| 4 | * ----------
|
---|
| 5 | * Author: José Gabriel Moya YangÌela ([email protected])
|
---|
| 6 | * Copyright: (c) 2010 José Gabriel Moya YangÌela (http://doc.apagada.com)
|
---|
| 7 | * Release Version: 1.0.8.8
|
---|
| 8 | * Date Started: 2010/01/30
|
---|
| 9 | *
|
---|
| 10 | * GwBasic language file for GeSHi.
|
---|
| 11 | *
|
---|
| 12 | * CHANGES
|
---|
| 13 | * -------
|
---|
| 14 | * REM was not classified as comment.
|
---|
| 15 | * APPEND and RANDOM missing.
|
---|
| 16 | *
|
---|
| 17 | *************************************************************************************
|
---|
| 18 | *
|
---|
| 19 | * This file is part of GeSHi.
|
---|
| 20 | *
|
---|
| 21 | * GeSHi is free software; you can redistribute it and/or modify
|
---|
| 22 | * it under the terms of the GNU General Public License as published by
|
---|
| 23 | * the Free Software Foundation; either version 2 of the License, or
|
---|
| 24 | * (at your option) any later version.
|
---|
| 25 | *
|
---|
| 26 | * GeSHi is distributed in the hope that it will be useful,
|
---|
| 27 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 28 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 29 | * GNU General Public License for more details.
|
---|
| 30 | *
|
---|
| 31 | * You should have received a copy of the GNU General Public License
|
---|
| 32 | * along with GeSHi; if not, write to the Free Software
|
---|
| 33 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
| 34 | *
|
---|
| 35 | ************************************************************************************/
|
---|
| 36 |
|
---|
| 37 | $language_data = array (
|
---|
| 38 | 'LANG_NAME' => 'GwBasic',
|
---|
| 39 | 'COMMENT_SINGLE' => array(1 => "'", 2=> "REM"),
|
---|
| 40 | 'COMMENT_MULTI' => array(),
|
---|
| 41 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
---|
| 42 | 'QUOTEMARKS' => array('"'),
|
---|
| 43 | 'ESCAPE_CHAR' => '',
|
---|
| 44 | 'KEYWORDS' => array(
|
---|
| 45 | /* Statements */
|
---|
| 46 | 1 => array('END','FOR','NEXT','DATA','INPUT','DIM','READ','LET',
|
---|
| 47 | 'GOTO','RUN','IF','RESTORE','GOSUB','RETURN','REM',
|
---|
| 48 | 'STOP','PRINT','CLEAR','LIST','NEW','ON','WAIT','DEF',
|
---|
| 49 | 'POKE','CONT','OUT','LPRINT','LLIST','WIDTH','ELSE',
|
---|
| 50 | 'TRON','TROFF','SWAP','ERASE','EDIT','ERROR','RESUME',
|
---|
| 51 | 'DELETE','AUTO','RENUM','DEFSTR','DEFINT','DEFSNG',
|
---|
| 52 | 'DEFDBL','LINE','WHILE','WEND','CALL','WRITE','OPTION',
|
---|
| 53 | 'RANDOMIZE','OPEN','CLOSE','LOAD','MERGE','SAVE',
|
---|
| 54 | 'COLOR','CLS','MOTOR','BSAVE','BLOAD','SOUND','BEEP',
|
---|
| 55 | 'PSET','PRESET','SCREEN','KEY','LOCATE','TO','THEN',
|
---|
| 56 | 'STEP','USR','FN','SPC','NOT','ERL','ERR','STRING',
|
---|
| 57 | 'USING','INSTR','VARPTR','CSRLIN','POINT','OFF',
|
---|
| 58 | 'FILES','FIELD','SYSTEM','NAME','LSET','RSET','KILL',
|
---|
| 59 | 'PUT','GET','RESET','COMMON','CHAIN','PAINT','COM',
|
---|
| 60 | 'CIRCLE','DRAW','PLAY','TIMER','IOCTL','CHDIR','MKDIR',
|
---|
| 61 | 'RMDIR','SHELL','VIEW','WINDOW','PMAP','PALETTE','LCOPY',
|
---|
| 62 | 'CALLS','PCOPY','LOCK','UNLOCK','RANDOM','APPEND',
|
---|
| 63 | ),
|
---|
| 64 | 2 => array(
|
---|
| 65 | /* Functions */
|
---|
| 66 | 'CVI','CVS','CVD','MKI','MKS','MKD','ENVIRON',
|
---|
| 67 | 'LEFT','RIGHT','MID','SGN','INT','ABS',
|
---|
| 68 | 'SQR','SIN','LOG','EXP','COS','TAN','ATN',
|
---|
| 69 | 'FRE','INP','POS','LEN','STR','VAL','ASC',
|
---|
| 70 | 'CHR','PEEK','SPACE','OCT','HEX','LPOS',
|
---|
| 71 | 'CINT','CSNG','CDBL','FIX','PEN','STICK',
|
---|
| 72 | 'STRIG','EOF','LOC','LOF'
|
---|
| 73 | ),
|
---|
| 74 | 3 => array(
|
---|
| 75 | /* alpha Operators */
|
---|
| 76 | 'AND','OR','XOR','EQV','IMP','MOD'
|
---|
| 77 | ),
|
---|
| 78 | 4 => array(
|
---|
| 79 | /* parameterless functions */
|
---|
| 80 | 'INKEY','DATE','TIME','ERDEV','RND'
|
---|
| 81 | )
|
---|
| 82 | ),
|
---|
| 83 | 'SYMBOLS' => array(
|
---|
| 84 | 0 => array(
|
---|
| 85 | '>','=','<','+','-','*','/','^','\\'
|
---|
| 86 | ),
|
---|
| 87 | 1 => array(
|
---|
| 88 | '?'
|
---|
| 89 | )
|
---|
| 90 | ),
|
---|
| 91 | 'CASE_SENSITIVE' => array(
|
---|
| 92 | GESHI_COMMENTS => false,
|
---|
| 93 | 1 => false,
|
---|
| 94 | 2 => false,
|
---|
| 95 | 3 => false,
|
---|
| 96 | 4 => false
|
---|
| 97 | ),
|
---|
| 98 | 'STYLES' => array(
|
---|
| 99 | 'KEYWORDS' => array(
|
---|
| 100 | 1 => 'color: #00a1a1;font-weight: bold',
|
---|
| 101 | 2 => 'color: #000066;font-weight: bold',
|
---|
| 102 | 3 => 'color: #00a166;font-weight: bold',
|
---|
| 103 | 4 => 'color: #0066a1;font-weight: bold'
|
---|
| 104 | ),
|
---|
| 105 | 'COMMENTS' => array(
|
---|
| 106 | 1 => 'color: #808080;',
|
---|
| 107 | 2 => 'color: #808080;'
|
---|
| 108 | ),
|
---|
| 109 | 'BRACKETS' => array(
|
---|
| 110 | 0 => 'color: #66cc66;'
|
---|
| 111 | ),
|
---|
| 112 | 'STRINGS' => array(
|
---|
| 113 | 0 => 'color: #ff0000;'
|
---|
| 114 | ),
|
---|
| 115 | 'NUMBERS' => array(
|
---|
| 116 | 0 => 'color: #cc66cc;'
|
---|
| 117 | ),
|
---|
| 118 | 'METHODS' => array(
|
---|
| 119 | ),
|
---|
| 120 | 'SYMBOLS' => array(
|
---|
| 121 | /* Same as KEYWORDS[3] (and, or, not...) */
|
---|
| 122 | 0 => 'color: #00a166;font-weight: bold',
|
---|
| 123 | 1 => 'color: #00a1a1;font-weight: bold',
|
---|
| 124 | ),
|
---|
| 125 | 'ESCAPE_CHAR' => array(
|
---|
| 126 | 0 => 'color: #000099;'
|
---|
| 127 | ),
|
---|
| 128 | 'SCRIPT' => array(
|
---|
| 129 | ),
|
---|
| 130 | 'REGEXPS' => array(
|
---|
| 131 | 1 => 'color: #708090'
|
---|
| 132 | )
|
---|
| 133 | ),
|
---|
| 134 | 'URLS' => array(
|
---|
| 135 | 1 => '',
|
---|
| 136 | 2 => '',
|
---|
| 137 | 3 => '',
|
---|
| 138 | 4 => '',
|
---|
| 139 | ),
|
---|
| 140 | 'OOLANG' => false,
|
---|
| 141 | 'OBJECT_SPLITTERS' => array(
|
---|
| 142 | ),
|
---|
| 143 | 'REGEXPS' => array(
|
---|
| 144 | 1 => '^[0-9]+ '
|
---|
| 145 | ),
|
---|
| 146 | 'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
---|
| 147 | 'SCRIPT_DELIMITERS' => array(
|
---|
| 148 | ),
|
---|
| 149 | 'HIGHLIGHT_STRICT_BLOCK' => array(
|
---|
| 150 | )
|
---|
| 151 | );
|
---|
| 152 |
|
---|
| 153 | ?> |
---|