0
|
1 |
<?php
|
|
2 |
/*************************************************************************************
|
|
3 |
* qbasic.php
|
|
4 |
* ----------
|
|
5 |
* Author: Nigel McNie (nigel@geshi.org)
|
|
6 |
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
|
3
|
7 |
* Release Version: 1.0.8.4
|
0
|
8 |
* Date Started: 2004/06/20
|
|
9 |
*
|
|
10 |
* QBasic/QuickBASIC language file for GeSHi.
|
|
11 |
*
|
|
12 |
* CHANGES
|
|
13 |
* -------
|
2
|
14 |
* 2008/05/23 (1.0.7.22)
|
|
15 |
* - Added description of extra language features (SF#1970248)
|
0
|
16 |
* 2004/11/27 (1.0.3)
|
|
17 |
* - Added support for multiple object splitters
|
|
18 |
* 2004/10/27 (1.0.2)
|
|
19 |
* - Added support for URLs
|
|
20 |
* 2004/08/05 (1.0.1)
|
|
21 |
* - Added support for symbols
|
|
22 |
* - Removed unnessecary slashes from some keywords
|
|
23 |
* 2004/07/14 (1.0.0)
|
|
24 |
* - First Release
|
|
25 |
*
|
|
26 |
* TODO (updated 2004/11/27)
|
|
27 |
* -------------------------
|
|
28 |
* * Make sure all possible combinations of keywords with
|
|
29 |
* a space in them (EXIT FOR, END SELECT) are added
|
|
30 |
* to the first keyword group
|
|
31 |
* * Update colours, especially for the first keyword group
|
|
32 |
*
|
|
33 |
*************************************************************************************
|
|
34 |
*
|
|
35 |
* This file is part of GeSHi.
|
|
36 |
*
|
|
37 |
* GeSHi is free software; you can redistribute it and/or modify
|
|
38 |
* it under the terms of the GNU General Public License as published by
|
|
39 |
* the Free Software Foundation; either version 2 of the License, or
|
|
40 |
* (at your option) any later version.
|
|
41 |
*
|
|
42 |
* GeSHi is distributed in the hope that it will be useful,
|
|
43 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
44 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
45 |
* GNU General Public License for more details.
|
|
46 |
*
|
|
47 |
* You should have received a copy of the GNU General Public License
|
|
48 |
* along with GeSHi; if not, write to the Free Software
|
|
49 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
50 |
*
|
|
51 |
************************************************************************************/
|
|
52 |
$language_data = array (
|
2
|
53 |
'LANG_NAME' => 'QBasic/QuickBASIC',
|
|
54 |
'COMMENT_SINGLE' => array(1 => "'"),
|
|
55 |
'COMMENT_MULTI' => array(),
|
|
56 |
'COMMENT_REGEXP' => array(
|
|
57 |
//Single-Line Comments using REM command
|
|
58 |
2 => "/\bREM.*?$/i"
|
|
59 |
),
|
|
60 |
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
|
|
61 |
'QUOTEMARKS' => array('"'),
|
|
62 |
'ESCAPE_CHAR' => '',
|
|
63 |
'KEYWORDS' => array(
|
|
64 |
1 => array(
|
|
65 |
'DO', 'LOOP', 'WHILE', 'WEND', 'THEN', 'ELSE', 'ELSEIF', 'IF',
|
|
66 |
'FOR', 'TO', 'NEXT', 'STEP', 'GOTO', 'GOSUB', 'CALL', 'CALLS',
|
|
67 |
'SUB', 'FUNCTION', 'RETURN', 'RESUME', 'SELECT', 'CASE', 'UNTIL'
|
|
68 |
),
|
|
69 |
3 => array(
|
|
70 |
'ABS', 'ABSOLUTE', 'ACCESS', 'ALIAS', 'AND', 'ANY', 'APPEND', 'AS', 'ASC', 'ATN',
|
|
71 |
'BASE', 'BEEP', 'BINARY', 'BLOAD', 'BSAVE', 'BYVAL',
|
|
72 |
'CDBL', 'CDECL', 'CHAIN', 'CHDIR', 'CHR$', 'CINT', 'CIRCLE', 'CLEAR',
|
|
73 |
'CLNG', 'CLOSE', 'CLS', 'COM', 'COMMAND$', 'COMMON', 'CONST', 'COS', 'CSNG',
|
|
74 |
'CSRLIN', 'CVD', 'CVDMBF', 'CVI', 'CVL', 'CVS', 'CVSMDF', 'DATA', 'DATE$',
|
|
75 |
'DECLARE', 'DEF', 'FN', 'SEG', 'DEFDBL', 'DEFINT', 'DEFLNG', 'DEFSNG', 'DEFSTR',
|
|
76 |
'DIM', 'DOUBLE', 'DRAW', 'END', 'ENVIRON', 'ENVIRON$', 'EOF', 'EQV', 'ERASE',
|
|
77 |
'ERDEV', 'ERDEV$', 'ERL', 'ERR', 'ERROR', 'EXIT', 'EXP', 'FIELD', 'FILEATTR',
|
|
78 |
'FILES', 'FIX', 'FRE', 'FREEFILE', 'GET', 'HEX$', 'IMP', 'INKEY$',
|
|
79 |
'INP', 'INPUT', 'INPUT$', 'INSTR', 'INT', 'INTEGER', 'IOCTL', 'IOCTL$', 'IS',
|
|
80 |
'KEY', 'KILL', 'LBOUND', 'LCASE$', 'LEFT$', 'LEN', 'LET', 'LINE', 'LIST', 'LOC',
|
|
81 |
'LOCAL', 'LOCATE', 'LOCK', 'LOF', 'LOG', 'LONG', 'LPOS', 'LPRINT',
|
|
82 |
'LSET', 'LTRIM$', 'MID$', 'MKD$', 'MKDIR', 'MKDMBF$', 'MKI$', 'MKL$',
|
|
83 |
'MKS$', 'MKSMBF$', 'MOD', 'NAME', 'NOT', 'OCT$', 'OFF', 'ON', 'PEN', 'PLAY',
|
|
84 |
'OPEN', 'OPTION', 'OR', 'OUT', 'OUTPUT',
|
|
85 |
'PAINT', 'PALETTE', 'PCOPY', 'PEEK', 'PMAP', 'POINT', 'POKE', 'POS', 'PRESET',
|
|
86 |
'PRINT', 'PSET', 'PUT', 'RANDOM', 'RANDOMIZE', 'READ', 'REDIM', 'RESET',
|
|
87 |
'RESTORE', 'RIGHT$', 'RMDIR', 'RND', 'RSET', 'RTRIM$', 'RUN', 'SADD', 'SCREEN',
|
|
88 |
'SEEK', 'SETMEM', 'SGN', 'SHARED', 'SHELL', 'SIGNAL', 'SIN', 'SINGLE', 'SLEEP',
|
|
89 |
'SOUND', 'SPACE$', 'SPC', 'SQR', 'STATIC', 'STICK', 'STOP', 'STR$', 'STRIG',
|
|
90 |
'STRING', 'STRING$', 'SWAP', 'SYSTEM', 'TAB', 'TAN', 'TIME$', 'TIMER',
|
|
91 |
'TROFF', 'TRON', 'TYPE', 'UBOUND', 'UCASE$', 'UEVENT', 'UNLOCK', 'USING', 'VAL',
|
|
92 |
'VARPTR', 'VARPTR$', 'VARSEG', 'VIEW', 'WAIT', 'WIDTH', 'WINDOW', 'WRITE', 'XOR'
|
|
93 |
)
|
|
94 |
),
|
|
95 |
'SYMBOLS' => array(
|
|
96 |
'(', ')', ',', '+', '-', '*', '/', '=', '<', '>'
|
|
97 |
),
|
|
98 |
'CASE_SENSITIVE' => array(
|
|
99 |
GESHI_COMMENTS => false,
|
|
100 |
1 => false,
|
|
101 |
3 => false
|
|
102 |
),
|
|
103 |
'STYLES' => array(
|
|
104 |
'KEYWORDS' => array(
|
|
105 |
1 => 'color: #a1a100;',
|
|
106 |
3 => 'color: #000066;'
|
|
107 |
),
|
|
108 |
'COMMENTS' => array(
|
|
109 |
1 => 'color: #808080;',
|
|
110 |
2 => 'color: #808080;'
|
|
111 |
),
|
|
112 |
'BRACKETS' => array(
|
|
113 |
0 => 'color: #66cc66;'
|
|
114 |
),
|
|
115 |
'STRINGS' => array(
|
|
116 |
0 => 'color: #ff0000;'
|
|
117 |
),
|
|
118 |
'NUMBERS' => array(
|
|
119 |
0 => 'color: #cc66cc;'
|
|
120 |
),
|
|
121 |
'METHODS' => array(
|
|
122 |
),
|
|
123 |
'SYMBOLS' => array(
|
|
124 |
0 => 'color: #66cc66;'
|
|
125 |
),
|
|
126 |
'ESCAPE_CHAR' => array(
|
|
127 |
0 => 'color: #000099;'
|
|
128 |
),
|
|
129 |
'SCRIPT' => array(
|
|
130 |
),
|
|
131 |
'REGEXPS' => array(
|
|
132 |
)
|
|
133 |
),
|
|
134 |
'URLS' => array(
|
|
135 |
1 => '',
|
|
136 |
3 => 'http://www.qbasicnews.com/qboho/qck{FNAMEL}.shtml'
|
|
137 |
),
|
|
138 |
'OOLANG' => false,
|
|
139 |
'OBJECT_SPLITTERS' => array(
|
|
140 |
),
|
|
141 |
'REGEXPS' => array(
|
|
142 |
),
|
|
143 |
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
144 |
'SCRIPT_DELIMITERS' => array(
|
|
145 |
),
|
|
146 |
'HIGHLIGHT_STRICT_BLOCK' => array(
|
0
|
147 |
),
|
|
148 |
'TAB_WIDTH' => 8
|
|
149 |
);
|
|
150 |
|
|
151 |
?>
|