KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

182 lines
7.4KB

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