1 | 1 | simandl | <?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/) |
7 | 3 | simandl | * Release Version: 1.0.8.3 |
8 | 1 | simandl | * 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 | | | '(', ')', '<', '>', '::=', '|' |
56 | | | ), |
57 | | | 'CASE_SENSITIVE' => array( |
58 | | | //GESHI_COMMENTS => false |
59 | | | ), |
60 | | | 'STYLES' => array( |
61 | | | 'KEYWORDS' => array(), |
62 | | | 'COMMENTS' => array( |
63 | | | ), |
64 | | | 'ESCAPE_CHAR' => array( |
65 | | | |
66 | | | ), |
67 | | | 'BRACKETS' => array( |
68 | | | |
69 | | | ), |
70 | | | 'STRINGS' => array( |
71 | | | |
72 | | | 1 => 'color: #a00;' |
73 | | | ), |
74 | | | 'NUMBERS' => array( |
75 | | | |
76 | | | ), |
77 | | | 'METHODS' => array( |
78 | | | |
79 | | | ), |
80 | | | 'SYMBOLS' => array( |
81 | | | |
82 | | | ), |
83 | | | 'REGEXPS' => array( |
84 | | | |
85 | | | ), |
86 | | | 'SCRIPT' => array( |
87 | | | |
88 | | | ) |
89 | | | ), |
90 | | | 'URLS' => array(), |
91 | | | 'OOLANG' => false, |
92 | | | 'OBJECT_SPLITTERS' => array(), |
93 | | | 'REGEXPS' => array( |
94 | | | //terminal symbols |
95 | | | |
96 | | | GESHI_SEARCH => '(<)([^&]+?)(>)', |
97 | | | GESHI_REPLACE => '\\2', |
98 | | | GESHI_MODIFIERS => '', |
99 | | | GESHI_BEFORE => '\\1', |
100 | | | GESHI_AFTER => '\\3' |
101 | | | ), |
102 | | | ), |
103 | | | 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
104 | | | 'SCRIPT_DELIMITERS' => array( |
105 | | | ), |
106 | | | 'HIGHLIGHT_STRICT_BLOCK' => array( |
107 | | | ) |
108 | | | ); |
109 | | | |
110 | | | ?> |