[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

   1  <?php
   2  /*************************************************************************************
   3   * scala.php
   4   * ----------
   5   * Author: Franco Lombardo (franco@francolombardo.net)
   6   * Copyright: (c) 2008 Franco Lombardo, Benny Baumann
   7   * Release Version: 1.0.9.1
   8   * Date Started: 2008/02/08
   9   *
  10   * Scala language file for GeSHi.
  11   *
  12   * CHANGES
  13   * -------
  14   * 2008/02/08 (1.0.7.22)
  15   *   -  First Release
  16   *
  17   * TODO (updated 2007/04/27)
  18   * -------------------------
  19   *
  20   *************************************************************************************
  21   *
  22   *     This file is part of GeSHi.
  23   *
  24   *   GeSHi is free software; you can redistribute it and/or modify
  25   *   it under the terms of the GNU General Public License as published by
  26   *   the Free Software Foundation; either version 2 of the License, or
  27   *   (at your option) any later version.
  28   *
  29   *   GeSHi is distributed in the hope that it will be useful,
  30   *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  31   *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  32   *   GNU General Public License for more details.
  33   *
  34   *   You should have received a copy of the GNU General Public License
  35   *   along with GeSHi; if not, write to the Free Software
  36   *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  37   *
  38   ************************************************************************************/
  39  
  40  $language_data = array (
  41      'LANG_NAME' => 'Scala',
  42      'COMMENT_SINGLE' => array(1 => '//'),
  43      'COMMENT_MULTI' => array('/*' => '*/'),
  44      'COMMENT_REGEXP' => array(2 => "/\\'(?!\w\\'|\\\\)\w+(?=\s)/"),
  45      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  46      'QUOTEMARKS' => array("'",'"'),
  47      'ESCAPE_CHAR' => '\\',
  48      'ESCAPE_REGEXP' => array(
  49          //Simple Single Char Escapes
  50          1 => "#\\\\[nfrtv\$\"\n\\\\]#i",
  51          //Hexadecimal Char Specs
  52          2 => "#\\\\x[\da-fA-F]{1,2}#i",
  53          //Hexadecimal Char Specs (unicode)
  54          3 => "#\\\\u[\da-fA-F]{1,4}#",
  55          //Hexadecimal Char Specs (Extended Unicode)
  56          4 => "#\\\\U[\da-fA-F]{1,8}#",
  57          ),
  58      'KEYWORDS' => array(
  59          1 => array(
  60              'abstract', 'case', 'catch', 'class', 'def',
  61              'do', 'else', 'extends', 'false', 'final',
  62              'finally', 'for', 'forSome', 'if', 'implicit',
  63              'import', 'match', 'new', 'null', 'object',
  64              'override', 'package', 'private', 'protected', 'requires',
  65              'return', 'sealed', 'super', 'this', 'throw',
  66              'trait', 'try', 'true', 'type', 'val',
  67              'var', 'while', 'with', 'yield'
  68              ),
  69          2 => array(
  70              'void', 'double', 'int', 'boolean', 'byte', 'short', 'long', 'char', 'float'
  71              )
  72          ),
  73      'SYMBOLS' => array(
  74          '(', ')', '[', ']', '{', '}', '*', '&', '%', '!', ';', '<', '>', '?',
  75          '_', ':', '=', '=>', '<<:',
  76          '<%', '>:', '#', '@'
  77          ),
  78      'CASE_SENSITIVE' => array(
  79          GESHI_COMMENTS => false,
  80          1 => true,
  81          2 => true
  82          ),
  83      'STYLES' => array(
  84          'KEYWORDS' => array(
  85              1 => 'color: #0000ff; font-weight: bold;',
  86              2 => 'color: #9999cc; font-weight: bold;',
  87              ),
  88          'COMMENTS' => array(
  89              1 => 'color: #008000; font-style: italic;',
  90              2 => 'color: #CC66FF;',
  91              'MULTI' => 'color: #00ff00; font-style: italic;'
  92              ),
  93          'ESCAPE_CHAR' => array(
  94              0 => 'color: #6666ff; font-weight: bold;',
  95              1 => 'color: #6666ff; font-weight: bold;',
  96              2 => 'color: #5555ff; font-weight: bold;',
  97              3 => 'color: #4444ff; font-weight: bold;',
  98              4 => 'color: #3333ff; font-weight: bold;'
  99              ),
 100          'BRACKETS' => array(
 101              0 => 'color: #F78811;'
 102              ),
 103          'STRINGS' => array(
 104              0 => 'color: #6666FF;'
 105              ),
 106          'NUMBERS' => array(
 107              0 => 'color: #F78811;'
 108              ),
 109          'METHODS' => array(
 110              1 => 'color: #000000;',
 111              2 => 'color: #000000;'
 112              ),
 113          'SYMBOLS' => array(
 114              0 => 'color: #000080;'
 115              ),
 116          'SCRIPT' => array(
 117              ),
 118          'REGEXPS' => array(
 119              )
 120          ),
 121      'URLS' => array(
 122          1 => 'http://scala-lang.org',
 123          2 => ''
 124          ),
 125      'OOLANG' => true,
 126      'OBJECT_SPLITTERS' => array(
 127          1 => '.'
 128          ),
 129      'REGEXPS' => array(
 130          ),
 131      'STRICT_MODE_APPLIES' => GESHI_NEVER,
 132      'SCRIPT_DELIMITERS' => array(
 133          ),
 134      'HIGHLIGHT_STRICT_BLOCK' => array(
 135          )
 136  );