Advertisement
kajacx

prpl.php

Sep 1st, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.37 KB | None | 0 0
  1. <?php
  2. /*************************************************************************************
  3.  * prpl.php
  4.  * --------
  5.  * Author: Karel Hrkal ([email protected])
  6.  * Release Version: 1.0.0
  7.  * Date Started: 2017/09/01
  8.  *
  9.  * PRPL language file for GeSHi.
  10.  *
  11.  * CHANGES
  12.  * -------
  13.  * 2017/09/01 (1.0.0)
  14.  *  -  First Release
  15.  *
  16.  * -------------------------
  17.  *
  18.  *************************************************************************************
  19.  *
  20.  *     This file is part of GeSHi.
  21.  *
  22.  *   GeSHi is free software; you can redistribute it and/or modify
  23.  *   it under the terms of the GNU General Public License as published by
  24.  *   the Free Software Foundation; either version 2 of the License, or
  25.  *   (at your option) any later version.
  26.  *
  27.  *   GeSHi is distributed in the hope that it will be useful,
  28.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  29.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  30.  *   GNU General Public License for more details.
  31.  *
  32.  *   You should have received a copy of the GNU General Public License
  33.  *   along with GeSHi; if not, write to the Free Software
  34.  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  35.  *
  36.  ************************************************************************************/
  37.  
  38. $language_data = array (
  39.     'LANG_NAME' => 'PRPL',
  40.     'COMMENT_SINGLE' => array(1 => '#'),
  41.     //'COMMENT_MULTI' => array('/*' => '*/'),
  42.     'QUOTEMARKS' => array("\""),
  43.     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  44.     //'NUMBERS' => '[0-9]+(\\.[0-9]+)?',
  45.     'KEYWORDS' => array(
  46.         1 => array( #flow control - dark green
  47.            'do','if','once','while','else','endif','endonce','endwhile','loop'
  48.         ),
  49.         2 => array( #stack manimulation - brown
  50.            'break','concat','do','dup','dup2','pop','repeat','return','swap'
  51.         ),
  52.         3 => array( #math - red
  53.            'abs','acos','add','and','asfloat','asin','asint','atan','atan2','ceil','cos','div','eq','eq0','floor',
  54.             'gt','gte','lt','lte','ln','log','log10','max','min','mod','mul','neg','neq','neq0','not','or','pow','sin','sqrt',
  55.             'sub','tan','xor'
  56.         ),
  57.         4 => array( #constans and iteration variables
  58.            'I','J','K','E','PI','TWOPI','TRUE','FALSE'
  59.         )
  60.     ),
  61.     'SYMBOLS' => array(
  62.         '(', ')', '[', ']', ':'
  63.     ),
  64.     'CASE_SENSITIVE' => array(
  65.         GESHI_COMMENTS => false,
  66.         1 => false,
  67.         2 => false,
  68.         3 => false,
  69.         4 => false,
  70.     ),
  71.     'STYLES' => array(
  72.         'KEYWORDS' => array(
  73.             1 => 'color: #006000;', #flow control - dark green
  74.            2 => 'color: #804000; font-weight: normal;', #stack manimulation - brown
  75.            3 => 'color: #ff0000;', #math - red
  76.            4 => 'color: #004080;'  #constans and iteration variables
  77.            ),
  78.         'COMMENTS' => array(
  79.             1 => 'color: #808080; font-style: italic;'
  80.             ),
  81.         'STRINGS' => array(
  82.             0 => 'color: #0000c0;'
  83.             ),
  84.         'NUMBERS' => array(
  85.             0 => 'color: #0000c0;'
  86.             ),
  87.         'METHODS' => array(
  88.             ),
  89.         'SYMBOLS' => array(
  90.             0 => 'color: #800000;',
  91.             ),
  92.         'REGEXPS' => array(
  93.             0 => 'color: #0080ff;', //Variables - local
  94.             1 => 'color: #8000ff;',  //Variables - global
  95.             2 => 'color: #004040; font-weight: bold;', //Script variables
  96.             3 => 'color: #800040; background-color: #ffff80; text-decoration: underline;', #method definition
  97.            4 => 'color: #800080;', #method usage
  98.            ),
  99.         'SCRIPT' => array(
  100.             )
  101.         ),
  102.     'URLS' => array(
  103.         1 => '',
  104.         2 => '',
  105.         3 => '',
  106.         4 => '',
  107.         5 => ''
  108.     ),
  109.     'OOLANG' => false,
  110.     'OBJECT_SPLITTERS' => array(
  111.         ),
  112.     'REGEXPS' => array(
  113.         0 => "(&lt;\\-|\\-\\&gt;|\\-\\-|\\-\\?)(\\!|[a-zA-Z_]+)", //Variables - local
  114.         1 => "(&lt;\\-|\\-\\&gt;|\\-\\-|\\-\\?)(\\!\\*|\\*[a-zA-Z_]+)", //Variables - global
  115.         2 => "\\$[a-zA-Z_]+", //Script variables
  116.         3 => ":[a-zA-Z_]+", #method definition
  117.        4 => "@[a-zA-Z_]+", #method usage
  118.        ),
  119.     'STRICT_MODE_APPLIES' => GESHI_NEVER,
  120.     'SCRIPT_DELIMITERS' => array(
  121.         ),
  122.     'HIGHLIGHT_STRICT_BLOCK' => array(
  123.         ),
  124.     'TAB_WIDTH' => 4
  125. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement