0
|
1 |
<?php
|
|
2 |
/*************************************************************************************
|
|
3 |
* bnf.php
|
|
4 |
* --------
|
|
5 |
* Author: Rowan Rodrik van der Molen (rowan@bigsmoke.us)
|
|
6 |
* Copyright: (c) 2006 Rowan Rodrik van der Molen (http://www.bigsmoke.us/)
|
3
|
7 |
* Release Version: 1.0.8.4
|
0
|
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 |
* -------
|
2
|
16 |
* 2008/05/23 (1.0.7.22)
|
|
17 |
* - Added description of extra language features (SF#1970248)
|
|
18 |
* - Removed superflicious regexps
|
0
|
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(
|
2
|
55 |
'(', ')', '<', '>', '::=', '|'
|
0
|
56 |
),
|
|
57 |
'CASE_SENSITIVE' => array(
|
|
58 |
//GESHI_COMMENTS => false
|
|
59 |
),
|
|
60 |
'STYLES' => array(
|
|
61 |
'KEYWORDS' => array(),
|
|
62 |
'COMMENTS' => array(
|
2
|
63 |
),
|
0
|
64 |
'ESCAPE_CHAR' => array(
|
|
65 |
0 => ''
|
2
|
66 |
),
|
0
|
67 |
'BRACKETS' => array(
|
|
68 |
0 => ''
|
2
|
69 |
),
|
0
|
70 |
'STRINGS' => array(
|
|
71 |
0 => 'color: #a00;',
|
|
72 |
1 => 'color: #a00;'
|
2
|
73 |
),
|
0
|
74 |
'NUMBERS' => array(
|
|
75 |
0 => ''
|
2
|
76 |
),
|
0
|
77 |
'METHODS' => array(
|
|
78 |
0 => ''
|
2
|
79 |
),
|
0
|
80 |
'SYMBOLS' => array(
|
|
81 |
0 => 'color: #000066; font-weight: bold;', // Unused
|
2
|
82 |
),
|
0
|
83 |
'REGEXPS' => array(
|
|
84 |
0 => 'color: #007;',
|
2
|
85 |
),
|
|
86 |
'SCRIPT' => array(
|
|
87 |
0 => ''
|
|
88 |
)
|
0
|
89 |
),
|
|
90 |
'URLS' => array(),
|
|
91 |
'OOLANG' => false,
|
|
92 |
'OBJECT_SPLITTERS' => array(),
|
|
93 |
'REGEXPS' => array(
|
2
|
94 |
//terminal symbols
|
0
|
95 |
0 => array(
|
|
96 |
GESHI_SEARCH => '(<)([^&]+?)(>)',
|
|
97 |
GESHI_REPLACE => '\\2',
|
|
98 |
GESHI_MODIFIERS => '',
|
|
99 |
GESHI_BEFORE => '\\1',
|
|
100 |
GESHI_AFTER => '\\3'
|
2
|
101 |
),
|
0
|
102 |
),
|
|
103 |
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
104 |
'SCRIPT_DELIMITERS' => array(
|
2
|
105 |
),
|
0
|
106 |
'HIGHLIGHT_STRICT_BLOCK' => array(
|
2
|
107 |
)
|
0
|
108 |
);
|
|
109 |
|
|
110 |
?>
|