root/codingteam/codingbin/lib/geshi/geshi/fortran.php @ 1

Revision 1, 5.5 kB (checked in by elghinn, 3 years ago)

* initial import

Line 
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.9
8 * CVS Revision Version: $Revision: 1.1.1.1 $
9 * Date Started: 2006/04/22
10 * Last Modified: $Date: 2006/04/27 19:54:13 $
11 *
12 * Fortran language file for GeSHi.
13 *
14 * CHANGES
15 * -------
16 * 2006/04/20 (1.0.0)
17 *   -  First Release
18 *
19 * TODO
20 * -------------------------
21 *  -  Get a list of inbuilt functions to add (and explore fortran more
22 *     to complete this rather bare language file)
23 *
24 *************************************************************************************
25 *
26 *     This file is part of GeSHi.
27 *
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.
32 *
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.
37 *
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
41 *
42 ************************************************************************************/
43
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("'",'"'),
50        'ESCAPE_CHAR'=>'\\',
51        'KEYWORDS'=> array(
52                1 => 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'
62                        ),
63                2 => array(
64                        '.AND.','.EQ.','.EQV.','.GE.','.GT.','.LE.','.LT.','.NE.','.NEQV.','.NOT.',
65                        '.OR.','.TRUE.','.FALSE.'
66                        ),
67                3 => array(
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'
72                        ),
73                4 => array(
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'
90                        ),
91                ),
92        'SYMBOLS'=> array(
93                '(',')','{','}','[',']','=','+','-','*','/','!','%','^','&',':'
94                ),
95        'CASE_SENSITIVE'=> array(
96                GESHI_COMMENTS => true,
97                1 => false,
98                2 => false,
99                3 => false,
100                4 => false,
101                ),
102        'STYLES'=> array(
103                'KEYWORDS'=> array(
104                        1 =>'color: #b1b100;',
105                        2 =>'color: #000000; font-weight: bold;',
106                        3 =>'color: #000066;',
107                        4 =>'color: #993333;'
108                        ),
109                'COMMENTS'=> array(
110                        1 =>'color: #808080; font-style: italic;',
111                        2 =>'color: #339933;',
112                        'MULTI'=>'color: #808080; font-style: italic;'
113                        ),
114                'ESCAPE_CHAR'=> array(
115                        0 =>'color: #000099; font-weight: bold;'
116                        ),
117                'BRACKETS'=> array(
118                        0 =>'color: #66cc66;'
119                        ),
120                'STRINGS'=> array(
121                        0 =>'color: #ff0000;'
122                        ),
123                'NUMBERS'=> array(
124                        0 =>'color: #cc66cc;'
125                        ),
126                'METHODS'=> array(
127                        1 =>'color: #202020;',
128                        2 =>'color: #202020;'
129                        ),
130                'SYMBOLS'=> array(
131                        0 =>'color: #66cc66;'
132                        ),
133                'REGEXPS'=> array(
134                        ),
135                'SCRIPT'=> array(
136                        )
137                ),
138        'URLS'=> array(
139                1 =>'',
140                2 =>'',
141                3 =>'',
142                4 =>''
143                ),
144        'OOLANG'=> true,
145        'OBJECT_SPLITTERS'=> array(
146                1 =>'.',
147                2 =>'::'
148                ),
149        'REGEXPS'=> array(
150                ),
151        'STRICT_MODE_APPLIES'=> GESHI_NEVER,
152        'SCRIPT_DELIMITERS'=> array(
153                ),
154        'HIGHLIGHT_STRICT_BLOCK'=> array(
155                )
156);
157
158?>
Note: See TracBrowser for help on using the browser.