2
/*************************************************************************************
5
* Author: Jose Rodriguez (a.k.a. Boriel)
6
* Based on Copyright: (c) 2005 Roberto Rossi (http://rsoftware.altervista.org) Freebasic template
7
* Release Version: 1.0.8.11
8
* Date Started: 2010/06/19
10
* ZXBasic language file for GeSHi.
12
* More details at http://www.zxbasic.net/
19
* TODO (updated 2007/02/06)
20
* -------------------------
22
*************************************************************************************
24
* This file is part of GeSHi.
26
* GeSHi is free software; you can redistribute it and/or modify
27
* it under the terms of the GNU General Public License as published by
28
* the Free Software Foundation; either version 2 of the License, or
29
* (at your option) any later version.
31
* GeSHi is distributed in the hope that it will be useful,
32
* but WITHOUT ANY WARRANTY; without even the implied warranty of
33
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34
* GNU General Public License for more details.
36
* You should have received a copy of the GNU General Public License
37
* along with GeSHi; if not, write to the Free Software
38
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
40
************************************************************************************/
42
$language_data = array (
43
'LANG_NAME' => 'ZXBasic',
44
'COMMENT_SINGLE' => array(
49
'COMMENT_MULTI' => array("/'" => "'/"),
50
'CASE_KEYWORDS' => GESHI_CAPS_UPPER, //GESHI_CAPS_NO_CHANGE,
51
'QUOTEMARKS' => array('"'),
52
'ESCAPE_CHAR' => '\\',
55
"ASM", "BEEP", "BOLD", "BORDER", "BRIGHT", "ByRef", "ByVal", "CAST",
56
"CIRCLE", "CLS", "CONST", "CONTINUE", "DECLARE", "DIM", "DO",
57
"DRAW", "ELSE", "ELSEIF", "END", "EXIT", "FastCall", "FLASH", "FOR",
58
"FUNCTION", "GOTO", "GOSUB", "GO", "IF", "INK", "INVERSE", "ITALIC",
59
"LET", "LOAD", "LOOP", "NEXT", "OVER", "PAPER", "PAUSE", "PI",
60
"PLOT", "POKE", "PRINT", "RANDOMIZE", "REM", "RETURN", "SAVE",
61
"StdCall", "Sub", "THEN", "TO", "UNTIL", "VERIFY", "WEND", "WHILE",
66
'byte', 'ubyte', 'integer', 'uinteger', 'long', 'ulong', 'fixed',
72
"ABS", "ACS", "ASN", "ATN", "CHR", "CODE", "COS", "CSRLIN", "EXP",
73
"HEX", "HEX16", "INKEY", "INT", "LEN", "LN", "PEEK", "POS", "RND",
74
"SCREEN$", "SGN", "SIN", "SQR", "STR", "TAN", "VAL",
77
// Operators and modifiers
79
"AT", "AS", "AND", "MOD", "NOT", "OR", "SHL", "SHR", "STEP", "XOR"
85
'CASE_SENSITIVE' => array(
86
GESHI_COMMENTS => false,
94
1 => 'color: #000080; font-weight: bold;', // Commands
95
2 => 'color: #800080; font-weight: bold;', // Types
96
3 => 'color: #006000; font-weight: bold;', // Functions
97
4 => 'color: #801010; font-weight: bold;' // Operators and Modifiers
100
1 => 'color: #808080; font-style: italic;',
101
2 => 'color: #339933;',
102
3 => 'color: #808080; font-style: italic;',
103
'MULTI' => 'color: #808080; font-style: italic;'
106
//0 => 'color: #66cc66;'
107
0 => 'color: #007676;'
110
//0 => 'color: #ff0000;'
111
0 => 'color: #A00000; font-style: italic;'
114
//0 => 'color: #cc66cc;'
115
0 => 'color: #b05103;'// font-weight: bold;'
118
0 => 'color: #66cc66;'
121
0 => 'color: #66cc66;'
123
'ESCAPE_CHAR' => array(
124
0 => 'color: #000099;'
138
'OBJECT_SPLITTERS' => array(
143
'STRICT_MODE_APPLIES' => GESHI_NEVER,
144
'SCRIPT_DELIMITERS' => array(
146
'HIGHLIGHT_STRICT_BLOCK' => array(
b'\\ No newline at end of file'