[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

   1  <?php
   2  /*************************************************************************************
   3   * zxbasic.php
   4   * -------------
   5   * Author: Jose Rodriguez (a.k.a. Boriel)
   6   * Based on Copyright: (c) 2005 Roberto Rossi (http://rsoftware.altervista.org) Freebasic template
   7   * Release Version: 1.0.9.1
   8   * Date Started: 2010/06/19
   9   *
  10   * ZXBasic language file for GeSHi.
  11   *
  12   * More details at http://www.zxbasic.net/
  13   *
  14   * CHANGES
  15   * -------
  16   * 2010/06/19 (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' => 'ZXBasic',
  44      'COMMENT_SINGLE' => array(
  45          1 => "'",
  46          2 => '#',
  47          3 => 'REM'
  48          ),
  49      'COMMENT_MULTI' => array("/'" => "'/"),
  50      'CASE_KEYWORDS' => GESHI_CAPS_UPPER, //GESHI_CAPS_NO_CHANGE,
  51      'QUOTEMARKS' => array('"'),
  52      'ESCAPE_CHAR' => '\\',
  53      'KEYWORDS' => array(
  54          1 => array(
  55              "ASM", "BEEP", "BOLD", "BORDER", "BRIGHT", "ByRef", "ByVal", "CAST",
  56              "CIRCLE", "CLS", "CONST", "CONTINUE", "DECLARE", "DIM", "DO",
  57              "DRAW", "ELSE", "ELSEIF", "END", "EXIT", "FastCall", "FLASH", "FOR",
  58              "FUNCTION", "GOTO", "GOSUB", "GO", "IF", "INK", "INVERSE", "ITALIC",
  59              "LET", "LOAD", "LOOP", "NEXT", "OVER", "PAPER", "PAUSE", "PI",
  60              "PLOT", "POKE", "PRINT", "RANDOMIZE", "REM", "RETURN", "SAVE",
  61              "StdCall", "Sub", "THEN", "TO", "UNTIL", "VERIFY", "WEND", "WHILE",
  62              ),
  63  
  64          // types
  65          2 => array(
  66              'byte', 'ubyte', 'integer', 'uinteger', 'long', 'ulong', 'fixed',
  67              'float', 'string'
  68              ),
  69  
  70          // Functions
  71          3 => array(
  72              "ABS", "ACS", "ASN", "ATN", "CHR", "CODE", "COS", "CSRLIN", "EXP",
  73              "HEX", "HEX16", "INKEY", "INT", "LEN", "LN", "PEEK", "POS", "RND",
  74              "SCREEN$", "SGN", "SIN", "SQR", "STR", "TAN", "VAL",
  75              ),
  76  
  77          // Operators and modifiers
  78          4 => array(
  79              "AT", "AS", "AND", "MOD", "NOT", "OR", "SHL", "SHR", "STEP", "XOR"
  80              )
  81          ),
  82      'SYMBOLS' => array(
  83          '(', ')'
  84          ),
  85      'CASE_SENSITIVE' => array(
  86          GESHI_COMMENTS => false,
  87          1 => false,
  88          2 => false,
  89          3 => false,
  90          4 => false
  91          ),
  92      'STYLES' => array(
  93          'KEYWORDS' => array(
  94              1 => 'color: #000080; font-weight: bold;', // Commands
  95              2 => 'color: #800080; font-weight: bold;', // Types
  96              3 => 'color: #006000; font-weight: bold;', // Functions
  97              4 => 'color: #801010; font-weight: bold;'  // Operators and Modifiers
  98              ),
  99          'COMMENTS' => array(
 100              1 => 'color: #808080; font-style: italic;',
 101              2 => 'color: #339933;',
 102              3 => 'color: #808080; font-style: italic;',
 103              'MULTI' => 'color: #808080; font-style: italic;'
 104              ),
 105          'BRACKETS' => array(
 106              //0 => 'color: #66cc66;'
 107              0 => 'color: #007676;'
 108              ),
 109          'STRINGS' => array(
 110              //0 => 'color: #ff0000;'
 111              0 => 'color: #A00000; font-style: italic;'
 112              ),
 113          'NUMBERS' => array(
 114              //0 => 'color: #cc66cc;'
 115              0 => 'color: #b05103;'// font-weight: bold;'
 116              ),
 117          'METHODS' => array(
 118              0 => 'color: #66cc66;'
 119              ),
 120          'SYMBOLS' => array(
 121              0 => 'color: #66cc66;'
 122              ),
 123          'ESCAPE_CHAR' => array(
 124              0 => 'color: #000099;'
 125              ),
 126          'SCRIPT' => array(
 127              ),
 128          'REGEXPS' => array(
 129              )
 130          ),
 131      'URLS' => array(
 132          1 => '',
 133          2 => '',
 134          3 => '',
 135          4 => ''
 136          ),
 137      'OOLANG' => true,
 138      'OBJECT_SPLITTERS' => array(
 139          1 => '.'
 140          ),
 141      'REGEXPS' => array(
 142          ),
 143      'STRICT_MODE_APPLIES' => GESHI_NEVER,
 144      'SCRIPT_DELIMITERS' => array(
 145          ),
 146      'HIGHLIGHT_STRICT_BLOCK' => array(
 147          )
 148  );