[25027] | 1 | <?php
|
---|
| 2 | /*************************************************************************************
|
---|
| 3 | * bf.php
|
---|
| 4 | * ----------
|
---|
| 5 | * Author: Benny Baumann ([email protected])
|
---|
| 6 | * Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
|
---|
| 7 | * Release Version: 1.0.8.8
|
---|
| 8 | * Date Started: 2009/10/31
|
---|
| 9 | *
|
---|
| 10 | * Brainfuck language file for GeSHi.
|
---|
| 11 | *
|
---|
| 12 | * CHANGES
|
---|
| 13 | * -------
|
---|
| 14 | * 2008/10/31 (1.0.8.1)
|
---|
| 15 | * - First Release
|
---|
| 16 | *
|
---|
| 17 | * TODO
|
---|
| 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 | $language_data = array (
|
---|
| 40 | 'LANG_NAME' => 'Brainfuck',
|
---|
| 41 | 'COMMENT_SINGLE' => array(),
|
---|
| 42 | 'COMMENT_MULTI' => array(),
|
---|
| 43 | 'COMMENT_REGEXP' => array(1 => '/[^\n+\-<>\[\]\.\,Y]+/s'),
|
---|
| 44 | 'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
|
---|
| 45 | 'QUOTEMARKS' => array(),
|
---|
| 46 | 'ESCAPE_CHAR' => '',
|
---|
| 47 | 'KEYWORDS' => array(
|
---|
| 48 | ),
|
---|
| 49 | 'SYMBOLS' => array(
|
---|
| 50 | 0 => array('+', '-'),
|
---|
| 51 | 1 => array('[', ']'),
|
---|
| 52 | 2 => array('<', '>'),
|
---|
| 53 | 3 => array('.', ','),
|
---|
| 54 | 4 => array('Y') //Brainfork Extension ;-)
|
---|
| 55 | ),
|
---|
| 56 | 'CASE_SENSITIVE' => array(
|
---|
| 57 | GESHI_COMMENTS => false,
|
---|
| 58 | ),
|
---|
| 59 | 'STYLES' => array(
|
---|
| 60 | 'KEYWORDS' => array(
|
---|
| 61 | ),
|
---|
| 62 | 'COMMENTS' => array(
|
---|
| 63 | 1 => 'color: #666666; font-style: italic;'
|
---|
| 64 | ),
|
---|
| 65 | 'BRACKETS' => array(
|
---|
| 66 | 0 => 'color: #66cc66;'
|
---|
| 67 | ),
|
---|
| 68 | 'STRINGS' => array(
|
---|
| 69 | 0 => 'color: #ff0000;'
|
---|
| 70 | ),
|
---|
| 71 | 'NUMBERS' => array(
|
---|
| 72 | ),
|
---|
| 73 | 'METHODS' => array(
|
---|
| 74 | ),
|
---|
| 75 | 'SYMBOLS' => array(
|
---|
| 76 | 0 => 'color: #006600;',
|
---|
| 77 | 1 => 'color: #660000;',
|
---|
| 78 | 2 => 'color: #000066;',
|
---|
| 79 | 3 => 'color: #660066;',
|
---|
| 80 | 4 => 'color: #666600;'
|
---|
| 81 | ),
|
---|
| 82 | 'ESCAPE_CHAR' => array(
|
---|
| 83 | ),
|
---|
| 84 | 'SCRIPT' => array(
|
---|
| 85 | ),
|
---|
| 86 | 'REGEXPS' => array(
|
---|
| 87 | )
|
---|
| 88 | ),
|
---|
| 89 | 'URLS' => array(
|
---|
| 90 | ),
|
---|
| 91 | 'OOLANG' => false,
|
---|
| 92 | 'OBJECT_SPLITTERS' => array(
|
---|
| 93 | ),
|
---|
| 94 | 'REGEXPS' => array(
|
---|
| 95 | ),
|
---|
| 96 | 'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
---|
| 97 | 'SCRIPT_DELIMITERS' => array(
|
---|
| 98 | ),
|
---|
| 99 | 'HIGHLIGHT_STRICT_BLOCK' => array(
|
---|
| 100 | ),
|
---|
| 101 | 'TAB_WIDTH' => 4,
|
---|
| 102 | 'PARSER_CONTROL' => array(
|
---|
| 103 | 'ENABLE_FLAGS' => array(
|
---|
| 104 | 'STRINGS' => GESHI_NEVER,
|
---|
| 105 | 'NUMBERS' => GESHI_NEVER
|
---|
| 106 | ),
|
---|
| 107 | 'KEYWORDS' => array(
|
---|
| 108 | 'DISALLOW_BEFORE' => '',
|
---|
| 109 | 'DISALLOW_AFTER' => ''
|
---|
| 110 | )
|
---|
| 111 | )
|
---|
| 112 | );
|
---|
| 113 |
|
---|
| 114 | ?>
|
---|