ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
f1.php
Go to the documentation of this file.
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.12
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 
42  'LANG_NAME' => 'Formula One',
43  'COMMENT_SINGLE' => array(1 => '//'),
44  'COMMENT_MULTI' => array('{' => '}'),
45  'COMMENT_REGEXP' => array(
46  //Nested Comments
47  2 => "/(\{(?:\{.*\}|[^\{])*\})/m"
48  ),
49  'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
50  'QUOTEMARKS' => array("'",'"'),
51  'ESCAPE_CHAR' => '',
52  'ESCAPE_REGEXP' => array(
53  //Simple Single Char Escapes
54  1 => "#\\\\[\\\\nrt\'\"?\n]#i",
55  //Hexadecimal Char Specs (Utf16 codes, Unicode versions only)
56  2 => "#\\\\u[\da-fA-F]{4}#",
57  ),
58  'NUMBERS' =>
65  'KEYWORDS' => array(
66  1 => array(
67  'pred','proc','subr','else','elsif','iff','if','then','false','true',
68  'case','of','use','local','mod','end','list','file','all','one','max','min','rel',
69  'external','Nil','_stdcall','_cdecl','_addressof','_pred','_file','_line'
70  ),
71  2 => array(
72  'Ascii','Bin','I','L','P','R','S','U'
73  ),
74  3 => array(
75  'Append','in','Dupl','Len','Print','_AllDifferent','_AllAscending',
76  '_AllDescending','_Ascending','_Descending'
77  )
78  ),
79  'SYMBOLS' => array(
80  0 => array('(', ')', '[', ']'),
81  1 => array('<', '>','='),
82  2 => array('+', '-', '*', '/'),
83  3 => array('&', '|'),
84  4 => array(':', ';')
85  ),
86  'CASE_SENSITIVE' => array(
87  GESHI_COMMENTS => false,
88  1 => true,
89  2 => true,
90  3 => true,
91  ),
92  'STYLES' => array(
93  'KEYWORDS' => array(
94  1 => 'color: #0000ff;',
95  2 => 'color: #000080;',
96  3 => 'color: #000080;',
97  ),
98  'BRACKETS' => array(
99  0 => 'color: #000000;'
100  ),
101  'COMMENTS' => array(
102  1 => 'color: #008000; font-style: italic;',
103  2 => 'color: #008000; font-style: italic;',
104  'MULTI' => 'color: #008000; font-style: italic;'
105  ),
106  'ESCAPE_CHAR' => array(
107  0 => 'color: #000099; font-weight: bold;',
108  1 => 'color: #000099; font-weight: bold;',
109  2 => 'color: #009999; font-weight: bold;',
110  ),
111  'STRINGS' => array(
112  0 => 'color: #ff0000;'
113  ),
114  'NUMBERS' => array(
115  0 => 'color: #800000;'
116  ),
117  'METHODS' => array(
118  1 => 'color: #202020;'
119  ),
120  'SYMBOLS' => array(
121  0 => 'color: #000000;',
122  1 => 'color: #000000;',
123  2 => 'color: #000000;',
124  3 => 'color: #000000;',
125  4 => 'color: #000000;'
126  ),
127  'REGEXPS' => array(
128  ),
129  'SCRIPT' => array(
130  )
131  ),
132  'URLS' => array(
133  1 => '',
134  2 => '',
135  3 => 'http://www.f1compiler.com/f1helponline/f1_runtime_library.html#{FNAME}'
136  ),
137  'OOLANG' => true,
138  'OBJECT_SPLITTERS' => array(
139  1 => '.'
140  ),
141  'REGEXPS' => array(
142  ),
143  'STRICT_MODE_APPLIES' => GESHI_NEVER,
144  'SCRIPT_DELIMITERS' => array(
145  ),
146  'HIGHLIGHT_STRICT_BLOCK' => array(
147  ),
148  'TAB_WIDTH' => 4
149 );
const GESHI_NUMBER_INT_CSTYLE
Enhanced number format for integers like seen in C.
Definition: geshi.php:201
const GESHI_NUMBER_FLT_SCI_ZERO
Number format to highlight floating-point numbers with support for scientific notation (E) and requir...
Definition: geshi.php:229
const GESHI_COMMENTS
Used in language files to mark comments.
Definition: geshi.php:150
const GESHI_NUMBER_HEX_PREFIX
Number format to highlight hex numbers with a prefix 0x.
Definition: geshi.php:217
const GESHI_NUMBER_BIN_PREFIX_0B
Number format to highlight binary numbers with a prefix 0b (C)
Definition: geshi.php:207
$language_data
Definition: f1.php:41
const GESHI_NUMBER_OCT_PREFIX_0O
Number format to highlight octal numbers with a prefix 0o (logtalk)
Definition: geshi.php:211
const GESHI_NUMBER_FLT_NONSCI
Number format to highlight floating-point numbers without support for scientific notation.
Definition: geshi.php:223
Create styles array
The data for the language used.
const GESHI_NUMBER_FLT_SCI_SHORT
Number format to highlight floating-point numbers with support for scientific notation (E) and option...
Definition: geshi.php:227
const GESHI_NEVER
#+ private
Definition: geshi.php:124
const GESHI_NUMBER_INT_BASIC
Basic number format for integers.
Definition: geshi.php:199
const GESHI_CAPS_NO_CHANGE
Lowercase keywords found.
Definition: geshi.php:95