A tumblelog CMS built on AJAX, PHP and MySQL.

bnf.php 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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/)
  7. * Release Version: 1.0.7.21
  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. * 2006/09/18 (1.0.0)
  17. * - First Release
  18. *
  19. * TODO (updated 2006/09/18)
  20. * -------------------------
  21. * * Nothing I can think of
  22. *
  23. *************************************************************************************
  24. *
  25. * This file is part of GeSHi.
  26. *
  27. * GeSHi is free software; you can redistribute it and/or modify
  28. * it under the terms of the GNU General Public License as published by
  29. * the Free Software Foundation; either version 2 of the License, or
  30. * (at your option) any later version.
  31. *
  32. * GeSHi is distributed in the hope that it will be useful,
  33. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  34. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  35. * GNU General Public License for more details.
  36. *
  37. * You should have received a copy of the GNU General Public License
  38. * along with GeSHi; if not, write to the Free Software
  39. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  40. *
  41. ************************************************************************************/
  42. $language_data = array (
  43. 'LANG_NAME' => 'bnf',
  44. 'COMMENT_SINGLE' => array(),
  45. 'COMMENT_MULTI' => array(),
  46. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  47. 'QUOTEMARKS' => array('"', "'"),
  48. 'ESCAPE_CHAR' => '',
  49. 'KEYWORDS' => array(),
  50. 'SYMBOLS' => array(
  51. '<', '>', '::=', '|'
  52. ),
  53. 'CASE_SENSITIVE' => array(
  54. //GESHI_COMMENTS => false
  55. ),
  56. 'STYLES' => array(
  57. 'KEYWORDS' => array(),
  58. 'COMMENTS' => array(
  59. ),
  60. 'ESCAPE_CHAR' => array(
  61. 0 => ''
  62. ),
  63. 'BRACKETS' => array(
  64. 0 => ''
  65. ),
  66. 'STRINGS' => array(
  67. 0 => 'color: #a00;',
  68. 1 => 'color: #a00;'
  69. ),
  70. 'NUMBERS' => array(
  71. 0 => ''
  72. ),
  73. 'METHODS' => array(
  74. 0 => ''
  75. ),
  76. 'SYMBOLS' => array(
  77. 0 => 'color: #000066; font-weight: bold;', // Unused
  78. ),
  79. 'REGEXPS' => array(
  80. 0 => 'color: #007;',
  81. 1 => 'color: #099;',
  82. 2 => 'color: #060;',
  83. 3 => 'color: #909;'
  84. ),
  85. 'SCRIPT' => array(
  86. 0 => ''
  87. )
  88. ),
  89. 'URLS' => array(),
  90. 'OOLANG' => false,
  91. 'OBJECT_SPLITTERS' => array(),
  92. 'REGEXPS' => array(
  93. 0 => array(
  94. GESHI_SEARCH => '(&lt;)([^&]+?)(&gt;)',
  95. GESHI_REPLACE => '\\2',
  96. GESHI_MODIFIERS => '',
  97. GESHI_BEFORE => '\\1',
  98. GESHI_AFTER => '\\3'
  99. ),
  100. 1 => array(
  101. GESHI_SEARCH => '(&lt;|&gt;)',
  102. GESHI_REPLACE => '\\1',
  103. GESHI_MODIFIERS => '',
  104. GESHI_BEFORE => '',
  105. GESHI_AFTER => ''
  106. ),
  107. 2 => array(
  108. GESHI_SEARCH => '(::=)',
  109. GESHI_REPLACE => '\\1',
  110. GESHI_MODIFIERS => '',
  111. GESHI_BEFORE => '',
  112. GESHI_AFTER => ''
  113. ),
  114. 3 => array(
  115. GESHI_SEARCH => '([()])',
  116. GESHI_REPLACE => '\\1',
  117. GESHI_MODIFIERS => '',
  118. GESHI_BEFORE => '',
  119. GESHI_AFTER => ''
  120. ),
  121. ),
  122. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  123. 'SCRIPT_DELIMITERS' => array(
  124. ),
  125. 'HIGHLIGHT_STRICT_BLOCK' => array(
  126. )
  127. );
  128. ?>