[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

   1  <?php
   2  /*************************************************************************************
   3   * qbasic.php
   4   * ----------
   5   * Author: Nigel McNie (nigel@geshi.org)
   6   * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
   7   * Release Version: 1.0.9.1
   8   * Date Started: 2004/06/20
   9   *
  10   * QBasic/QuickBASIC language file for GeSHi.
  11   *
  12   * CHANGES
  13   * -------
  14   * 2008/05/23 (1.0.7.22)
  15   *  -  Added description of extra language features (SF#1970248)
  16   * 2004/11/27 (1.0.3)
  17   *  -  Added support for multiple object splitters
  18   * 2004/10/27 (1.0.2)
  19   *   -  Added support for URLs
  20   * 2004/08/05 (1.0.1)
  21   *   -  Added support for symbols
  22   *   -  Removed unnessecary slashes from some keywords
  23   * 2004/07/14 (1.0.0)
  24   *   -  First Release
  25   *
  26   * TODO (updated 2004/11/27)
  27   * -------------------------
  28   * * Make sure all possible combinations of keywords with
  29   *   a space in them (EXIT FOR, END SELECT) are added
  30   *   to the first keyword group
  31   * * Update colours, especially for the first keyword group
  32   *
  33   *************************************************************************************
  34   *
  35   *     This file is part of GeSHi.
  36   *
  37   *   GeSHi is free software; you can redistribute it and/or modify
  38   *   it under the terms of the GNU General Public License as published by
  39   *   the Free Software Foundation; either version 2 of the License, or
  40   *   (at your option) any later version.
  41   *
  42   *   GeSHi is distributed in the hope that it will be useful,
  43   *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  44   *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  45   *   GNU General Public License for more details.
  46   *
  47   *   You should have received a copy of the GNU General Public License
  48   *   along with GeSHi; if not, write to the Free Software
  49   *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  50   *
  51   ************************************************************************************/
  52  $language_data = array (
  53      'LANG_NAME' => 'QBasic/QuickBASIC',
  54      'COMMENT_SINGLE' => array(1 => "'"),
  55      'COMMENT_MULTI' => array(),
  56      'COMMENT_REGEXP' => array(
  57          //Single-Line Comments using REM command
  58          2 => "/\bREM.*?$/i",
  59          //Line numbers
  60          3 => "/^\s*\d+/im"
  61          ),
  62      'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
  63      'QUOTEMARKS' => array('"'),
  64      'ESCAPE_CHAR' => '',
  65      'NUMBERS' =>
  66          GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_FLT_NONSCI |
  67          GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT |
  68          GESHI_NUMBER_FLT_SCI_ZERO,
  69      'KEYWORDS' => array(
  70          1 => array(
  71              'DO', 'LOOP', 'WHILE', 'WEND', 'THEN', 'ELSE', 'ELSEIF', 'IF',
  72              'FOR', 'TO', 'NEXT', 'STEP', 'GOTO', 'GOSUB', 'CALL', 'CALLS',
  73              'SUB', 'FUNCTION', 'RETURN', 'RESUME', 'SELECT', 'CASE', 'UNTIL'
  74              ),
  75          3 => array(
  76              'ABS', 'ABSOLUTE', 'ACCESS', 'ALIAS', 'AND', 'ANY', 'APPEND', 'AS', 'ASC', 'ATN',
  77              'BASE', 'BEEP', 'BINARY', 'BLOAD', 'BSAVE', 'BYVAL',
  78              'CDBL', 'CDECL', 'CHAIN', 'CHDIR', 'CHR$', 'CINT', 'CIRCLE', 'CLEAR',
  79              'CLNG', 'CLOSE', 'CLS', 'COM', 'COMMAND$', 'COMMON', 'CONST', 'COS', 'CSNG',
  80              'CSRLIN', 'CVD', 'CVDMBF', 'CVI', 'CVL', 'CVS', 'CVSMDF', 'DATA', 'DATE$',
  81              'DECLARE', 'DEF', 'FN', 'SEG', 'DEFDBL', 'DEFINT', 'DEFLNG', 'DEFSNG', 'DEFSTR',
  82              'DIM', 'DOUBLE', 'DRAW', 'END', 'ENVIRON', 'ENVIRON$', 'EOF', 'EQV', 'ERASE',
  83              'ERDEV', 'ERDEV$', 'ERL', 'ERR', 'ERROR', 'EXIT', 'EXP', 'FIELD', 'FILEATTR',
  84              'FILES', 'FIX', 'FRE', 'FREEFILE', 'GET', 'HEX$', 'IMP', 'INKEY$',
  85              'INP', 'INPUT', 'INPUT$', 'INSTR', 'INT', 'INTEGER', 'IOCTL', 'IOCTL$', 'IS',
  86              'KEY', 'KILL', 'LBOUND', 'LCASE$', 'LEFT$', 'LEN', 'LET', 'LINE', 'LIST', 'LOC',
  87              'LOCAL', 'LOCATE', 'LOCK', 'LOF', 'LOG', 'LONG', 'LPOS', 'LPRINT',
  88              'LSET', 'LTRIM$', 'MID$', 'MKD$', 'MKDIR', 'MKDMBF$', 'MKI$', 'MKL$',
  89              'MKS$', 'MKSMBF$', 'MOD', 'NAME', 'NOT', 'OCT$', 'OFF', 'ON', 'PEN', 'PLAY',
  90              'OPEN', 'OPTION', 'OR', 'OUT', 'OUTPUT',
  91              'PAINT', 'PALETTE', 'PCOPY', 'PEEK', 'PMAP', 'POINT', 'POKE', 'POS', 'PRESET',
  92              'PRINT', 'PSET', 'PUT', 'RANDOM', 'RANDOMIZE', 'READ', 'REDIM', 'RESET',
  93              'RESTORE', 'RIGHT$', 'RMDIR', 'RND', 'RSET', 'RTRIM$', 'RUN', 'SADD', 'SCREEN',
  94              'SEEK', 'SETMEM', 'SGN', 'SHARED', 'SHELL', 'SIGNAL', 'SIN', 'SINGLE', 'SLEEP',
  95              'SOUND', 'SPACE$', 'SPC', 'SQR', 'STATIC', 'STICK', 'STOP', 'STR$', 'STRIG',
  96              'STRING', 'STRING$', 'SWAP', 'SYSTEM', 'TAB', 'TAN', 'TIME$', 'TIMER',
  97              'TROFF', 'TRON', 'TYPE', 'UBOUND', 'UCASE$', 'UEVENT', 'UNLOCK', 'USING', 'VAL',
  98              'VARPTR', 'VARPTR$', 'VARSEG', 'VIEW', 'WAIT', 'WIDTH', 'WINDOW', 'WRITE', 'XOR'
  99              )
 100          ),
 101      'SYMBOLS' => array(
 102          '(', ')', ',', '+', '-', '*', '/', '=', '<', '>', '^'
 103          ),
 104      'CASE_SENSITIVE' => array(
 105          GESHI_COMMENTS => false,
 106          1 => false,
 107          3 => false
 108          ),
 109      'STYLES' => array(
 110          'KEYWORDS' => array(
 111              1 => 'color: #a1a100;',
 112              3 => 'color: #000066;'
 113              ),
 114          'COMMENTS' => array(
 115              1 => 'color: #808080;',
 116              2 => 'color: #808080;',
 117              3 => 'color: #8080C0;'
 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              ),
 130          'SYMBOLS' => array(
 131              0 => 'color: #66cc66;'
 132              ),
 133          'ESCAPE_CHAR' => array(
 134              0 => 'color: #000099;'
 135              ),
 136          'SCRIPT' => array(
 137              ),
 138          'REGEXPS' => array(
 139              1 => 'color: #cc66cc;',
 140              2 => 'color: #339933;'
 141              )
 142          ),
 143      'URLS' => array(
 144          1 => '',
 145          3 => 'http://www.qbasicnews.com/qboho/qck{FNAMEL}.shtml'
 146          ),
 147      'OOLANG' => false,
 148      'OBJECT_SPLITTERS' => array(
 149          ),
 150      'REGEXPS' => array(
 151          1 => '&amp;(?:H[0-9a-fA-F]+|O[0-7]+)(?!\w)',
 152          2 => '#[0-9]+(?!\w)'
 153          ),
 154      'STRICT_MODE_APPLIES' => GESHI_NEVER,
 155      'SCRIPT_DELIMITERS' => array(
 156          ),
 157      'HIGHLIGHT_STRICT_BLOCK' => array(
 158          ),
 159      'TAB_WIDTH' => 8
 160  );