source: documentation/trunk/packages/dokuwiki-2011-05-25a/inc/geshi/bnf.php@ 25027

Last change on this file since 25027 was 25027, checked in by jmt12, 12 years ago

Adding the packages directory, and within it a configured version of dokuwiki all ready to run

File size: 3.7 KB
Line 
1<?php
2/*************************************************************************************
3 * bnf.php
4 * --------
5 * Author: Rowan Rodrik van der Molen ([email protected])
6 * Copyright: (c) 2006 Rowan Rodrik van der Molen (http://www.bigsmoke.us/)
7 * Release Version: 1.0.8.8
8 * Date Started: 2006/09/28
9 *
10 * BNF (Backus-Naur form) language file for GeSHi.
11 *
12 * See http://en.wikipedia.org/wiki/Backus-Naur_form for more info on BNF.
13 *
14 * CHANGES
15 * -------
16 * 2008/05/23 (1.0.7.22)
17 * - Added description of extra language features (SF#1970248)
18 * - Removed superflicious regexps
19 * 2006/09/18 (1.0.0)
20 * - First Release
21 *
22 * TODO (updated 2006/09/18)
23 * -------------------------
24 * * Nothing I can think of
25 *
26 *************************************************************************************
27 *
28 * This file is part of GeSHi.
29 *
30 * GeSHi is free software; you can redistribute it and/or modify
31 * it under the terms of the GNU General Public License as published by
32 * the Free Software Foundation; either version 2 of the License, or
33 * (at your option) any later version.
34 *
35 * GeSHi is distributed in the hope that it will be useful,
36 * but WITHOUT ANY WARRANTY; without even the implied warranty of
37 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 * GNU General Public License for more details.
39 *
40 * You should have received a copy of the GNU General Public License
41 * along with GeSHi; if not, write to the Free Software
42 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
43 *
44 ************************************************************************************/
45
46$language_data = array (
47 'LANG_NAME' => 'bnf',
48 'COMMENT_SINGLE' => array(';'),
49 'COMMENT_MULTI' => array(),
50 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
51 'QUOTEMARKS' => array('"', "'"),
52 'ESCAPE_CHAR' => '',
53 'KEYWORDS' => array(),
54 'SYMBOLS' => array(
55 0 => array('(', ')'),
56 1 => array('<', '>'),
57 2 => array('[', ']'),
58 3 => array('{', '}'),
59 4 => array('=', '*', '/', '|', ':'),
60 ),
61 'CASE_SENSITIVE' => array(
62 GESHI_COMMENTS => false
63 ),
64 'STYLES' => array(
65 'KEYWORDS' => array(),
66 'COMMENTS' => array(
67 0 => 'color: #666666; font-style: italic;', // Single Line comments
68 ),
69 'ESCAPE_CHAR' => array(
70 0 => ''
71 ),
72 'BRACKETS' => array(
73 0 => ''
74 ),
75 'STRINGS' => array(
76 0 => 'color: #a00;',
77 1 => 'color: #a00;'
78 ),
79 'NUMBERS' => array(
80 0 => ''
81 ),
82 'METHODS' => array(
83 0 => ''
84 ),
85 'SYMBOLS' => array(
86 0 => 'color: #000066; font-weight: bold;', // Round brackets
87 1 => 'color: #000066; font-weight: bold;', // Angel Brackets
88 2 => 'color: #000066; font-weight: bold;', // Square Brackets
89 3 => 'color: #000066; font-weight: bold;', // BRaces
90 4 => 'color: #006600; font-weight: bold;', // Other operator symbols
91 ),
92 'REGEXPS' => array(
93 0 => 'color: #007;',
94 ),
95 'SCRIPT' => array(
96 0 => ''
97 )
98 ),
99 'URLS' => array(),
100 'OOLANG' => false,
101 'OBJECT_SPLITTERS' => array(),
102 'REGEXPS' => array(
103 //terminal symbols
104 0 => array(
105 GESHI_SEARCH => '(&lt;)([^&]+?)(&gt;)',
106 GESHI_REPLACE => '\\2',
107 GESHI_MODIFIERS => '',
108 GESHI_BEFORE => '\\1',
109 GESHI_AFTER => '\\3'
110 ),
111 ),
112 'STRICT_MODE_APPLIES' => GESHI_NEVER,
113 'SCRIPT_DELIMITERS' => array(
114 ),
115 'HIGHLIGHT_STRICT_BLOCK' => array(
116 )
117);
118
119?>
Note: See TracBrowser for help on using the repository browser.