Merging the updates from the GeSHi vendor to the trunk
[viewsvn.git] / includes / geshi / geshi / z80.php
1 <?php
2 /*************************************************************************************
3 * asm.php
4 * -------
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
9 *
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.
13 *
14 * CHANGES
15 * -------
16 * 2007/02/06 (1.0.0)
17 * - First Release
18 *
19 * TODO (updated 2007/02/06)
20 * -------------------------
21 *
22 *************************************************************************************
23 *
24 * This file is part of GeSHi.
25 *
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.
30 *
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.
35 *
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
39 *
40 ************************************************************************************/
41
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("'", '"'),
48 'ESCAPE_CHAR' => '',
49 'KEYWORDS' => array(
50 /*CPU*/
51 1 => 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'
60 ),
61 /*registers*/
62 2 => array(
63 'a','b','c','d','e','h','l',
64 'af','bc','de','hl','ix','iy','sp',
65 'af\'','ixh','ixl','iyh','iyl'
66 ),
67 /*Directive*/
68 3 => array(
69 '#define','#endif','#else','#ifdef','#ifndef','#include','#undef',
70 '.db','.dd','.df','.dq','.dt','.dw','.end','.org','equ'
71 ),
72 ),
73 'SYMBOLS' => array(
74 '[', ']', '(', ')', '?', '+', '-', '*', '/', '%', '$'
75 ),
76 'CASE_SENSITIVE' => array(
77 GESHI_COMMENTS => true,
78 1 => false,
79 2 => false,
80 3 => false,
81 ),
82 'STYLES' => array(
83 'KEYWORDS' => array(
84 1 => 'color: #0000ff; font-weight:bold;',
85 2 => 'color: #0000ff;',
86 3 => 'color: #46aa03; font-weight:bold;'
87 ),
88 'COMMENTS' => array(
89 1 => 'color: #adadad; font-style: italic;',
90 ),
91 'ESCAPE_CHAR' => array(
92 0 => 'color: #000099; font-weight: bold;'
93 ),
94 'BRACKETS' => array(
95 0 => 'color: #0000ff;'
96 ),
97 'STRINGS' => array(
98 0 => 'color: #7f007f;'
99 ),
100 'NUMBERS' => array(
101 0 => 'color: #dd22dd;'
102 ),
103 'METHODS' => array(
104 ),
105 'SYMBOLS' => array(
106 0 => 'color: #008000;'
107 ),
108 'REGEXPS' => array(
109 0 => 'color: #22bbff;',
110 1 => 'color: #22bbff;',
111 2 => 'color: #993333;'
112 ),
113 'SCRIPT' => array(
114 )
115 ),
116 'URLS' => array(
117 ),
118 'OOLANG' => false,
119 'OBJECT_SPLITTERS' => array(
120 ),
121 'REGEXPS' => array(
122 0 => '0[0-9a-fA-F][0-9a-fA-F]*[hH]',
123 1 => '\%[01]+[bB]',
124 2 => '^[_a-zA-Z][_a-zA-Z0-9]*\:'
125 ),
126 'STRICT_MODE_APPLIES' => GESHI_NEVER,
127 'SCRIPT_DELIMITERS' => array(
128 ),
129 'HIGHLIGHT_STRICT_BLOCK' => array(
130 )
131 );
132
133 ?>