[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/geshi/geshi/src/geshi/ -> rexx.php (source)

   1  <?php
   2  /*************************************************************************************
   3   * rexx.php
   4   * ---------------------------------
   5   * Author: Jon Wolfers (sahananda@windhorse.biz)
   6   * Contributors:
   7   *    - Walter Pachl (pachl@chello.at)
   8   * Copyright: (c) 2008 Jon Wolfers, (c) 2012 Walter Pachl
   9   * Release Version: 1.0.9.1
  10   * Date Started: 2008/01/07
  11   *
  12   * Rexx language file for GeSHi.
  13   *
  14   * CHANGES
  15   * -------
  16   * 2012/07/29 (1.0.0)
  17   *    -  tried to get it syntactically right
  18   *
  19   * TODO (updated 2012/07/29)
  20   * -------------------------
  21   *   -  Get it working on rosettacode.org
  22   *
  23   *************************************************************************************
  24   *
  25   *      This file is part of GeSHi.
  26   *
  27   *    GeSHi is free software; you can redistribute it and/or modify
  28   *    it under the terms of the GNU General Public License as published by
  29   *    the Free Software Foundation; either version 2 of the License, or
  30   *    (at your option) any later version.
  31   *
  32   *    GeSHi is distributed in the hope that it will be useful,
  33   *    but WITHOUT ANY WARRANTY; without even the implied warranty of
  34   *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  35   *    GNU General Public License for more details.
  36   *
  37   *    You should have received a copy of the GNU General Public License
  38   *    along with GeSHi; if not, write to the Free Software
  39   *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  40   *
  41   ************************************************************************************/
  42  
  43  $language_data = array (
  44      'LANG_NAME' => 'rexx',
  45      'COMMENT_SINGLE' => array(1 => '--'),
  46      'COMMENT_MULTI' => array('/*' => '*/'),
  47      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  48      'QUOTEMARKS' => array("'", '"'),
  49      'ESCAPE_CHAR' => '',
  50      'KEYWORDS' => array(
  51          1 => array(
  52              'address', 'arg', 'attribute', 'call', 'constant', 'do',
  53              'drop', 'exit', 'forward', 'if',
  54              'interpret', 'iterate', 'leave', 'loop', 'nop', 'numeric',
  55              'options', 'parse', 'procedure', 'pull', 'push', 'queue',
  56              'raise', 'return', 'say', 'select', 'signal', 'trace'
  57              ),
  58          2 => array(
  59              'by', 'digits', 'engineering', 'error', 'expose',
  60              'failure', 'for', 'forever', 'form', 'fuzz', 'halt',
  61              'name', 'novalue', 'off', 'on', 'over', 'scientific', 'source',
  62              'syntax', 'to', 'until', 'upper', 'version',
  63              'while', 'with'
  64              ),
  65          3 => array(
  66              'else', 'end', 'otherwise', 'then', 'when'
  67              ),
  68          4 => array(
  69              'rc', 'result', 'sigl'
  70              ),
  71          5 => array(
  72              'placeholderforoorexxdirectives'
  73              ),
  74          6 => array(
  75              'abbrev', 'abs', 'beep', 'bitand', 'bitor',
  76              'bitxor', 'b2x', 'center', 'centre', 'changestr', 'charin',
  77              'charout', 'chars', 'compare', 'condition', 'copies',
  78              'countstr', 'c2d', 'c2x', 'datatype', 'date', 'delstr',
  79              'delword', 'directory', 'd2c', 'd2x', 'endlocal',
  80              'errortext', 'filespec', 'format', 'insert',
  81              'lastpos', 'left', 'length', 'linein', 'lineout', 'lines',
  82              'lower', 'max', 'min', 'overlay', 'pos', 'queued', 'random',
  83              'reverse', 'right', 'rxfuncadd', 'rxfuncdrop', 'rxfuncquery',
  84              'rxqueue', 'setlocal', 'sign', 'sourceline', 'space',
  85              'stream', 'strip', 'substr', 'subword', 'symbol', 'time',
  86              'translate', 'trunc', 'userid', 'value',
  87              'var', 'verify', 'word', 'wordindex', 'wordlength', 'wordpos',
  88              'words', 'xrange', 'x2b', 'x2c', 'x2d'
  89              )
  90          ),
  91      'SYMBOLS' => array(
  92          '(', ')', '<', '>', '=', '+', '-', '*', '**', '/', '|', '%', '^', '&', ':'
  93          ),
  94      'CASE_SENSITIVE' => array(
  95          GESHI_COMMENTS => true,
  96          1 => false,
  97          2 => false,
  98          3 => false,
  99          4 => false,
 100          5 => false,
 101          6 => false
 102          ),
 103      'STYLES' => array(
 104          'KEYWORDS' => array(
 105              1 => 'color: #b1b100;',
 106              2 => 'color: #ff0000; font-weight: bold;',
 107              3 => 'color: #00ff00; font-weight: bold;',
 108              4 => 'color: #0000ff; font-weight: bold;',
 109              5 => 'color: #880088; font-weight: bold;',
 110              6 => 'color: #888800; font-weight: bold;'
 111              ),
 112          'COMMENTS' => array(
 113              1 => 'color: #666666;',
 114              'MULTI' => 'color: #808080;'
 115              ),
 116          'ESCAPE_CHAR' => array(
 117              0 => 'color: #000099; font-weight: bold;'
 118              ),
 119          'BRACKETS' => array(
 120              0 => 'color: #66cc66;'
 121              ),
 122          'STRINGS' => array(
 123              0 => 'color: #ff0000;'
 124              ),
 125          'NUMBERS' => array(
 126              0 => 'color: #cc66cc;'
 127              ),
 128          'METHODS' => array(
 129              1 => 'color: #202020;',
 130              2 => 'color: #202020;'
 131              ),
 132          'SYMBOLS' => array(
 133              0 => 'color: #66cc66;'
 134              ),
 135          'REGEXPS' => array(
 136              ),
 137          'SCRIPT' => array(
 138              )
 139          ),
 140      'URLS' => array(
 141          1 => '',
 142          2 => '',
 143          3 => '',
 144          4 => '',
 145          5 => '',
 146          6 => ''
 147          ),
 148      'OOLANG' => false,
 149      'OBJECT_SPLITTERS' => array(
 150          1 => '.'
 151          ),
 152      'REGEXPS' => array(
 153          ),
 154      'STRICT_MODE_APPLIES' => GESHI_NEVER,
 155      'SCRIPT_DELIMITERS' => array(
 156          ),
 157      'HIGHLIGHT_STRICT_BLOCK' => array(
 158          ),
 159      'TAB_WIDTH' => 4
 160  );