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.

151 lines
4.7KB

  1. <?php
  2. /*************************************************************************************
  3. * f1.php
  4. * -------
  5. * Author: Juro Bystricky (juro@f1compiler.com)
  6. * Copyright: K2 Software Corp.
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2010/07/06
  9. *
  10. * Formula One language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2010/07/06 (1.0.8.9)
  15. * - First Release
  16. *
  17. * TODO
  18. * -------------------------
  19. * - Add more RTL functions with URLs
  20. *
  21. *************************************************************************************
  22. *
  23. * This file is part of GeSHi.
  24. *
  25. * GeSHi is free software; you can redistribute it and/or modify
  26. * it under the terms of the GNU General Public License as published by
  27. * the Free Software Foundation; either version 2 of the License, or
  28. * (at your option) any later version.
  29. *
  30. * GeSHi is distributed in the hope that it will be useful,
  31. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  32. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  33. * GNU General Public License for more details.
  34. *
  35. * You should have received a copy of the GNU General Public License
  36. * along with GeSHi; if not, write to the Free Software
  37. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  38. *
  39. ************************************************************************************/
  40. $language_data = array(
  41. 'LANG_NAME' => 'Formula One',
  42. 'COMMENT_SINGLE' => array(1 => '//'),
  43. 'COMMENT_MULTI' => array('{' => '}'),
  44. 'COMMENT_REGEXP' => array(
  45. //Nested Comments
  46. 2 => "/(\{(?:\{.*\}|[^\{])*\})/m"
  47. ),
  48. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  49. 'QUOTEMARKS' => array("'",'"'),
  50. 'ESCAPE_CHAR' => '',
  51. 'ESCAPE_REGEXP' => array(
  52. //Simple Single Char Escapes
  53. 1 => "#\\\\[\\\\nrt\'\"?\n]#i",
  54. //Hexadecimal Char Specs (Utf16 codes, Unicode versions only)
  55. 2 => "#\\\\u[\da-fA-F]{4}#",
  56. ),
  57. 'NUMBERS' =>
  58. GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE |
  59. GESHI_NUMBER_BIN_PREFIX_0B |
  60. GESHI_NUMBER_OCT_PREFIX_0O |
  61. GESHI_NUMBER_HEX_PREFIX |
  62. GESHI_NUMBER_FLT_NONSCI |
  63. GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
  64. 'KEYWORDS' => array(
  65. 1 => array(
  66. 'pred','proc','subr','else','elsif','iff','if','then','false','true',
  67. 'case','of','use','local','mod','end','list','file','all','one','max','min','rel',
  68. 'external','Nil','_stdcall','_cdecl','_addressof','_pred','_file','_line'
  69. ),
  70. 2 => array(
  71. 'Ascii','Bin','I','L','P','R','S','U'
  72. ),
  73. 3 => array(
  74. 'Append','in','Dupl','Len','Print','_AllDifferent','_AllAscending',
  75. '_AllDescending','_Ascending','_Descending'
  76. )
  77. ),
  78. 'SYMBOLS' => array(
  79. 0 => array('(', ')', '[', ']'),
  80. 1 => array('<', '>','='),
  81. 2 => array('+', '-', '*', '/'),
  82. 3 => array('&', '|'),
  83. 4 => array(':', ';')
  84. ),
  85. 'CASE_SENSITIVE' => array(
  86. GESHI_COMMENTS => false,
  87. 1 => true,
  88. 2 => true,
  89. 3 => true,
  90. ),
  91. 'STYLES' => array(
  92. 'KEYWORDS' => array(
  93. 1 => 'color: #0000ff;',
  94. 2 => 'color: #000080;',
  95. 3 => 'color: #000080;',
  96. ),
  97. 'BRACKETS' => array(
  98. 0 => 'color: #000000;'
  99. ),
  100. 'COMMENTS' => array(
  101. 1 => 'color: #008000; font-style: italic;',
  102. 2 => 'color: #008000; font-style: italic;',
  103. 'MULTI' => 'color: #008000; font-style: italic;'
  104. ),
  105. 'ESCAPE_CHAR' => array(
  106. 0 => 'color: #000099; font-weight: bold;',
  107. 1 => 'color: #000099; font-weight: bold;',
  108. 2 => 'color: #009999; font-weight: bold;',
  109. ),
  110. 'STRINGS' => array(
  111. 0 => 'color: #ff0000;'
  112. ),
  113. 'NUMBERS' => array(
  114. 0 => 'color: #800000;'
  115. ),
  116. 'METHODS' => array(
  117. 1 => 'color: #202020;'
  118. ),
  119. 'SYMBOLS' => array(
  120. 0 => 'color: #000000;',
  121. 1 => 'color: #000000;',
  122. 2 => 'color: #000000;',
  123. 3 => 'color: #000000;',
  124. 4 => 'color: #000000;'
  125. ),
  126. 'REGEXPS' => array(
  127. ),
  128. 'SCRIPT' => array(
  129. )
  130. ),
  131. 'URLS' => array(
  132. 1 => '',
  133. 2 => '',
  134. 3 => 'http://www.f1compiler.com/f1helponline/f1_runtime_library.html#{FNAME}'
  135. ),
  136. 'OOLANG' => true,
  137. 'OBJECT_SPLITTERS' => array(
  138. 1 => '.'
  139. ),
  140. 'REGEXPS' => array(
  141. ),
  142. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  143. 'SCRIPT_DELIMITERS' => array(
  144. ),
  145. 'HIGHLIGHT_STRICT_BLOCK' => array(
  146. ),
  147. 'TAB_WIDTH' => 4
  148. );
  149. ?>