[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

   1  <?php
   2  /*************************************************************************************
   3   * rbs.php
   4   * ------
   5   * Author: Deng Wen Gang (deng@priity.com)
   6   * Copyright: (c) 2013 Deng Wen Gang
   7   * Release Version: 1.0.9.1
   8   * Date Started: 2013/01/15
   9   *
  10   * RBScript language file for GeSHi.
  11   *
  12   * RBScript official website: http://docs.realsoftware.com/index.php/Rbscript
  13   *
  14   * CHANGES
  15   * -------
  16   * 2013/01/15 (1.0.0)
  17   *  -  First Release
  18   *
  19   * TODO
  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' => 'RBScript',
  44      'COMMENT_SINGLE' => array( 1 => '//', 2 => "'" ),
  45      'COMMENT_MULTI' => array(),
  46      'COMMENT_REGEXP' => array(
  47          3 => '/REM\s.*$/im',
  48          4 => '/&b[01]+/',
  49          5 => '/&o[0-7]+/',
  50          6 => '/&h[a-f0-9]+/i',
  51          7 => '/&c[a-f0-9]+/i',
  52          8 => '/&u[a-f0-9]+/i',
  53          ),
  54      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  55      'QUOTEMARKS' => array('"'),
  56      'ESCAPE_CHAR' => '',
  57      'KEYWORDS' => array(
  58          1 => array(
  59              'Int8', 'Int16', 'Int32', 'Int64', 'Uint8', 'Uint16', 'Uint32', 'Uint64', 'Byte', 'Integer',
  60              'Single', 'Double', 'Boolean', 'String', 'Color', 'Object', 'Variant'
  61              ),
  62          2 => array(
  63              'Private', 'Public', 'Protected',
  64              'Sub', 'Function', 'Delegate', 'Exception',
  65              ),
  66          3 => array(
  67              'IsA',
  68              'And', 'Or', 'Not', 'Xor',
  69              'If', 'Then', 'Else', 'ElseIf',
  70              'Select', 'Case',
  71              'For', 'Each', 'In', 'To', 'Step', 'Next',
  72              'Do', 'Loop', 'Until',
  73              'While', 'Wend',
  74              'Continue', 'Exit', 'Goto', 'End',
  75              ),
  76          4 => array(
  77              'Const', 'Static',
  78              'Dim', 'As', 'Redim',
  79              'Me', 'Self', 'Super', 'Extends', 'Implements',
  80              'ByRef', 'ByVal', 'Assigns', 'ParamArray',
  81              'Mod',
  82              'Raise',
  83              ),
  84          5 => array(
  85              'False', 'True', 'Nil'
  86              ),
  87          6 => array(
  88              'Abs',
  89              'Acos',
  90              'Asc',
  91              'AscB',
  92              'Asin',
  93              'Atan',
  94              'Atan2',
  95              'CDbl',
  96              'Ceil',
  97              'Chr',
  98              'ChrB',
  99              'CMY',
 100              'Cos',
 101              'CountFields',
 102              'CStr',
 103              'Exp',
 104              'Floor',
 105              'Format',
 106              'Hex',
 107              'HSV',
 108              'InStr',
 109              'InStrB',
 110              'Left',
 111              'LeftB',
 112              'Len',
 113              'LenB',
 114              'Log',
 115              'Lowercase',
 116              'LTrim',
 117              'Max',
 118              'Microseconds',
 119              'Mid',
 120              'MidB',
 121              'Min',
 122              'NthField',
 123              'Oct',
 124              'Pow',
 125              'Replace',
 126              'ReplaceB',
 127              'ReplaceAll',
 128              'ReplaceAllB',
 129              'RGB',
 130              'Right',
 131              'RightB',
 132              'Rnd',
 133              'Round',
 134              'RTrim',
 135              'Sin',
 136              'Sqrt',
 137              'Str',
 138              'StrComp',
 139              'Tan',
 140              'Ticks',
 141              'Titlecase',
 142              'Trim',
 143              'UBound',
 144              'Uppercase',
 145              'Val',
 146              ),
 147          ),
 148      'SYMBOLS' => array(
 149              '+', '-', '*', '/', '\\', '^', '<', '>', '=', '<>', '&'
 150          ),
 151      'CASE_SENSITIVE' => array(
 152          GESHI_COMMENTS => false,
 153          1 => false,
 154          2 => false,
 155          3 => false,
 156          4 => false,
 157          5 => false,
 158          6 => false
 159          ),
 160      'STYLES' => array(
 161          'KEYWORDS' => array(
 162              1 => 'color: #F660AB; font-weight: bold;',
 163              2 => 'color: #E56717; font-weight: bold;',
 164              3 => 'color: #8D38C9; font-weight: bold;',
 165              4 => 'color: #151B8D; font-weight: bold;',
 166              5 => 'color: #00C2FF; font-weight: bold;',
 167              6 => 'color: #3EA99F; font-weight: bold;'
 168              ),
 169          'COMMENTS' => array(
 170              1 => 'color: #008000;',
 171              2 => 'color: #008000;',
 172              3 => 'color: #008000;',
 173  
 174              4 => 'color: #800000;',
 175              5 => 'color: #800000;',
 176              6 => 'color: #800000;',
 177              7 => 'color: #800000;',
 178              8 => 'color: #800000;',
 179              ),
 180          'BRACKETS' => array(
 181              ),
 182          'STRINGS' => array(
 183              0 => 'color: #800000;'
 184              ),
 185          'NUMBERS' => array(
 186              ),
 187          'METHODS' => array(
 188              ),
 189          'SYMBOLS' => array(
 190              ),
 191          'ESCAPE_CHAR' => array(
 192              0 => 'color: #800000; font-weight: bold;'
 193              ),
 194          'SCRIPT' => array(
 195              ),
 196          'REGEXPS' => array(
 197              )
 198          ),
 199      'URLS' => array(
 200          1 => '',
 201          2 => '',
 202          3 => '',
 203          4 => '',
 204          5 => '',
 205          6 => ''
 206          ),
 207      'OOLANG' => false,
 208      'OBJECT_SPLITTERS' => array(
 209          ),
 210      'REGEXPS' => array(
 211          ),
 212      'STRICT_MODE_APPLIES' => GESHI_NEVER,
 213      'SCRIPT_DELIMITERS' => array(
 214          ),
 215      'HIGHLIGHT_STRICT_BLOCK' => array(
 216          ),
 217      'PARSER_CONTROL' => array(
 218          'ENABLE_FLAGS' => array(
 219              'BRACKETS' => GESHI_NEVER,
 220              'SYMBOLS' => GESHI_NEVER,
 221              'NUMBERS' => GESHI_NEVER
 222              )
 223          )
 224  );