plugins/geshi/geshi/haskell.php
author Dan
Sun, 10 Feb 2008 18:10:52 -0500
changeset 0 441963e5b07a
child 2 9e3258dfae15
permissions -rw-r--r--
Initial population - based on GeSHi 1.0.7.20
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
 * haskell.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: Jason Dagit (dagit@codersbase.com) based on ocaml.php by Flaie (fireflaie@gmail.com) 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     6
 * Copyright: (c) 2005 Flaie, Nigel McNie (http://qbnz.com/highlighter)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     7
 * Release Version: 1.0.7.20
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     8
 * CVS Revision Version: $Revision: 1.6 $
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     9
 * Date Started: 2005/08/27
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    10
 * Last Modified: $Date: 2006/02/25 00:46:33 $
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
 * Haskell language file for GeSHi.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    13
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    14
 * CHANGES
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    15
 * -------
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    16
 * 2005/08/27 (1.0.0)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    17
 *   -  First Release
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    18
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    19
 * TODO (updated 2005/08/27)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    20
 * -------------------------
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
 *************************************************************************************
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
 *   This file is part of GeSHi.
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
 *   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
    27
 *   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
    28
 *   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
    29
 *   (at your option) any later version.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    30
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    31
 *   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
    32
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    33
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    34
 *   GNU General Public License for more details.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    35
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    36
 *   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
    37
 *   along with GeSHi; if not, write to the Free Software
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    38
 *   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
    39
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    40
 ************************************************************************************/
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    41
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    42
$language_data = array (
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    43
    'LANG_NAME' => 'Haskell',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    44
    'COMMENT_SINGLE' => array( 1 => '--'),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    45
    'COMMENT_MULTI' => array('{-' => '-}'),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    46
    'CASE_KEYWORDS' => 0,
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    47
    'QUOTEMARKS' => array('"'),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    48
    'ESCAPE_CHAR' => "\\",
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    49
    'KEYWORDS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    50
       /* main haskell keywords */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    51
        1 => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    52
           'as',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    53
           'case', 'of', 'class', 'data', 'default', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    54
           'deriving', 'do', 'forall', 'hiding', 'if', 'then',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    55
           'else', 'import', 'infix', 'infixl', 'infixr', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    56
           'instance', 'let', 'in', 'module', 'newtype',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    57
           'qualified', 'type', 'where'
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    58
            ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    59
        /* define names of main librarys, so we can link to it */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    60
        2 => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    61
           'Foreign', 'Numeric', 'Prelude'
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    62
           ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    63
        /* just link to Prelude functions, cause it's the default opened library when starting Haskell */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    64
        3 => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    65
           'not', 'otherwise', 'maybe', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    66
           'either', 'fst', 'snd', 'curry', 'uncurry',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    67
           'compare', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    68
           'max', 'min', 'succ', 'pred', 'toEnum', 'fromEnum',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    69
           'enumFrom', 'enumFromThen', 'enumFromTo', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    70
           'enumFromThenTo', 'minBound', 'maxBound',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    71
           'negate', 'abs', 'signum',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    72
           'fromInteger', 'toRational', 'quot', 'rem',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    73
           'div', 'mod', 'quotRem', 'divMod', 'toInteger',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    74
           'recip', 'fromRational', 'pi', 'exp',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    75
           'log', 'sqrt', 'logBase', 'sin', 'cos',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    76
           'tan', 'asin', 'acos', 'atan', 'sinh', 'cosh',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    77
           'tanh', 'asinh', 'acosh', 'atanh',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    78
           'properFraction', 'truncate', 'round', 'ceiling',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    79
           'floor', 'floatRadix', 'floatDigits', 'floatRange',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    80
           'decodeFloat', 'encodeFloat', 'exponent',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    81
           'significand', 'scaleFloat', 'isNaN', 'isInfinite',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    82
           'isDenomalized', 'isNegativeZero', 'isIEEE',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    83
           'atan2', 'subtract', 'even', 'odd', 'gcd',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    84
           'lcm', 'fromIntegral', 'realToFrac',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    85
           'return', 'fail', 'fmap',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    86
           'mapM', 'mapM_', 'sequence', 'sequence_',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    87
           'id', 'const','flip',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    88
           'until', 'asTypeOf', 'error', 'undefined',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    89
           'seq','map','filter', 'head',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    90
           'last', 'tail', 'init', 'null', 'length',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    91
           'reverse', 'foldl', 'foldl1', 'foldr',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    92
           'foldr1', 'and', 'or', 'any', 'all', 'sum',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    93
           'product', 'concat', 'concatMap', 'maximum',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    94
           'minimum', 'scanl', 'scanl1', 'scanr', 'scanr1',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    95
           'iterate', 'repeat', 'cycle', 'take', 'drop',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    96
           'splitAt', 'teakWhile', 'dropWhile', 'span',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    97
           'break', 'elem', 'notElem', 'lookup', 'zip',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    98
           'zip3', 'zipWith', 'zipWith3', 'unzip', 'unzip3',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    99
           'unzip', 'unzip3', 'lines', 'words', 'unlines',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   100
           'unwords', 'showPrec', 'show', 'showList',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   101
           'shows', 'showChar', 'showString', 'showParen',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   102
           'readsPrec', 'readList', 'reads', 'readParen',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   103
           'read', 'lex', 'putChar', 'putStr', 'putStrLn',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   104
           'print', 'getChar', 'getLine', 'getContents',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   105
           'interact', 'readFile', 'writeFile', 'appendFile',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   106
           'readIO', 'readLn', 'ioError', 'userError', 'catch'
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   107
           ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   108
        /* here Prelude Types */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   109
        4 => array (
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   110
            'Bool', 'Maybe', 'Either', 'Ord', 'Ordering', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   111
            'Char', 'String', 'Eq', 'Enum', 'Bounded', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   112
            'Int', 'Integer', 'Float', 'Double', 'Rational',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   113
            'Num', 'Real', 'Integral', 'Fractional', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   114
            'Floating', 'RealFrac', 'RealFloat', 'Monad',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   115
            'Functor', 'Show', 'ShowS', 'Read', 'ReadS', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   116
            'IO'
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   117
           ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   118
        /* finally Prelude Exceptions */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   119
        5 => array (
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   120
            'IOError', 'IOException'
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   121
            )
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   122
        ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   123
    /* highlighting symbols is really important in Haskell */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   124
    'SYMBOLS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   125
           '|', '->', '<-', '@', '!', '::', '_', '~', '=',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   126
           '&&', '||', '==', '/=', '<', '<=', '>', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   127
           '>=','+', '-', '*','/',  '**', '^', '^^', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   128
           '>>=', '>>', '=<<',  '$', '.',  '$!',  
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   129
           '++', '!!'
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   130
            ), 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   131
    'CASE_SENSITIVE' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   132
        GESHI_COMMENTS => true,
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   133
        1 => true,
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   134
        2 => true, /* functions name are case seinsitive */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   135
        3 => true, /* types name too */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   136
        4 => true, /* finally exceptions too */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   137
        5 => true
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   138
        ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   139
    'STYLES' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   140
        'KEYWORDS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   141
            1 => 'color: #06c; font-weight: bold;', /* nice blue */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   142
            2 => 'color: #06c; font-weight: bold;', /* blue as well */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   143
            3 => 'font-weight: bold;', /* make the preduled functions bold */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   144
            4 => 'color: #cccc00; font-weight: bold;', /* give types a different bg */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   145
            5 => 'color: maroon;'
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   146
            ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   147
        'COMMENTS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   148
            1 => 'color: #5d478b; font-style: italic;',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   149
            'MULTI' => 'color: #5d478b; font-style: italic;' /* light purpHle */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   150
            ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   151
        'ESCAPE_CHAR' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   152
            ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   153
        'BRACKETS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   154
            0 => 'color: green;'
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   155
            ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   156
        'STRINGS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   157
            0 => 'background-color: #3cb371;' /* nice green */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   158
            ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   159
        'NUMBERS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   160
            0 => 'color: red;' /* pink */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   161
            ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   162
        'METHODS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   163
            1 => 'color: #060;' /* dark green */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   164
            ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   165
        'REGEXPS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   166
            ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   167
        'SYMBOLS' => array( 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   168
            0 => 'color: #66cc66; font-weight: bold;'
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   169
            ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   170
        'SCRIPT' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   171
            )
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   172
        ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   173
    'URLS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   174
        /* some of keywords are Prelude functions */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   175
        1 => '',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   176
        /* link to the wanted library */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   177
        2 => 'http://haskell.org/ghc/docs/latest/html/libraries/base/{FNAME}.html',
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   178
        /* link to Prelude functions */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   179
        3 => 'http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:{FNAME}', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   180
        /* link to Prelude types */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   181
        4 => 'http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#t:{FNAME}', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   182
        /* link to Prelude exceptions */
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   183
        5 => 'http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#t:{FNAME}', 
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   184
        ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   185
    'OOLANG' => false,
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   186
    'OBJECT_SPLITTERS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   187
        ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   188
    'REGEXPS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   189
        ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   190
    'STRICT_MODE_APPLIES' => GESHI_NEVER,
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   191
    'SCRIPT_DELIMITERS' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   192
        ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   193
    'HIGHLIGHT_STRICT_BLOCK' => array(
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   194
        )
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   195
);
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   196
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   197
?>