[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

   1  <?php
   2  /*************************************************************************************
   3   * gambas.php
   4   * ---------
   5   * Author: Jesus Guardon (jguardon@telefonica.net)
   6   * Copyright: (c) 2009 Jesus Guardon (http://gambas-es.org),
   7   *                     Benny Baumann (http://qbnz.com/highlighter)
   8   * Release Version: 1.0.9.1
   9   * Date Started: 2004/08/20
  10   *
  11   * GAMBAS language file for GeSHi.
  12   * GAMBAS Official Site: http://gambas.sourceforge.net
  13   *
  14   * CHANGES
  15   * -------
  16   * 2009/09/26 (1.0.1)
  17   *  -  Splitted dollar-ended keywords in another group to match with or without '$'
  18   *  -  Modified URL for object/components keywords search through Google "I'm feeling lucky"
  19   * 2009/09/23 (1.0.0)
  20   *  -  Initial release
  21   *
  22   * TODO (updated 2009/09/26)
  23   * -------------------------
  24   *
  25   *************************************************************************************
  26   *
  27   *     This file is part of GeSHi.
  28   *
  29   *   GeSHi is free software; you can redistribute it and/or modify
  30   *   it under the terms of the GNU General Public License as published by
  31   *   the Free Software Foundation; either version 2 of the License, or
  32   *   (at your option) any later version.
  33   *
  34   *   GeSHi is distributed in the hope that it will be useful,
  35   *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  36   *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  37   *   GNU General Public License for more details.
  38   *
  39   *   You should have received a copy of the GNU General Public License
  40   *   along with GeSHi; if not, write to the Free Software
  41   *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  42   *
  43   ************************************************************************************/
  44  
  45  $language_data = array (
  46      'LANG_NAME' => 'GAMBAS',
  47      'COMMENT_SINGLE' => array(1 => "'"),
  48      'COMMENT_MULTI' => array(),
  49      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  50      'QUOTEMARKS' => array('"'),
  51      'ESCAPE_CHAR' => '\\',
  52      'NUMBERS' =>
  53          GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX |
  54          GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
  55      'KEYWORDS' => array(
  56          //keywords
  57          1 => array(
  58              'APPEND', 'AS', 'BREAK', 'BYREF', 'CASE', 'CATCH', 'CLASS', 'CLOSE', 'CONST', 'CONTINUE', 'COPY',
  59              'CREATE', 'DEBUG', 'DEC', 'DEFAULT', 'DIM', 'DO', 'EACH', 'ELSE', 'END', 'ENDIF', 'ERROR', 'EVENT', 'EXEC',
  60              'EXPORT', 'EXTERN', 'FALSE', 'FINALLY', 'FLUSH', 'FOR', 'FUNCTION', 'GOTO', 'IF', 'IN', 'INC', 'INHERITS',
  61              'INPUT', 'FROM', 'IS', 'KILL', 'LAST', 'LIBRARY', 'LIKE', 'LINE INPUT', 'LINK', 'LOCK', 'LOOP', 'ME',
  62              'MKDIR', 'MOVE', 'NEW', 'NEXT', 'NULL', 'OPEN', 'OPTIONAL', 'OUTPUT', 'PIPE', 'PRINT', 'PRIVATE',
  63              'PROCEDURE', 'PROPERTY', 'PUBLIC', 'QUIT', 'RAISE', 'RANDOMIZE', 'READ', 'REPEAT', 'RETURN', 'RMDIR',
  64              'SEEK', 'SELECT', 'SHELL', 'SLEEP', 'STATIC', 'STEP', 'STOP', 'SUB', 'SUPER', 'SWAP', 'THEN', 'TO',
  65              'TRUE', 'TRY', 'UNLOCK', 'UNTIL', 'WAIT', 'WATCH', 'WEND', 'WHILE', 'WITH', 'WRITE'
  66              ),
  67          //functions
  68          2 => array(
  69              'Abs', 'Access', 'Acos', 'Acosh', 'Alloc', 'Ang', 'Asc', 'ASin', 'ASinh', 'Asl', 'Asr', 'Assign', 'Atan',
  70              'ATan2', 'ATanh',
  71              'BChg', 'BClr', 'Bin', 'BSet', 'BTst',
  72              'CBool', 'Cbr', 'CByte', 'CDate', 'CFloat', 'Choose', 'Chr', 'CInt', 'CLong', 'Comp', 'Conv', 'Cos',
  73              'Cosh', 'CShort', 'CSng', 'CStr',
  74              'DateAdd', 'DateDiff', 'Day', 'DConv', 'Deg', 'DFree', 'Dir',
  75              'Eof', 'Eval', 'Exist', 'Exp', 'Exp10', 'Exp2', 'Expm',
  76              'Fix', 'Format', 'Frac', 'Free',
  77              'Hex', 'Hour', 'Hyp',
  78              'Iif', 'InStr', 'Int', 'IsAscii', 'IsBlank', 'IsBoolean', 'IsByte', 'IsDate', 'IsDigit', 'IsDir',
  79              'IsFloat', 'IsHexa', 'IsInteger', 'IsLCase', 'IsLetter', 'IsLong', 'IsNull', 'IsNumber', 'IsObject',
  80              'IsPunct', 'IsShort', 'IsSingle', 'IsSpace', 'IsString', 'IsUCase', 'IsVariant',
  81              'LCase', 'Left', 'Len', 'Lof', 'Log', 'Log10', 'Log2', 'Logp', 'Lsl', 'Lsr', 'LTrim',
  82              'Mag', 'Max', 'Mid', 'Min', 'Minute', 'Month', 'Now', 'Quote',
  83              'Rad', 'RDir', 'Realloc', 'Replace', 'Right', 'RInStr', 'Rnd', 'Rol', 'Ror', 'Round', 'RTrim',
  84              'Scan', 'SConv', 'Second', 'Seek', 'Sgn', 'Shl', 'Shr', 'Sin', 'Sinh', 'Space', 'Split', 'Sqr',
  85              'Stat', 'Str', 'StrPtr', 'Subst',
  86              'Tan', 'Tanh', 'Temp$', 'Time', 'Timer', 'Tr', 'Trim', 'TypeOf',
  87              'UCase', 'Unquote', 'Val', 'VarPtr', 'Week', 'WeekDay', 'Year'
  88              ),
  89          //string functions
  90          3 => array(
  91              'Bin$', 'Chr$', 'Conv$', 'DConv$', 'Format$', 'Hex$', 'LCase$', 'Left$', 'LTrim$', 'Mid$', 'Quote$',
  92              'Replace$', 'Right$', 'SConv$', 'Space$', 'Str$', 'String$', 'Subst$', 'Tr$', 'Trim$', 'UCase$',
  93              'Unquote$'
  94              ),
  95          //datatypes
  96          4 => array(
  97              'Boolean', 'Byte', 'Short', 'Integer', 'Long', 'Single', 'Float', 'Date', 'String', 'Variant', 'Object',
  98              'Pointer', 'File'
  99              ),
 100          //operators
 101          5 => array(
 102              'AND', 'DIV', 'MOD', 'NOT', 'OR', 'XOR'
 103              ),
 104          //objects/classes
 105          6 => array(
 106              'Application', 'Array', 'Byte[]', 'Collection', 'Component', 'Enum', 'Observer', 'Param', 'Process',
 107              'Stream', 'System', 'User', 'Chart', 'Compress', 'Crypt', 'Blob', 'Connection', 'DB', 'Database',
 108              'DatabaseUser', 'Field', 'Index', 'Result', 'ResultField', 'Table', 'DataBrowser', 'DataCombo',
 109              'DataControl', 'DataSource', 'DataView', 'Desktop', 'DesktopFile', 'Balloon', 'ColorButton',
 110              'ColorChooser', 'DateChooser', 'DirChooser', 'DirView', 'Expander', 'FileChooser', 'FileView',
 111              'FontChooser', 'InputBox', 'ListContainer', 'SidePanel', 'Stock', 'TableView', 'ToolPanel', 'ValueBox',
 112              'Wizard', 'Dialog', 'ToolBar', 'WorkSpace', 'DnsClient', 'SerialPort', 'ServerSocket', 'Socket',
 113              'UdpSocket', 'FtpClient', 'HttpClient', 'SmtpClient', 'Regexp', 'Action', 'Button', 'CheckBox',
 114              'ColumnView', 'ComboBox', 'Draw', 'Container', 'Control', 'Cursor', 'DrawingArea', 'Embedder',
 115              'Font', 'Form', 'Frame', 'GridView', 'HBox', 'HPanel', 'HSplit', 'IconView', 'Image', 'Key', 'Label',
 116              'Line', 'ListBox', 'ListView', 'Menu', 'Message', 'Mouse', 'MovieBox', 'Panel', 'Picture', 'PictureBox',
 117              'ProgressBar', 'RadioButton', 'ScrollBar', 'ScrollView', 'Separator', 'Slider', 'SpinBox', 'TabStrip',
 118              'TextArea', 'TextBox', 'TextLabel', 'ToggleButton', 'TrayIcon', 'TreeView', 'VBox', 'VPanel', 'VSplit',
 119              'Watcher', 'Window', 'Dial', 'Editor', 'LCDNumber', 'Printer', 'TextEdit', 'WebBrowser', 'GLarea',
 120              'Report', 'ReportCloner', 'ReportContainer', 'ReportControl', 'ReportDrawing', 'ReportField', 'ReportHBox',
 121              'ReportImage', 'ReportLabel', 'ReportSection', 'ReportSpecialField', 'ReportTextLabel', 'ReportVBox',
 122              'CDRom', 'Channel', 'Music', 'Sound', 'Settings', 'VideoDevice', 'Vb', 'CGI', 'HTML', 'Request', 'Response',
 123              'Session', 'XmlDocument', 'XmlNode', 'XmlReader', 'XmlReaderNodeType', 'XmlWriter', 'RpcArray', 'RpcClient',
 124              'RpcFunction', 'RpcServer', 'RpcStruct', 'RpcType', 'XmlRpc', 'Xslt'
 125              ),
 126          //constants
 127          7 => array(
 128              'Pi'
 129              ),
 130          ),
 131      'SYMBOLS' => array(
 132          '&', '&=', '&/', '*', '*=', '+', '+=', '-', '-=', '//', '/', '/=', '=', '==', '\\', '\\=',
 133          '^', '^=', '[', ']', '{', '}', '<', '>', '<>', '<=', '>='
 134          ),
 135      'CASE_SENSITIVE' => array(
 136          GESHI_COMMENTS => false,
 137          1 => false,
 138          2 => false,
 139          3 => false,
 140          4 => false,
 141          5 => false,
 142          6 => false,
 143          7 => false,
 144          ),
 145      'STYLES' => array(
 146          'KEYWORDS' => array(
 147              1 => 'color: #0600FF; font-weight: bold;',          // Keywords
 148              2 => 'color: #8B1433;',                             // Functions
 149              3 => 'color: #8B1433;',                             // String Functions
 150              4 => 'color: #0600FF;',                             // Data Types
 151              5 => 'color: #1E90FF;',                             // Operators
 152              6 => 'color: #0600FF;',                             // Objects/Components
 153              7 => 'color: #0600FF;'                              // Constants
 154              ),
 155          'COMMENTS' => array(
 156              1 => 'color: #1A5B1A; font-style: italic;',
 157              'MULTI' => 'color: #1A5B1A; font-style: italic;'
 158              ),
 159          'ESCAPE_CHAR' => array(
 160              0 => 'color: #008080;'
 161              ),
 162          'BRACKETS' => array(
 163              0 => 'color: #612188;'
 164              ),
 165          'STRINGS' => array(
 166              0 => 'color: #7E4B05;'
 167              ),
 168          'NUMBERS' => array(
 169              0 => 'color: #FF0000;',
 170              GESHI_NUMBER_INT_BASIC => 'color: #FF0000;'
 171              ),
 172          'METHODS' => array(
 173              1 => 'color: #0000FF;'
 174              ),
 175          'SYMBOLS' => array(
 176              0 => 'color: #6132B2;'
 177              ),
 178          'REGEXPS' => array(
 179              //3 => 'color: #8B1433;'  //fakes '$' colour matched by REGEXP
 180              ),
 181          'SCRIPT' => array(
 182              )
 183          ),
 184      'URLS' => array(
 185          1 => 'http://gambasdoc.org/help/lang/{FNAMEL}',
 186          2 => 'http://gambasdoc.org/help/lang/{FNAMEL}',
 187          3 => 'http://www.google.com/search?hl=en&amp;q={FNAMEL}+site:http://gambasdoc.org/help/lang/&amp;btnI=I%27m%20Feeling%20Lucky',
 188          4 => 'http://gambasdoc.org/help/lang/type/{FNAMEL}',
 189          5 => 'http://gambasdoc.org/help/lang/{FNAMEL}',
 190          6 => 'http://www.google.com/search?hl=en&amp;q={FNAMEL}+site:http://gambasdoc.org/&amp;btnI=I%27m%20Feeling%20Lucky',
 191          7 => 'http://gambasdoc.org/help/lang/{FNAMEL}'
 192          ),
 193      'OOLANG' => true,
 194      'OBJECT_SPLITTERS' => array(
 195          1 =>'.'
 196          ),
 197      'REGEXPS' => array(
 198          //3 => "\\$(?!\\w)"   //matches '$' at the end of Keyword
 199          ),
 200      'STRICT_MODE_APPLIES' => GESHI_MAYBE,
 201      'SCRIPT_DELIMITERS' => array(
 202          ),
 203      'HIGHLIGHT_STRICT_BLOCK' => array(
 204          ),
 205      'PARSER_CONTROL' => array(
 206          'KEYWORDS' => array(
 207              2 => array(
 208                  'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_\|%\\-&;\$])"
 209                  )
 210              )
 211          )
 212  );