ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
dcs.php
Go to the documentation of this file.
1 <?php
2 /*************************************************************************************
3  * dcs.php
4  * ---------------------------------
5  * Author: Stelio Passaris (GeSHi@stelio.net)
6  * Copyright: (c) 2009 Stelio Passaris (http://stelio.net/stiki/GeSHi)
7  * Release Version: 1.0.9.0
8  * Date Started: 2009/01/20
9  *
10  * DCS language file for GeSHi.
11  *
12  * DCS (Data Conversion System) is part of Sungard iWorks' Prophet suite and is used
13  * to convert external data files into a format that Prophet and Glean can read.
14  * See http://www.prophet-web.com/Products/DCS for product information.
15  * This language file is current for DCS version 7.3.2.
16  *
17  * Note that the DCS IDE does not handle escape characters correctly. The IDE thinks
18  * that a backslash '\' is an escape character, but in practice the backslash does
19  * not escape the string delimiter character '"' when the program runs. A '\\' is
20  * escaped to '\' when the program runs, but '\"' is treated as '\' at the end of a
21  * string. Therefore in this language file, we do not recognise the backslash as an
22  * escape character. For the purposes of GeSHi, there is no character escaping.
23  *
24  * CHANGES
25  * -------
26  * 2009/02/21 (1.0.8.3)
27  * - First Release
28  *
29  * TODO (updated 2009/02/21)
30  * -------------------------
31  * * Add handling for embedded C code. Note that the DCS IDE does not highlight C code
32  * correctly, but that doesn't mean that we can't! This will be included for a
33  * stable release of GeSHi of version 1.1.x (or later) that allows for highlighting
34  * embedded code using that code's appropriate language file.
35  *
36  *************************************************************************************
37  *
38  * This file is part of GeSHi.
39  *
40  * GeSHi is free software; you can redistribute it and/or modify
41  * it under the terms of the GNU General Public License as published by
42  * the Free Software Foundation; either version 2 of the License, or
43  * (at your option) any later version.
44  *
45  * GeSHi is distributed in the hope that it will be useful,
46  * but WITHOUT ANY WARRANTY; without even the implied warranty of
47  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48  * GNU General Public License for more details.
49  *
50  * You should have received a copy of the GNU General Public License
51  * along with GeSHi; if not, write to the Free Software
52  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
53  *************************************************************************************/
54 
55 $language_data = array (
56  'LANG_NAME' => 'DCS',
57  'COMMENT_SINGLE' => array(
58  1 => ';'
59  ),
60  'COMMENT_MULTI' => array(
61  ),
62  'COMMENT_REGEXP' => array(
63  // Highlight embedded C code in a separate color:
64  2 => '/\bINSERT_C_CODE\b.*?\bEND_C_CODE\b/ims'
65  ),
66  'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
67  'QUOTEMARKS' => array(
68  '"'
69  ),
70  'ESCAPE_CHAR' => '',
71  'ESCAPE_REGEXP' => '',
72  'NUMBERS' =>
74  'KEYWORDS' => array(
75  1 => array(
76  'abs', 'ascii_value', 'bit_value', 'blank_date', 'calc_unit_values', 'cm',
77  'complete_months', 'complete_years', 'correct', 'create_input_file', 'cy',
78  'date_convert', 'day', 'del_output_separator',
79  'delete_existing_output_files', 'div', 'ex', 'exact_years', 'exp',
80  'extract_date', 'failed_validation', 'file_number', 'first_record',
81  'fract', 'fund_fac_a', 'fund_fac_b', 'fund_fac_c', 'fund_fac_d',
82  'fund_fac_e', 'fund_fac_f', 'fund_fac_g', 'fund_fac_h', 'fund_fac_i',
83  'fund_fac_j', 'fund_fac_k', 'fund_fac_l', 'fund_fac_m', 'fund_fac_n',
84  'fund_fac_o', 'fund_fac_p', 'fund_fac_q', 'fund_fac_r', 'fund_fac_s',
85  'fund_fac_t', 'fund_fac_u', 'fund_fac_v', 'fund_fac_w', 'fund_fac_x',
86  'fund_fac_y', 'fund_fac_z', 'group', 'group_record',
87  'input_file_date_time', 'input_file_extension', 'input_file_location',
88  'input_file_name', 'int', 'invalid', 'last_record', 'leap_year', 'len',
89  'ln', 'log', 'main_format_name', 'max', 'max_num_subrecords', 'message',
90  'min', 'mod', 'month', 'months_add', 'months_sub', 'nearest_months',
91  'nearest_years', 'next_record', 'nm', 'no_of_current_records',
92  'no_of_records', 'numval', 'ny', 'output', 'output_array_as_constants',
93  'output_file_path', 'output_record', 'pmdf_output', 'previous', 'rand',
94  're_start', 'read_generic_table', 'read_generic_table_text',
95  'read_input_footer', 'read_input_footer_text', 'read_input_header',
96  'read_input_header_text', 'record_count', 'record_suppressed', 'round',
97  'round_down', 'round_near', 'round_up', 'run_dcs_program', 'run_parameter',
98  'run_parameter_text', 'set_main_record', 'set_num_subrecords',
99  'sort_array', 'sort_current_records', 'sort_input', 'strval', 'substr',
100  'summarise', 'summarise_record', 'summarise_units',
101  'summarise_units_record', 'suppress_record', 'table_correct',
102  'table_validate', 'terminate', 'time', 'today', 'trim', 'ubound', 'year',
103  'years_add', 'years_sub'
104  ),
105  2 => array(
106  'and', 'as', 'begin', 'boolean', 'byref', 'byval', 'call', 'case', 'date',
107  'default', 'do', 'else', 'elseif', 'end_c_code', 'endfor', 'endfunction',
108  'endif', 'endproc', 'endswitch', 'endwhile', 'eq',
109  'explicit_declarations', 'false', 'for', 'from', 'function', 'ge', 'gt',
110  'if', 'insert_c_code', 'integer', 'le', 'loop', 'lt', 'ne', 'not',
111  'number', 'or', 'private', 'proc', 'public', 'quitloop', 'return',
112  'short', 'step', 'switch', 'text', 'then', 'to', 'true', 'while'
113  ),
114  3 => array(
115  // These keywords are not highlighted by the DCS IDE but we may as well
116  // keep track of them anyway:
117  'mp_file', 'odbc_file'
118  )
119  ),
120  'SYMBOLS' => array(
121  '(', ')', '[', ']',
122  '=', '<', '>',
123  '+', '-', '*', '/', '^',
124  ':', ','
125  ),
126  'CASE_SENSITIVE' => array(
127  GESHI_COMMENTS => false,
128  1 => false,
129  2 => false,
130  3 => false,
131  ),
132  'STYLES' => array(
133  'KEYWORDS' => array(
134  1 => 'color: red;',
135  2 => 'color: blue;',
136  3 => 'color: black;'
137  ),
138  'COMMENTS' => array(
139  1 => 'color: black; background-color: silver;',
140  // Colors for highlighting embedded C code:
141  2 => 'color: maroon; background-color: pink;'
142  ),
143  'ESCAPE_CHAR' => array(
144  ),
145  'BRACKETS' => array(
146  0 => 'color: black;'
147  ),
148  'STRINGS' => array(
149  0 => 'color: green;'
150  ),
151  'NUMBERS' => array(
152  0 => 'color: green;'
153  ),
154  'METHODS' => array(
155  ),
156  'SYMBOLS' => array(
157  0 => 'color: black;'
158  ),
159  'REGEXPS' => array(
160  ),
161  'SCRIPT' => array(
162  ),
163  ),
164  'URLS' => array(
165  1 => '',
166  2 => '',
167  3 => ''
168  ),
169  'OOLANG' => false,
170  'OBJECT_SPLITTERS' => array(
171  ),
172  'REGEXPS' => array(
173  ),
174  'STRICT_MODE_APPLIES' => GESHI_NEVER,
175  'SCRIPT_DELIMITERS' => array(
176  ),
177  'HIGHLIGHT_STRICT_BLOCK' => array(
178  ),
179  'TAB_WIDTH' => 4
180 );
const GESHI_NUMBER_FLT_SCI_ZERO
Number format to highlight floating-point numbers with support for scientific notation (E) and requir...
Definition: geshi.php:195
const GESHI_COMMENTS
Used in language files to mark comments.
Definition: geshi.php:149
$language_data
Definition: dcs.php:55
const GESHI_CAPS_UPPER
Uppercase keywords found.
Definition: geshi.php:96
const GESHI_NEVER
#+ private
Definition: geshi.php:123
const GESHI_NUMBER_INT_BASIC
Basic number format for integers.
Definition: geshi.php:165