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.

152 lines
4.5KB

  1. <?php
  2. /*************************************************************************************
  3. * lolcode.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: 2009/10/31
  9. *
  10. * LOLcode language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2008/10/31 (1.0.8.1)
  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' => 'LOLcode',
  41. 'COMMENT_SINGLE' => array(),
  42. 'COMMENT_MULTI' => array(),
  43. 'COMMENT_REGEXP' => array(
  44. 1 => "/\bBTW\b.*$/im",
  45. 2 => "/(^|\b)(?:OBTW\b.+?\bTLDR|LOL\b.+?\/LOL)(\b|$)/si"
  46. ),
  47. 'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
  48. 'QUOTEMARKS' => array('"'),
  49. 'ESCAPE_CHAR' => '',
  50. 'ESCAPE_REGEXP' => array(
  51. 1 => '/:[)>o":]/',
  52. 2 => '/:\([\da-f]+\)/i',
  53. 3 => '/:\{\w+\}/i',
  54. 4 => '/:\[\w+\]/i',
  55. ),
  56. 'KEYWORDS' => array(
  57. //Statements
  58. 1 => array(
  59. 'VISIBLE', 'HAI', 'KTHX', 'KTHXBYE', 'SMOOSH', 'GIMMEH', 'PLZ',
  60. 'ON', 'INVISIBLE', 'R', 'ITZ', 'GTFO', 'COMPLAIN', 'GIMME',
  61. 'OPEN', 'FILE', 'I HAS A', 'AWSUM THX', 'O NOES', 'CAN', 'HAS', 'HAZ',
  62. 'HOW DOES I', 'IF U SAY SO', 'FOUND YR', 'BORROW', 'OWN', 'ALONG',
  63. 'WITH', 'WIT', 'LOOK', 'AT', 'AWSUM', 'THX'
  64. ),
  65. //Conditionals
  66. 2 => array(
  67. 'IZ', 'YARLY', 'NOWAI', 'WTF?', 'MEBBE', 'OMG', 'OMGWTF',
  68. 'ORLY?', 'OF', 'NOPE', 'SO', 'IM', 'MAI',
  69. 'O RLY?', 'SUM', 'BOTH SAEM', 'DIFFRINT', 'BOTH', 'EITHER', 'WON',
  70. 'DIFF', 'PRODUKT', 'QUOSHUNT', 'MOD', 'MKAY', 'OK', 'THING',
  71. 'BIGNESS'
  72. ),
  73. //Repetition
  74. 3 => array(
  75. 'IN', 'OUTTA', 'LOOP', 'WHILE'
  76. ),
  77. //Operators \Math
  78. 4 => array(
  79. 'AN', 'AND', 'NOT', 'UP', 'YR', 'UPPIN', 'NERF', 'NERFIN', 'NERFZ',
  80. 'SMASHING', 'UR', 'KINDA', 'LIKE', 'SAEM', 'BIG', 'SMALL',
  81. 'BIGGR', 'SMALLR', 'BIGGER', 'SMALLER', 'GOOD', 'CUTE', 'THAN'
  82. )
  83. ),
  84. 'SYMBOLS' => array(
  85. '.', ',', '?',
  86. '!!'
  87. ),
  88. 'CASE_SENSITIVE' => array(
  89. GESHI_COMMENTS => false,
  90. 1 => false,
  91. 2 => false,
  92. 3 => false,
  93. 4 => false
  94. ),
  95. 'STYLES' => array(
  96. 'KEYWORDS' => array(
  97. 1 => 'color: #008000;',
  98. 2 => 'color: #000080;',
  99. 3 => 'color: #000080;',
  100. 4 => 'color: #800000;'
  101. ),
  102. 'COMMENTS' => array(
  103. 1 => 'color: #666666; style: italic;',
  104. 2 => 'color: #666666; style: italic;'
  105. ),
  106. 'BRACKETS' => array(
  107. 0 => 'color: #66cc66;'
  108. ),
  109. 'STRINGS' => array(
  110. 0 => 'color: #ff0000;'
  111. ),
  112. 'NUMBERS' => array(
  113. ),
  114. 'METHODS' => array(
  115. ),
  116. 'SYMBOLS' => array(
  117. 0 => 'color: #66cc66;'
  118. ),
  119. 'ESCAPE_CHAR' => array(
  120. ),
  121. 'SCRIPT' => array(
  122. ),
  123. 'REGEXPS' => array(
  124. )
  125. ),
  126. 'URLS' => array(
  127. 1 => '',
  128. 2 => '',
  129. 3 => '',
  130. 4 => ''
  131. ),
  132. 'OOLANG' => false,
  133. 'OBJECT_SPLITTERS' => array(
  134. ),
  135. 'REGEXPS' => array(
  136. ),
  137. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  138. 'SCRIPT_DELIMITERS' => array(
  139. ),
  140. 'HIGHLIGHT_STRICT_BLOCK' => array(
  141. ),
  142. 'PARSER_CONTROL' => array(
  143. 'KEYWORDS' => array(
  144. 'SPACE_AS_WHITESPACE' => true
  145. )
  146. ),
  147. 'TAB_WIDTH' => 4
  148. );
  149. ?>