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.

181 lines
6.4KB

  1. <?php
  2. /*************************************************************************************
  3. * whois.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/09/14
  9. *
  10. * Whois response (RPSL format) language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2008/09/14 (1.0.0)
  15. * - First Release
  16. *
  17. * TODO
  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' => 'Whois (RPSL format)',
  41. 'COMMENT_SINGLE' => array(1 => '% ', 2 => '%ERROR:'),
  42. 'COMMENT_MULTI' => array(),
  43. 'COMMENT_REGEXP' => array(
  44. //Description
  45. 3 => '/(?:(?<=^remarks:)|(?<=^descr:))(.|\n\s)*$/mi',
  46. //Contact Details
  47. 4 => '/(?<=^address:)(.|\n\s)*$/mi',
  48. 5 => '/\+\d+(?:(?:\s\(\d+(\s\d+)*\))?(?:\s\d+)+|-\d+-\d+)/',
  49. 6 => '/\b(?!-|\.)[\w\-\.]+(?!-|\.)@((?!-)[\w\-]+\.)+\w+\b/',
  50. //IP, Networks and AS information\links
  51. 7 => '/\b(?<!\.|\-)(?:[\da-f:]+(?!\.)|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?:\/1?\d\d?)?(?<!\.|\-)\b/',
  52. 8 => '/\bAS\d+\b/'
  53. ),
  54. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  55. 'QUOTEMARKS' => array(),
  56. 'ESCAPE_CHAR' => '',
  57. 'KEYWORDS' => array(
  58. 1 => array( //Object Types
  59. 'as-block','as-set','aut-num','domain','filter-set','inet-rtr',
  60. 'inet6num','inetnum','irt','key-cert','limerick','mntner',
  61. 'organisation','peering-set','person','poem','role','route-set',
  62. 'route','route6','rtr-set'
  63. ),
  64. 2 => array( //Field Types
  65. 'abuse-mailbox','address','admin-c','aggr-bndry','aggr-mtd','alias',
  66. 'as-block','as-name','as-set','aut-num','auth','author','certif',
  67. 'changed','components','country','default','descr','dom-net',
  68. 'domain','ds-rdata','e-mail','encryption','export','export-comps',
  69. 'fax-no','filter','filter-set','fingerpr','form','holes','ifaddr',
  70. 'import','inet-rtr','inet6num','inetnum','inject','interface','irt',
  71. 'irt-nfy','key-cert','limerick','local-as','mbrs-by-ref',
  72. 'member-of','members','method','mnt-by','mnt-domains','mnt-irt',
  73. 'mnt-lower','mnt-nfy','mnt-ref','mnt-routes','mntner','mp-default',
  74. 'mp-export','mp-filter','mp-import','mp-members','mp-peer',
  75. 'mp-peering','netname','nic-hdl','notify','nserver','org',
  76. 'org-name','org-type','organisation','origin','owner','peer',
  77. 'peering','peering-set','person','phone','poem','ref-nfy','refer',
  78. 'referral-by','remarks','rev-srv','role','route','route-set',
  79. 'route6','rtr-set','signature','source','status','sub-dom','tech-c',
  80. 'text','upd-to','zone-c'
  81. ),
  82. 3 => array( //RPSL reserved
  83. 'accept','action','and','announce','any','as-any','at','atomic',
  84. 'except','from','inbound','into','networks','not','or','outbound',
  85. 'peeras','refine','rs-any','to'
  86. )
  87. ),
  88. 'SYMBOLS' => array(
  89. ':'
  90. ),
  91. 'CASE_SENSITIVE' => array(
  92. GESHI_COMMENTS => false,
  93. 1 => false,
  94. 2 => false,
  95. 3 => false,
  96. ),
  97. 'STYLES' => array(
  98. 'KEYWORDS' => array(
  99. 1 => 'color: #0000FF; font-weight: bold;',
  100. 2 => 'color: #000080; font-weight: bold;',
  101. 3 => 'color: #990000; font-weight: bold;'
  102. ),
  103. 'COMMENTS' => array(
  104. 1 => 'color: #666666; font-style: italic;',
  105. 2 => 'color: #666666; font-style: italic;',
  106. 3 => 'color: #404080;',
  107. 4 => 'color: #408040;',
  108. 5 => 'color: #408040;',
  109. 6 => 'color: #408040;',
  110. 7 => 'color: #804040;',
  111. 8 => 'color: #804040;',
  112. 'MULTI' => 'color: #666666; font-style: italic;'
  113. ),
  114. 'ESCAPE_CHAR' => array(
  115. 0 => 'color: #000099; font-weight: bold;',
  116. 'HARD' => 'color: #000099; font-weight: bold;'
  117. ),
  118. 'BRACKETS' => array(
  119. 0 => 'color: #009900;'
  120. ),
  121. 'STRINGS' => array(
  122. 0 => '',
  123. ),
  124. 'NUMBERS' => array(
  125. 0 => 'color: #000080;',
  126. ),
  127. 'METHODS' => array(
  128. ),
  129. 'SYMBOLS' => array(
  130. 0 => 'color: #0000FF;'
  131. ),
  132. 'REGEXPS' => array(
  133. 0 => 'color: #000088;'
  134. ),
  135. 'SCRIPT' => array(
  136. )
  137. ),
  138. 'URLS' => array(
  139. 1 => '',
  140. 2 => '',
  141. 3 => 'http://www.irr.net/docs/rpsl.html'
  142. ),
  143. 'OOLANG' => false,
  144. 'OBJECT_SPLITTERS' => array(
  145. ),
  146. 'REGEXPS' => array(
  147. //Variables
  148. 0 => "[\\$]{1,2}[a-zA-Z_][a-zA-Z0-9_]*"
  149. ),
  150. 'STRICT_MODE_APPLIES' => GESHI_MAYBE,
  151. 'SCRIPT_DELIMITERS' => array(
  152. ),
  153. 'HIGHLIGHT_STRICT_BLOCK' => array(
  154. ),
  155. 'TAB_WIDTH' => 4,
  156. 'PARSER_CONTROL' => array(
  157. 'KEYWORDS' => array(
  158. 1 => array(
  159. 'DISALLOWED_BEFORE' => '(?<=\A |\A \n(?m:^)|\n\n(?m:^))'
  160. ),
  161. 2 => array(
  162. 'DISALLOWED_BEFORE' => '(?m:^)'
  163. )
  164. ),
  165. 'ENABLE_FLAGS' => array(
  166. 'BRACKETS' => GESHI_NEVER,
  167. 'SYMBOLS' => GESHI_NEVER,
  168. 'BRACKETS' => GESHI_NEVER,
  169. 'STRINGS' => GESHI_NEVER,
  170. 'ESCAPE_CHAR' => GESHI_NEVER,
  171. 'NUMBERS' => GESHI_NEVER,
  172. 'METHODS' => GESHI_NEVER,
  173. 'SCRIPT' => GESHI_NEVER
  174. )
  175. ),
  176. );
  177. ?>