KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
3.7KB

  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.8.11
  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. $language_data = array (
  46. 'LANG_NAME' => 'bnf',
  47. 'COMMENT_SINGLE' => array(';'),
  48. 'COMMENT_MULTI' => array(),
  49. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  50. 'QUOTEMARKS' => array('"', "'"),
  51. 'ESCAPE_CHAR' => '',
  52. 'KEYWORDS' => array(),
  53. 'SYMBOLS' => array(
  54. 0 => array('(', ')'),
  55. 1 => array('<', '>'),
  56. 2 => array('[', ']'),
  57. 3 => array('{', '}'),
  58. 4 => array('=', '*', '/', '|', ':'),
  59. ),
  60. 'CASE_SENSITIVE' => array(
  61. GESHI_COMMENTS => false
  62. ),
  63. 'STYLES' => array(
  64. 'KEYWORDS' => array(),
  65. 'COMMENTS' => array(
  66. 0 => 'color: #666666; font-style: italic;', // Single Line comments
  67. ),
  68. 'ESCAPE_CHAR' => array(
  69. 0 => ''
  70. ),
  71. 'BRACKETS' => array(
  72. 0 => ''
  73. ),
  74. 'STRINGS' => array(
  75. 0 => 'color: #a00;',
  76. 1 => 'color: #a00;'
  77. ),
  78. 'NUMBERS' => array(
  79. 0 => ''
  80. ),
  81. 'METHODS' => array(
  82. 0 => ''
  83. ),
  84. 'SYMBOLS' => array(
  85. 0 => 'color: #000066; font-weight: bold;', // Round brackets
  86. 1 => 'color: #000066; font-weight: bold;', // Angel Brackets
  87. 2 => 'color: #000066; font-weight: bold;', // Square Brackets
  88. 3 => 'color: #000066; font-weight: bold;', // BRaces
  89. 4 => 'color: #006600; font-weight: bold;', // Other operator symbols
  90. ),
  91. 'REGEXPS' => array(
  92. 0 => 'color: #007;',
  93. ),
  94. 'SCRIPT' => array(
  95. 0 => ''
  96. )
  97. ),
  98. 'URLS' => array(),
  99. 'OOLANG' => false,
  100. 'OBJECT_SPLITTERS' => array(),
  101. 'REGEXPS' => array(
  102. //terminal symbols
  103. 0 => array(
  104. GESHI_SEARCH => '(&lt;)([^&]+?)(&gt;)',
  105. GESHI_REPLACE => '\\2',
  106. GESHI_MODIFIERS => '',
  107. GESHI_BEFORE => '\\1',
  108. GESHI_AFTER => '\\3'
  109. ),
  110. ),
  111. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  112. 'SCRIPT_DELIMITERS' => array(
  113. ),
  114. 'HIGHLIGHT_STRICT_BLOCK' => array(
  115. )
  116. );
  117. ?>