2 /*************************************************************************************
5 * Author: Benny Baumann (BenBE@omorphia.de)
6 * Copyright: (c) 2007 Benny Baumann (http://www.omorphia.de/), Nigel McNie (http://qbnz.com/highlighter)
7 * Release Version: 1.0.7.19
8 * Date Started: 2007/02/06
10 * ZiLOG Z80 Assembler language file for GeSHi.
11 * Syntax definition as commonly used with table assembler TASM32
12 * This file will contain some undocumented opcodes.
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' => 'ZiLOG Z80 Assembler',
44 'COMMENT_SINGLE' => array(1 => ';'),
45 'COMMENT_MULTI' => array(),
46 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
47 'QUOTEMARKS' => array("'", '"'),
52 'adc','add'.'and','bit','call','ccf','cp','cpd','cpdr','cpir','cpi',
53 'cpl','daa','dec','di','djnz','ei','ex','exx','halt','im','in',
54 'in0','inc','ind','indr','inir','ini','jp','jr','ld','ldd','lddr',
55 'ldir','ldi','mlt','neg','nop','or','otdm','otdmr','otdr','otim',
56 'otimr','otir','out','out0','outd','outi','pop','push','res'.'ret',
57 'reti','retn','rl','rla','rlc','rlca','rld','rr','rra','rrc','rrca',
58 'rrd','rst','sbc','scf','set','sla','sl1','sll','slp','sra','srl',
59 'sub','tst','tstio','xor'
63 'a','b','c','d','e','h','l',
64 'af','bc','de','hl','ix','iy','sp',
65 'af\'','ixh','ixl','iyh','iyl'
69 '#define','#endif','#else','#ifdef','#ifndef','#include','#undef',
70 '.db','.dd','.df','.dq','.dt','.dw','.end','.org','equ'
74 '[', ']', '(', ')', '?', '+', '-', '*', '/', '%', '$'
76 'CASE_SENSITIVE' => array(
77 GESHI_COMMENTS
=> true
,
84 1 => 'color: #0000ff; font-weight:bold;',
85 2 => 'color: #0000ff;',
86 3 => 'color: #46aa03; font-weight:bold;'
89 1 => 'color: #adadad; font-style: italic;',
91 'ESCAPE_CHAR' => array(
92 0 => 'color: #000099; font-weight: bold;'
95 0 => 'color: #0000ff;'
98 0 => 'color: #7f007f;'
101 0 => 'color: #dd22dd;'
106 0 => 'color: #008000;'
109 0 => 'color: #22bbff;',
110 1 => 'color: #22bbff;',
111 2 => 'color: #993333;'
119 'OBJECT_SPLITTERS' => array(
122 0 => '0[0-9a-fA-F][0-9a-fA-F]*[hH]',
124 2 => '^[_a-zA-Z][_a-zA-Z0-9]*\:'
126 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
127 'SCRIPT_DELIMITERS' => array(
129 'HIGHLIGHT_STRICT_BLOCK' => array(