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