[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

   1  <?php
   2  /*************************************************************************************
   3   * ezt.php
   4   * -----------
   5   * Author: Ramesh Vishveshwar (ramesh.vishveshwar@gmail.com)
   6   * Copyright: (c) 2012 Ramesh Vishveshwar (http://thecodeisclear.in)
   7   * Release Version: 1.0.9.1
   8   * Date Started: 2012/09/01
   9   *
  10   * Easytrieve language file for GeSHi.
  11   *
  12   * CHANGES
  13   * -------
  14   * 2012/09/22 (1.0.0)
  15   *   - First Release
  16   *
  17   *************************************************************************************
  18   *
  19   *     This file is part of GeSHi.
  20   *
  21   *   GeSHi is free software; you can redistribute it and/or modify
  22   *   it under the terms of the GNU General Public License as published by
  23   *   the Free Software Foundation; either version 2 of the License, or
  24   *   (at your option) any later version.
  25   *
  26   *   GeSHi is distributed in the hope that it will be useful,
  27   *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  28   *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  29   *   GNU General Public License for more details.
  30   *
  31   *   You should have received a copy of the GNU General Public License
  32   *   along with GeSHi; if not, write to the Free Software
  33   *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  34   *
  35   ************************************************************************************/
  36  
  37  $language_data = array (
  38      'LANG_NAME' => 'EZT',
  39      'COMMENT_SINGLE' => array(),
  40      'COMMENT_MULTI' => array(),
  41      'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
  42      'COMMENT_REGEXP' => array(
  43          // First character of the line is an asterisk. Rest of the line is spaces/null
  44          0 => '/\*(\s|\D)?(\n)/',
  45          // Asterisk followed by any character & then a non numeric character.
  46          // This is to prevent expressions such as 25 * 4 from being marked as a comment
  47          // Note: 25*4 - 100 will mark *4 - 100 as a comment. Pls. space out expressions
  48          // In any case, 25*4 will result in an Easytrieve error
  49          1 => '/\*.([^0-9\n])+.*(\n)/'
  50          ),
  51      'QUOTEMARKS' => array("'", '"'),
  52      'ESCAPE_CHAR' => '',
  53      'KEYWORDS' => array(
  54          1 => array(
  55              'CONTROL','DEFINE','DISPLAY','DO','ELSE','END-DO','END-IF',
  56              'END-PROC','FILE','GET','GOTO','HEADING','IF','JOB','LINE',
  57              'PARM','PERFORM','POINT','PRINT','PROC','PUT','READ','RECORD',
  58              'REPORT','RETRIEVE','SEARCH','SELECT','SEQUENCE','SORT','STOP',
  59              'TITLE','WRITE'
  60              ),
  61          // Procedure Keywords (Names of specific procedures)
  62          2 => array (
  63              'AFTER-BREAK','AFTER-LINE','BEFORE-BREAK','BEFORE-LINE',
  64              'ENDPAGE','REPORT-INPUT','TERMINATION',
  65              ),
  66          // Macro names, Parameters
  67          3 => array (
  68              'COMPILE','CONCAT','DESC','GETDATE','MASK','PUNCH',
  69              'VALUE','SYNTAX','NEWPAGE','SKIP','COL','TALLY',
  70              'WITH'
  71              )
  72          ),
  73      'SYMBOLS' => array(
  74          '(',')','=','&',',','*','>','<','%'
  75          ),
  76      'CASE_SENSITIVE' => array(
  77          GESHI_COMMENTS => false,
  78          1 => false,
  79          2 => false,
  80          3 => false
  81          //4 => false,
  82          ),
  83      'STYLES' => array(
  84          'KEYWORDS' => array(
  85              1 => 'color: #FF0000;',
  86              2 => 'color: #21A502;',
  87              3 => 'color: #FF00FF;'
  88              ),
  89          'COMMENTS' => array(
  90              0 => 'color: #0000FF; font-style: italic;',
  91              1 => 'color: #0000FF; font-style: italic;'
  92              ),
  93          'ESCAPE_CHAR' => array(
  94              0 => ''
  95              ),
  96          'BRACKETS' => array(
  97              0 => 'color: #FF7400;'
  98              ),
  99          'STRINGS' => array(
 100              0 => 'color: #66CC66;'
 101              ),
 102          'NUMBERS' => array(
 103              0 => 'color: #736205;'
 104              ),
 105          'METHODS' => array(
 106              1 => '',
 107              2 => ''
 108              ),
 109          'SYMBOLS' => array(
 110              0 => 'color: #FF7400;'
 111              ),
 112          'REGEXPS' => array(
 113              0 => 'color: #E01B6A;'
 114              ),
 115          'SCRIPT' => array(
 116              0 => ''
 117              )
 118          ),
 119      'URLS' => array(
 120          1 => '',
 121          2 => '',
 122          3 => ''
 123          ),
 124      'OOLANG' => false,
 125      'OBJECT_SPLITTERS' => array(),
 126      'REGEXPS' => array(
 127          // We are trying to highlight Macro names here which preceded by %
 128          0 => '(%)([a-zA-Z0-9])+(\s|\n)'
 129          ),
 130      'STRICT_MODE_APPLIES' => GESHI_NEVER,
 131      'SCRIPT_DELIMITERS' => array(
 132          ),
 133      'HIGHLIGHT_STRICT_BLOCK' => array()
 134  );