3
|
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.8.4
|
|
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 |
'HARDQUOTE' => array(
|
|
63 |
),
|
|
64 |
'HARDESCAPE' => '',
|
|
65 |
'COMMENT_REGEXP' => array(
|
|
66 |
// Highlight embedded C code in a separate color:
|
|
67 |
2 => '/\bINSERT_C_CODE\b.*?\bEND_C_CODE\b/ims'
|
|
68 |
),
|
|
69 |
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
|
|
70 |
'QUOTEMARKS' => array(
|
|
71 |
'"'
|
|
72 |
),
|
|
73 |
'ESCAPE_CHAR' => '',
|
|
74 |
'ESCAPE_REGEXP' => '',
|
|
75 |
'NUMBERS' =>
|
|
76 |
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_FLT_SCI_ZERO,
|
|
77 |
'KEYWORDS' => array(
|
|
78 |
1 => array(
|
|
79 |
'abs', 'ascii_value', 'bit_value', 'blank_date', 'calc_unit_values', 'cm',
|
|
80 |
'complete_months', 'complete_years', 'correct', 'create_input_file', 'cy',
|
|
81 |
'date_convert', 'day', 'del_output_separator',
|
|
82 |
'delete_existing_output_files', 'div', 'ex', 'exact_years', 'exp',
|
|
83 |
'extract_date', 'failed_validation', 'file_number', 'first_record',
|
|
84 |
'fract', 'fund_fac_a', 'fund_fac_b', 'fund_fac_c', 'fund_fac_d',
|
|
85 |
'fund_fac_e', 'fund_fac_f', 'fund_fac_g', 'fund_fac_h', 'fund_fac_i',
|
|
86 |
'fund_fac_j', 'fund_fac_k', 'fund_fac_l', 'fund_fac_m', 'fund_fac_n',
|
|
87 |
'fund_fac_o', 'fund_fac_p', 'fund_fac_q', 'fund_fac_r', 'fund_fac_s',
|
|
88 |
'fund_fac_t', 'fund_fac_u', 'fund_fac_v', 'fund_fac_w', 'fund_fac_x',
|
|
89 |
'fund_fac_y', 'fund_fac_z', 'group', 'group_record',
|
|
90 |
'input_file_date_time', 'input_file_extension', 'input_file_location',
|
|
91 |
'input_file_name', 'int', 'invalid', 'last_record', 'leap_year', 'len',
|
|
92 |
'ln', 'log', 'main_format_name', 'max', 'max_num_subrecords', 'message',
|
|
93 |
'min', 'mod', 'month', 'months_add', 'months_sub', 'nearest_months',
|
|
94 |
'nearest_years', 'next_record', 'nm', 'no_of_current_records',
|
|
95 |
'no_of_records', 'numval', 'ny', 'output', 'output_array_as_constants',
|
|
96 |
'output_file_path', 'output_record', 'pmdf_output', 'previous', 'rand',
|
|
97 |
're_start', 'read_generic_table', 'read_generic_table_text',
|
|
98 |
'read_input_footer', 'read_input_footer_text', 'read_input_header',
|
|
99 |
'read_input_header_text', 'record_count', 'record_suppressed', 'round',
|
|
100 |
'round_down', 'round_near', 'round_up', 'run_dcs_program', 'run_parameter',
|
|
101 |
'run_parameter_text', 'set_main_record', 'set_num_subrecords',
|
|
102 |
'sort_array', 'sort_current_records', 'sort_input', 'strval', 'substr',
|
|
103 |
'summarise', 'summarise_record', 'summarise_units',
|
|
104 |
'summarise_units_record', 'suppress_record', 'table_correct',
|
|
105 |
'table_validate', 'terminate', 'time', 'today', 'trim', 'ubound', 'year',
|
|
106 |
'years_add', 'years_sub'
|
|
107 |
),
|
|
108 |
2 => array(
|
|
109 |
'and', 'as', 'begin', 'boolean', 'byref', 'byval', 'call', 'case', 'date',
|
|
110 |
'default', 'do', 'else', 'elseif', 'end_c_code', 'endfor', 'endfunction',
|
|
111 |
'endif', 'endproc', 'endswitch', 'endwhile', 'eq',
|
|
112 |
'explicit_declarations', 'false', 'for', 'from', 'function', 'ge', 'gt',
|
|
113 |
'if', 'insert_c_code', 'integer', 'le', 'loop', 'lt', 'ne', 'not',
|
|
114 |
'number', 'or', 'private', 'proc', 'public', 'quitloop', 'return',
|
|
115 |
'short', 'step', 'switch', 'text', 'then', 'to', 'true', 'while'
|
|
116 |
),
|
|
117 |
3 => array(
|
|
118 |
// These keywords are not highlighted by the DCS IDE but we may as well
|
|
119 |
// keep track of them anyway:
|
|
120 |
'mp_file', 'odbc_file'
|
|
121 |
)
|
|
122 |
),
|
|
123 |
'SYMBOLS' => array(
|
|
124 |
'(', ')', '[', ']',
|
|
125 |
'=', '<', '>',
|
|
126 |
'+', '-', '*', '/', '^',
|
|
127 |
':', ','
|
|
128 |
),
|
|
129 |
'CASE_SENSITIVE' => array(
|
|
130 |
GESHI_COMMENTS => false,
|
|
131 |
1 => false,
|
|
132 |
2 => false,
|
|
133 |
3 => false,
|
|
134 |
),
|
|
135 |
'STYLES' => array(
|
|
136 |
'KEYWORDS' => array(
|
|
137 |
1 => 'color: red;',
|
|
138 |
2 => 'color: blue;',
|
|
139 |
3 => 'color: black;'
|
|
140 |
),
|
|
141 |
'COMMENTS' => array(
|
|
142 |
1 => 'color: black; background-color: silver;',
|
|
143 |
// Colors for highlighting embedded C code:
|
|
144 |
2 => 'color: maroon; background-color: pink;'
|
|
145 |
),
|
|
146 |
'ESCAPE_CHAR' => array(
|
|
147 |
),
|
|
148 |
'BRACKETS' => array(
|
|
149 |
0 => 'color: black;'
|
|
150 |
),
|
|
151 |
'STRINGS' => array(
|
|
152 |
0 => 'color: green;'
|
|
153 |
),
|
|
154 |
'NUMBERS' => array(
|
|
155 |
0 => 'color: green;'
|
|
156 |
),
|
|
157 |
'METHODS' => array(
|
|
158 |
),
|
|
159 |
'SYMBOLS' => array(
|
|
160 |
0 => 'color: black;'
|
|
161 |
),
|
|
162 |
'REGEXPS' => array(
|
|
163 |
),
|
|
164 |
'SCRIPT' => array(
|
|
165 |
),
|
|
166 |
),
|
|
167 |
'URLS' => array(
|
|
168 |
1 => '',
|
|
169 |
2 => '',
|
|
170 |
3 => ''
|
|
171 |
),
|
|
172 |
'OOLANG' => false,
|
|
173 |
'OBJECT_SPLITTERS' => array(
|
|
174 |
),
|
|
175 |
'REGEXPS' => array(
|
|
176 |
),
|
|
177 |
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
178 |
'SCRIPT_DELIMITERS' => array(
|
|
179 |
),
|
|
180 |
'HIGHLIGHT_STRICT_BLOCK' => array(
|
|
181 |
),
|
|
182 |
'TAB_WIDTH' => 4
|
|
183 |
);
|
|
184 |
|
|
185 |
?> |