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.

prolog.php 5.1KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?php
  2. /*************************************************************************************
  3. * prolog.php
  4. * --------
  5. * Author: Benny Baumann (BenBE@geshi.org)
  6. * Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2008/10/02
  9. *
  10. * Prolog language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2008/10/02 (1.0.8.1)
  15. * - First Release
  16. *
  17. * TODO (updated 2008/10/02)
  18. * -------------------------
  19. *
  20. *************************************************************************************
  21. *
  22. * This file is part of GeSHi.
  23. *
  24. * GeSHi is free software; you can redistribute it and/or modify
  25. * it under the terms of the GNU General Public License as published by
  26. * the Free Software Foundation; either version 2 of the License, or
  27. * (at your option) any later version.
  28. *
  29. * GeSHi is distributed in the hope that it will be useful,
  30. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  31. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  32. * GNU General Public License for more details.
  33. *
  34. * You should have received a copy of the GNU General Public License
  35. * along with GeSHi; if not, write to the Free Software
  36. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  37. *
  38. ************************************************************************************/
  39. $language_data = array (
  40. 'LANG_NAME' => 'Prolog',
  41. 'COMMENT_SINGLE' => array(1 => '%'),
  42. 'COMMENT_MULTI' => array('/*' => '*/'),
  43. 'HARDQUOTE' => array("'", "'"),
  44. 'HARDESCAPE' => array("\'"),
  45. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  46. 'QUOTEMARKS' => array(),
  47. 'ESCAPE_CHAR' => '',
  48. 'NUMBERS' =>
  49. GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_FLT_SCI_ZERO,
  50. 'KEYWORDS' => array(
  51. 1 => array(
  52. 'abolish','abs','arg','asserta','assertz','at_end_of_stream','atan',
  53. 'atom','atom_chars','atom_codes','atom_concat','atom_length',
  54. 'atomic','bagof','call','catch','ceiling','char_code',
  55. 'char_conversion','clause','close','compound','consult','copy_term',
  56. 'cos','current_char_conversion','current_input','current_op',
  57. 'current_output','current_predicate','current_prolog_flag',
  58. 'discontiguous','dynamic','ensure_loaded','exp','fail','findall',
  59. 'float','float_fractional_part','float_integer_part','floor',
  60. 'flush_output','functor','get_byte','get_char','get_code','halt',
  61. 'include','initialization','integer','is','listing','log','mod',
  62. 'multifile','nl','nonvar','notrace','number','number_chars',
  63. 'number_codes','once','op','open','peek_byte','peek_char',
  64. 'peek_code','put_byte','put_char','put_code','read','read_term',
  65. 'rem','repeat','retract','round','set_input','set_output',
  66. 'set_prolog_flag','set_stream_position','setof','sign','sin','sqrt',
  67. 'stream_property','sub_atom','throw','trace','true','truncate',
  68. 'unify_with_occurs_check','univ','var','write','write_canonical',
  69. 'write_term','writeq'
  70. )
  71. ),
  72. 'SYMBOLS' => array(
  73. 0 => array('(', ')', '[', ']', '{', '}',),
  74. 1 => array('?-', ':-', '=:='),
  75. 2 => array('\-', '\+', '\*', '\/'),
  76. 3 => array('-', '+', '*', '/'),
  77. 4 => array('.', ':', ',', ';'),
  78. 5 => array('!', '@', '&', '|'),
  79. 6 => array('<', '>', '=')
  80. ),
  81. 'CASE_SENSITIVE' => array(
  82. GESHI_COMMENTS => false,
  83. 1 => false
  84. ),
  85. 'STYLES' => array(
  86. 'KEYWORDS' => array(
  87. 1 => 'color: #990000;'
  88. ),
  89. 'COMMENTS' => array(
  90. 1 => 'color: #666666; font-style: italic;',
  91. 'MULTI' => 'color: #666666; font-style: italic;'
  92. ),
  93. 'ESCAPE_CHAR' => array(
  94. 0 => 'color: #000099; font-weight: bold;',
  95. 'HARD' => 'color: #000099; font-weight: bold;'
  96. ),
  97. 'BRACKETS' => array(
  98. 0 => 'color: #009900;'
  99. ),
  100. 'STRINGS' => array(
  101. 0 => 'color: #0000ff;',
  102. 'HARD' => 'color: #0000ff;'
  103. ),
  104. 'NUMBERS' => array(
  105. 0 => 'color: #800080;'
  106. ),
  107. 'METHODS' => array(
  108. ),
  109. 'SYMBOLS' => array(
  110. 0 => 'color: #339933;',
  111. 1 => 'color: #339933;',
  112. 2 => 'color: #339933;',
  113. 3 => 'color: #339933;',
  114. 4 => 'color: #339933;',
  115. 5 => 'color: #339933;',
  116. 6 => 'color: #339933;'
  117. ),
  118. 'REGEXPS' => array(
  119. 0 => 'color: #008080;'
  120. ),
  121. 'SCRIPT' => array(
  122. )
  123. ),
  124. 'URLS' => array(
  125. 1 => 'http://pauillac.inria.fr/~deransar/prolog/bips.html'
  126. ),
  127. 'OOLANG' => false,
  128. 'OBJECT_SPLITTERS' => array(
  129. ),
  130. 'REGEXPS' => array(
  131. //Variables
  132. 0 => "(?<![a-zA-Z0-9_])(?!(?:PIPE|SEMI|DOT)[^a-zA-Z0-9_])[A-Z_][a-zA-Z0-9_]*(?![a-zA-Z0-9_])(?!\x7C)"
  133. ),
  134. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  135. 'SCRIPT_DELIMITERS' => array(
  136. ),
  137. 'HIGHLIGHT_STRICT_BLOCK' => array(
  138. ),
  139. 'TAB_WIDTH' => 4
  140. );
  141. ?>