A tumblelog CMS built on AJAX, PHP and MySQL.

fortran.php 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?php
  2. /*************************************************************************************
  3. * fortran.php
  4. * -----------
  5. * Author: Cedric Arrabie (cedric.arrabie@univ-pau.fr)
  6. * Copyright: (C) 2006 Cetric Arrabie
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2006/04/22
  9. *
  10. * Fortran language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2006/04/20 (1.0.0)
  15. * - First Release
  16. *
  17. * TODO
  18. * -------------------------
  19. * - Get a list of inbuilt functions to add (and explore fortran more
  20. * to complete this rather bare language file)
  21. *
  22. *************************************************************************************
  23. *
  24. * This file is part of GeSHi.
  25. *
  26. * GeSHi is free software; you can redistribute it and/or modify
  27. * it under the terms of the GNU General Public License as published by
  28. * the Free Software Foundation; either version 2 of the License, or
  29. * (at your option) any later version.
  30. *
  31. * GeSHi is distributed in the hope that it will be useful,
  32. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  33. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  34. * GNU General Public License for more details.
  35. *
  36. * You should have received a copy of the GNU General Public License
  37. * along with GeSHi; if not, write to the Free Software
  38. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  39. *
  40. ************************************************************************************/
  41. $language_data = array (
  42. 'LANG_NAME'=>'Fortran',
  43. 'COMMENT_SINGLE'=> array(1 =>'!',2=>'Cf2py'),
  44. 'COMMENT_MULTI'=> array(),
  45. 'CASE_KEYWORDS'=> GESHI_CAPS_NO_CHANGE,
  46. 'QUOTEMARKS'=> array("'",'"'),
  47. 'ESCAPE_CHAR'=>'\\',
  48. 'KEYWORDS'=> array(
  49. 1 => array(
  50. 'allocate','block','call','case','contains','continue','cycle','deallocate',
  51. 'default','do','else','elseif','elsewhere','end','enddo','endif','endwhere',
  52. 'entry','exit','function','go','goto','if','interface','module','nullify','only',
  53. 'operator','procedure','program','recursive','return','select','stop',
  54. 'subroutine','then','to','where','while',
  55. 'access','action','advance','blank','blocksize','carriagecontrol',
  56. 'delim','direct','eor','err','exist','file','flen','fmt','form','formatted',
  57. 'iostat','name','named','nextrec','nml','number','opened','pad','position',
  58. 'readwrite','recl','sequential','status','unformatted','unit'
  59. ),
  60. 2 => array(
  61. '.AND.','.EQ.','.EQV.','.GE.','.GT.','.LE.','.LT.','.NE.','.NEQV.','.NOT.',
  62. '.OR.','.TRUE.','.FALSE.'
  63. ),
  64. 3 => array(
  65. 'allocatable','character','common','complex','data','dimension','double',
  66. 'equivalence','external','implicit','in','inout','integer','intent','intrinsic',
  67. 'kind','logical','namelist','none','optional','out','parameter','pointer',
  68. 'private','public','real','result','save','sequence','target','type','use'
  69. ),
  70. 4 => array(
  71. 'abs','achar','acos','adjustl','adjustr','aimag','aint','all','allocated',
  72. 'anint','any','asin','atan','atan2','bit_size','break','btest','carg',
  73. 'ceiling','char','cmplx','conjg','cos','cosh','cpu_time','count','cshift',
  74. 'date_and_time','dble','digits','dim','dot_product','dprod dvchk',
  75. 'eoshift','epsilon','error','exp','exponent','floor','flush','fraction',
  76. 'getcl','huge','iachar','iand','ibclr','ibits','ibset','ichar','ieor','index',
  77. 'int','intrup','invalop','ior','iostat_msg','ishft','ishftc','lbound',
  78. 'len','len_trim','lge','lgt','lle','llt','log','log10','matmul','max','maxexponent',
  79. 'maxloc','maxval','merge','min','minexponent','minloc','minval','mod','modulo',
  80. 'mvbits','nbreak','ndperr','ndpexc','nearest','nint','not','offset','ovefl',
  81. 'pack','precfill','precision','present','product','prompt','radix',
  82. 'random_number','random_seed','range','repeat','reshape','rrspacing',
  83. 'scale','scan','segment','selected_int_kind','selected_real_kind',
  84. 'set_exponent','shape','sign','sin','sinh','size','spacing','spread','sqrt',
  85. 'sum system','system_clock','tan','tanh','timer','tiny','transfer','transpose',
  86. 'trim','ubound','undfl','unpack','val','verify'
  87. ),
  88. ),
  89. 'SYMBOLS'=> array(
  90. '(',')','{','}','[',']','=','+','-','*','/','!','%','^','&',':'
  91. ),
  92. 'CASE_SENSITIVE'=> array(
  93. GESHI_COMMENTS => true,
  94. 1 => false,
  95. 2 => false,
  96. 3 => false,
  97. 4 => false,
  98. ),
  99. 'STYLES'=> array(
  100. 'KEYWORDS'=> array(
  101. 1 =>'color: #b1b100;',
  102. 2 =>'color: #000000; font-weight: bold;',
  103. 3 =>'color: #000066;',
  104. 4 =>'color: #993333;'
  105. ),
  106. 'COMMENTS'=> array(
  107. 1 =>'color: #808080; font-style: italic;',
  108. 2 =>'color: #339933;',
  109. 'MULTI'=>'color: #808080; font-style: italic;'
  110. ),
  111. 'ESCAPE_CHAR'=> array(
  112. 0 =>'color: #000099; font-weight: bold;'
  113. ),
  114. 'BRACKETS'=> array(
  115. 0 =>'color: #66cc66;'
  116. ),
  117. 'STRINGS'=> array(
  118. 0 =>'color: #ff0000;'
  119. ),
  120. 'NUMBERS'=> array(
  121. 0 =>'color: #cc66cc;'
  122. ),
  123. 'METHODS'=> array(
  124. 1 =>'color: #202020;',
  125. 2 =>'color: #202020;'
  126. ),
  127. 'SYMBOLS'=> array(
  128. 0 =>'color: #66cc66;'
  129. ),
  130. 'REGEXPS'=> array(
  131. ),
  132. 'SCRIPT'=> array(
  133. )
  134. ),
  135. 'URLS'=> array(
  136. 1 =>'',
  137. 2 =>'',
  138. 3 =>'',
  139. 4 =>''
  140. ),
  141. 'OOLANG'=> true,
  142. 'OBJECT_SPLITTERS'=> array(
  143. 1 =>'.',
  144. 2 =>'::'
  145. ),
  146. 'REGEXPS'=> array(
  147. ),
  148. 'STRICT_MODE_APPLIES'=> GESHI_NEVER,
  149. 'SCRIPT_DELIMITERS'=> array(
  150. ),
  151. 'HIGHLIGHT_STRICT_BLOCK'=> array(
  152. )
  153. );
  154. ?>