plugins/geshi/geshi/m68k.php
author Dan
Fri, 29 May 2009 19:40:15 -0400
changeset 3 f3e2bbbd2155
parent 2 9e3258dfae15
permissions -rw-r--r--
Updated to latest GeSHi, 1.0.8.4, released May 23, 2009.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     1
<?php
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     2
/*************************************************************************************
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     3
 * m68k.php
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     4
 * --------
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     5
 * Author: Benny Baumann (BenBE@omorphia.de)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     6
 * Copyright: (c) 2007 Benny Baumann (http://www.omorphia.de/), Nigel McNie (http://qbnz.com/highlighter)
3
f3e2bbbd2155 Updated to latest GeSHi, 1.0.8.4, released May 23, 2009.
Dan
parents: 2
diff changeset
     7
 * Release Version: 1.0.8.4
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     8
 * Date Started: 2007/02/06
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     9
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    10
 * Motorola 68000 Assembler language file for GeSHi.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    11
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    12
 * Syntax definition as commonly used by the motorola documentation for the
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    13
 * MC68HC908GP32 Microcontroller (and maybe others).
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    14
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    15
 * CHANGES
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    16
 * -------
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    17
 * 2008/05/23 (1.0.7.22)
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    18
 *   -  Added description of extra language features (SF#1970248)
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    19
 * 2007/06/02 (1.0.0)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    20
 *   -  First Release
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    21
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    22
 * TODO (updated 2007/06/02)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    23
 * -------------------------
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    24
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    25
 *************************************************************************************
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    26
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    27
 *     This file is part of GeSHi.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    28
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    29
 *   GeSHi is free software; you can redistribute it and/or modify
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    30
 *   it under the terms of the GNU General Public License as published by
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    31
 *   the Free Software Foundation; either version 2 of the License, or
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    32
 *   (at your option) any later version.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    33
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    34
 *   GeSHi is distributed in the hope that it will be useful,
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    35
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    36
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    37
 *   GNU General Public License for more details.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    38
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    39
 *   You should have received a copy of the GNU General Public License
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    40
 *   along with GeSHi; if not, write to the Free Software
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    41
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    42
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    43
 ************************************************************************************/
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    44
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    45
$language_data = array (
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    46
    'LANG_NAME' => 'Motorola 68000 Assembler',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    47
    'COMMENT_SINGLE' => array(1 => ';'),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    48
    'COMMENT_MULTI' => array(),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    49
    'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    50
    'QUOTEMARKS' => array("'", '"'),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    51
    'ESCAPE_CHAR' => '',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    52
    'KEYWORDS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    53
        /*CPU*/
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    54
        1 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    55
            'adc','add','ais','aix','and','asl','asr','bcc','bclr','bcs','beq',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    56
            'bge','bgt','bhcc','bhcs','bhi','bhs','bih','bil','bit','ble','blo',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    57
            'bls','blt','bmc','bmi','bms','bne','bpl','bra','brclr','brn',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    58
            'brset','bset','bsr','cbeq','clc','cli','clr','cmp','com','cphx',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    59
            'cpx','daa','dbnz','dec','div','eor','inc','jmp','jsr','lda','ldhx',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    60
            'ldx','lsl','lsr','mov','mul','neg','nop','nsa','ora','psha','pshh',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    61
            'pshx','pula','pulh','pulx','rol','ror','rsp','rti','rts','sbc',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    62
            'sec','sei','sta','sthx','stop','stx','sub','swi','tap','tax','tpa',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    63
            'tst','tsx','txa','txs','wait'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    64
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    65
        /*registers*/
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    66
        2 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    67
            'a','h','x',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    68
            'hx','sp'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    69
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    70
        /*Directive*/
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    71
        3 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    72
            '#define','#endif','#else','#ifdef','#ifndef','#include','#undef',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    73
            '.db','.dd','.df','.dq','.dt','.dw','.end','.org','equ'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    74
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    75
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    76
    'SYMBOLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    77
        ','
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    78
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    79
    'CASE_SENSITIVE' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    80
        GESHI_COMMENTS => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    81
        1 => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    82
        2 => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    83
        3 => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    84
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    85
    'STYLES' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    86
        'KEYWORDS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    87
            1 => 'color: #0000ff; font-weight:bold;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    88
            2 => 'color: #0000ff;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    89
            3 => 'color: #46aa03; font-weight:bold;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    90
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    91
        'COMMENTS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    92
            1 => 'color: #adadad; font-style: italic;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    93
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    94
        'ESCAPE_CHAR' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    95
            0 => 'color: #000099; font-weight: bold;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    96
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    97
        'BRACKETS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    98
            0 => 'color: #0000ff;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    99
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   100
        'STRINGS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   101
            0 => 'color: #7f007f;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   102
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   103
        'NUMBERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   104
            0 => 'color: #dd22dd;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   105
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   106
        'METHODS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   107
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   108
        'SYMBOLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   109
            0 => 'color: #008000;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   110
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   111
        'REGEXPS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   112
            0 => 'color: #22bbff;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   113
            1 => 'color: #22bbff;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   114
            2 => 'color: #993333;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   115
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   116
        'SCRIPT' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   117
            )
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   118
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   119
    'URLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   120
        1 => '',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   121
        2 => '',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   122
        3 => ''
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   123
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   124
    'OOLANG' => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   125
    'OBJECT_SPLITTERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   126
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   127
    'REGEXPS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   128
        //Hex numbers
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   129
        0 => '#?0[0-9a-fA-F]{1,32}[hH]',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   130
        //Binary numbers
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   131
        1 => '\%[01]{1,64}[bB]',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   132
        //Labels
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   133
        2 => '^[_a-zA-Z][_a-zA-Z0-9]*?\:'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   134
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   135
    'STRICT_MODE_APPLIES' => GESHI_NEVER,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   136
    'SCRIPT_DELIMITERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   137
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   138
    'HIGHLIGHT_STRICT_BLOCK' => array(
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   139
        ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   140
    'TAB_WIDTH' => 8
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   141
);
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   142
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   143
?>