jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [lib/] [geshi/] [cobol.php] - Blame information for rev 2

 

Line No. Rev Author Line
11simandl<?php
2/*************************************************************************************
3 * cobol.php
4 * ----------
5 * Author: BenBE (BenBE@omorphia.org)
6 * Copyright: (c) 2007-2008 BenBE (http://www.omorphia.de/)
7 * Release Version: 1.0.8.1
8 * Date Started: 2007/07/02
9 *
10 * COBOL language file for GeSHi.
11 *
12 * CHANGES
13 * -------
14 *
15 * TODO (updated 2007/07/02)
16 * -------------------------
17 *
18 *************************************************************************************
19 *
20 * This file is part of GeSHi.
21 *
22 * GeSHi is free software; you can redistribute it and/or modify
23 * it under the terms of the GNU General Public License as published by
24 * the Free Software Foundation; either version 2 of the License, or
25 * (at your option) any later version.
26 *
27 * GeSHi is distributed in the hope that it will be useful,
28 * but WITHOUT ANY WARRANTY; without even the implied warranty of
29 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 * GNU General Public License for more details.
31 *
32 * You should have received a copy of the GNU General Public License
33 * along with GeSHi; if not, write to the Free Software
34 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
35 *
36 ************************************************************************************/
37 
38$language_data = array (
39 'LANG_NAME' => 'COBOL',
40 'COMMENT_SINGLE' => array(),
41 'COMMENT_MULTI' => array(),
42 'COMMENT_REGEXP' => array(1 => '/^\*.*?$/m'),
43 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
44 'QUOTEMARKS' => array('"', "'"),
45 'ESCAPE_CHAR' => '\\',
46 'NUMBERS' =>
47 GESHI_NUMBER_INT_BASIC |
48 GESHI_NUMBER_FLT_NONSCI |
49 GESHI_NUMBER_FLT_SCI_SHORT |
50 GESHI_NUMBER_FLT_SCI_ZERO,
51 'KEYWORDS' => array(
52 1 => array( //Compiler Directives
53 'ANSI', 'BLANK', 'NOBLANK', 'CALL-SHARED', 'CANCEL', 'NOCANCEL',
54 'CHECK', 'CODE', 'NOCODE', 'COLUMNS', 'COMPACT', 'NOCOMPACT',
55 'COMPILE', 'CONSULT', 'NOCONSULT', 'CROSSREF', 'NOCROSSREF',
56 'DIAGNOSE-74', 'NODIAGNOSE-74', 'DIAGNOSE-85', 'NODIAGNOSE-85',
57 'DIAGNOSEALL', 'NODIAGNOSEALL', 'ENDIF', 'ENDUNIT', 'ENV',
58 'ERRORFILE', 'ERRORS', 'FIPS', 'NOFIPS', 'FMAP', 'HEADING', 'HEAP',
59 'HIGHPIN', 'HIGHREQUESTERS', 'ICODE', 'NOICODE', 'IF', 'IFNOT',
60 'INNERLIST', 'NOINNERLIST', 'INSPECT', 'NOINSPECT', 'LARGEDATA',
61 'LD', 'LESS-CODE', 'LIBRARY', 'LINES', 'LIST', 'NOLIST', 'LMAP',
62 'NOLMAP', 'MAIN', 'MAP', 'NOMAP', 'NLD', 'NONSTOP', 'NON-SHARED',
63 'OPTIMIZE', 'PERFORM-TRACE', 'PORT', 'NOPORT', 'RESETTOG',
64 'RUNNABLE', 'RUNNAMED', 'SAVE', 'SAVEABEND', 'NOSAVEABEND',
65 'SEARCH', 'NOSEARCH', 'SECTION', 'SETTOG', 'SHARED', 'SHOWCOPY',
66 'NOSHOWCOPY', 'SHOWFILE', 'NOSHOWFILE', 'SOURCE', 'SQL', 'NOSQL',
67 'SQLMEM', 'SUBSET', 'SUBTYPE', 'SUPPRESS', 'NOSUPPRESS', 'SYMBOLS',
68 'NOSYMBOLS', 'SYNTAX', 'TANDEM', 'TRAP2', 'NOTRAP2', 'TRAP2-74',
69 'NOTRAP2-74', 'UL', 'WARN', 'NOWARN'
70 ),
71 2 => array( //Statement Keywords
72 'ACCEPT', 'ADD', 'TO', 'GIVING', 'CORRESPONDING', 'ALTER', 'CALL',
73 'CANCEL', 'CHECKPOINT', 'CLOSE', 'COMPUTE', 'CONTINUE', 'COPY',
74 'DELETE', 'DISPLAY', 'DIVIDE', 'INTO', 'REMAINDER', 'ENTER',
75 'COBOL', 'EVALUATE', 'EXIT', 'GO', 'IF', 'INITIALIZE', 'INSPECT',
76 'TALLYING', 'REPLACING', 'CONVERTING', 'LOCKFILE', 'MERGE', 'MOVE',
77 'MULTIPLY', 'BY', 'OPEN', 'PERFORM', 'TIMES',
78 'UNTIL', 'VARYING', 'READ', 'RELEASE', 'REPLACE', 'RETURN',
79 'REWRITE', 'SEARCH', 'SET', 'UP', 'DOWN', 'SORT', 'START',
80 'STARTBACKUP', 'STOP', 'STRING', 'SUBTRACT', 'FROM', 'UNLOCKFILE',
81 'UNLOCKRECORD', 'UNSTRING', 'USE', 'DEBUGGING', 'AFTER',
82 'EXCEPTION', 'WRITE'
83 ),
84 3 => array( //Reserved in some contexts
85 'ACCESS', 'ADDRESS', 'ADVANCING', 'AFTER', 'ALL',
86 'ALPHABET', 'ALPHABETIC', 'ALPHABETIC-LOWER', 'ALPHABETIC-UPPER',
87 'ALPHANUMERIC', 'ALPHANUMERIC-EDITED', 'ALSO', 'ALTER', 'ALTERNATE',
88 'AND', 'ANY', 'APPROXIMATE', 'AREA', 'AREAS', 'ASCENDING', 'ASSIGN',
89 'AT', 'AUTHOR', 'BEFORE', 'BINARY', 'BLANK', 'BLOCK', 'BOTTOM', 'BY',
90 'CALL', 'CANCEL', 'CD', 'CF', 'CH', 'CHARACTER', 'CHARACTERS',
91 'CHARACTER-SET', 'CHECKPOINT', 'CLASS', 'CLOCK-UNITS', 'CLOSE',
92 'COBOL', 'CODE', 'CODE-SET', 'COLLATING', 'COLUMN', 'COMMA',
93 'COMMON', 'COMMUNICATION', 'COMP', 'COMP-3', 'COMP-5',
94 'COMPUTATIONAL', 'COMPUTATIONAL-3', 'COMPUTATIONAL-5',
95 'CONFIGURATION', 'CONTAINS', 'CONTENT', 'CONTINUE', 'CONTROL',
96 'CONTROLS', 'CONVERTING', 'COPY', 'CORR', 'CORRESPONDING', 'COUNT',
97 'CURRENCY', 'DATA', 'DATE', 'DATE-COMPILED', 'DATE-WRITTEN', 'DAY',
98 'DAY-OF-WEEK', 'DE', 'DEBUG-CONTENTS', 'DEBUG-ITEM', 'DEBUG-LINE',
99 'DEBUG-SUB-2', 'DEBUG-SUB-3', 'DEBUGGING', 'DECIMAL-POINT',
100 'DECLARATIVES', 'DEBUG-NAME', 'DEBUG-SUB-1', 'DELETE', 'DELIMITED',
101 'DELIMITER', 'DEPENDING', 'DESCENDING', 'DESTINATION', 'DETAIL',
102 'DISABLE', 'DISPLAY', 'DIVIDE', 'DIVISION', 'DOWN', 'DUPLICATES',
103 'DYNAMIC', 'EGI', 'ELSE', 'EMI', 'ENABLE', 'END', 'END-ADD',
104 'END-COMPUTE', 'END-DELETE', 'END-DIVIDE', 'END-EVALUATE', 'END-IF',
105 'END-MULTIPLY', 'END-OF-PAGE', 'END-PERFORM', 'END-READ',
106 'END-RECEIVE', 'END-RETURN', 'END-REWRITE', 'END-SEARCH',
107 'END-START', 'END-STRING', 'END-SUBTRACT', 'END-UNSTRING',
108 'END-WRITE', 'ENTER', 'EOP', 'EQUAL', 'ERROR', 'ESI', 'EVALUATE',
109 'EVERY', 'EXCEPTION', 'EXCLUSIVE', 'EXIT', 'EXTEND',
110 'EXTENDED-STORAGE', 'EXTERNAL', 'FALSE', 'FD', 'FILE',
111 'FILE-CONTROL', 'FILLER', 'FINAL', 'FIRST', 'FOOTING', 'FOR',
112 'FROM', 'FUNCTION', 'GENERATE', 'GENERIC', 'GIVING', 'GLOBAL',
113 'GO', 'GREATER', 'GROUP', 'GUARDIAN-ERR', 'HEADING', 'HIGH-VALUE',
114 'HIGH-VALUES', 'I-O', 'I-O-CONTROL', 'IDENTIFICATION', 'IN',
115 'INDEX', 'INDEXED', 'INDICATE', 'INITIAL', 'INITIALIZE', 'INITIATE',
116 'INPUT', 'INPUT-OUTPUT', 'INSPECT', 'INSTALLATION', 'INTO',
117 'INVALID', 'IS', 'JUST', 'JUSTIFIED', 'KEY', 'LABEL', 'LAST',
118 'LEADING', 'LEFT', 'LENGTH', 'LESS', 'LIMIT', 'LIMITS', 'LINAGE',
119 'LINAGE-COUNTER', 'LINE', 'LINE-COUNTER', 'LINKAGE', 'LOCK',
120 'LOCKFILE', 'LOW-VALUE', 'LOW-VALUES', 'MEMORY', 'MERGE', 'MESSAGE',
121 'MODE', 'MODULES', 'MOVE', 'MULTIPLE', 'MULTIPLY', 'NATIVE',
122 'NEGATIVE', 'NEXT', 'NO', 'NOT', 'NULL', 'NULLS', 'NUMBER',
123 'NUMERIC', 'NUMERIC-EDITED', 'OBJECT-COMPUTER', 'OCCURS', 'OF',
124 'OFF', 'OMITTED', 'ON', 'OPEN', 'OPTIONAL', 'OR', 'ORDER',
125 'ORGANIZATION', 'OTHER', 'OUTPUT', 'OVERFLOW', 'PACKED-DECIMAL',
126 'PADDING', 'PAGE', 'PAGE-COUNTER', 'PERFORM', 'PF', 'PH', 'PIC',
127 'PICTURE', 'PLUS', 'POINTER', 'POSITION', 'POSITIVE', 'PRINTING',
128 'PROCEDURE', 'PROCEDURES', 'PROCEED', 'PROGRAM', 'PROGRAM-ID',
129 'PROGRAM-STATUS', 'PROGRAM-STATUS-1', 'PROGRAM-STATUS-2', 'PROMPT',
130 'PROTECTED', 'PURGE', 'QUEUE', 'QUOTE', 'QUOTES', 'RANDOM', 'RD',
131 'READ', 'RECEIVE', 'RECEIVE-CONTROL', 'RECORD', 'RECORDS',
132 'REDEFINES', 'REEL', 'REFERENCE', 'REFERENCES', 'RELATIVE',
133 'RELEASE', 'REMAINDER', 'REMOVAL', 'RENAMES', 'REPLACE',
134 'REPLACING', 'REPLY', 'REPORT', 'REPORTING', 'REPORTS', 'RERUN',
135 'RESERVE', 'RESET', 'REVERSED', 'REWIND', 'REWRITE', 'RF',
136 'RH', 'RIGHT', 'ROUNDED', 'RUN', 'SAME', 'SD', 'SEARCH', 'SECTION',
137 'SECURITY', 'SEGMENT', 'SEGMENT-LIMIT', 'SELECT', 'SEND',
138 'SENTENCE', 'SEPARATE', 'SEQUENCE', 'SEQUENTIAL', 'SET', 'SHARED',
139 'SIGN', 'SIZE', 'SORT', 'SORT-MERGE', 'SOURCE', 'SOURCE-COMPUTER',
140 'SPACE', 'SPACES', 'SPECIAL-NAMES', 'STANDARD', 'STANDARD-1',
141 'STANDARD-2', 'START', 'STARTBACKUP', 'STATUS', 'STOP', 'STRING',
142 'SUB-QUEUE-1', 'SUB-QUEUE-2', 'SUB-QUEUE-3', 'SUBTRACT', 'SUM',
143 'SUPPRESS', 'SYMBOLIC', 'SYNC', 'SYNCDEPTH', 'SYNCHRONIZED',
144 'TABLE', 'TAL', 'TALLYING', 'TAPE', 'TERMINAL', 'TERMINATE', 'TEST',
145 'TEXT', 'THAN', 'THEN', 'THROUGH', 'THRU', 'TIME', 'TIMES', 'TO',
146 'TOP', 'TRAILING', 'TRUE', 'TYPE', 'UNIT', 'UNLOCK', 'UNLOCKFILE',
147 'UNLOCKRECORD', 'UNSTRING', 'UNTIL', 'UP', 'UPON', 'USAGE', 'USE',
148 'USING', 'VALUE', 'VALUES', 'VARYING', 'WHEN', 'WITH', 'WORDS',
149 'WORKING-STORAGE', 'WRITE', 'ZERO', 'ZEROES'
150 ),
151 4 => array( //Standard functions
152 'ACOS', 'ANNUITY', 'ASIN', 'ATAN', 'CHAR', 'COS', 'CURRENT-DATE',
153 'DATE-OF-INTEGER', 'DAY-OF-INTEGER', 'FACTORIAL', 'INTEGER',
154 'INTEGER-OF-DATE', 'INTEGER-OF-DAY', 'INTEGER-PART', 'LENGTH',
155 'LOG', 'LOG10', 'LOWER-CASE', 'MAX', 'MEAN', 'MEDIAN', 'MIDRANGE',
156 'MIN', 'MOD', 'NUMVAL', 'NUMVAL-C', 'ORD', 'ORD-MAX', 'ORD-MIN',
157 'PRESENT-VALUE', 'RANDOM', 'RANGE', 'REM', 'REVERSE', 'SIN', 'SQRT',
158 'STANDARD-DEVIATION', 'SUM', 'TAN', 'UPPER-CASE', 'VARIANCE',
159 'WHEN-COMPILED'
160 ),
161 5 => array( //Privileged Built-in Functions
162 '#IN', '#OUT', '#TERM', '#TEMP', '#DYNAMIC', 'COBOL85^ARMTRAP',
163 'COBOL85^COMPLETION', 'COBOL_COMPLETION_', 'COBOL_CONTROL_',
164 'COBOL_GETENV_', 'COBOL_PUTENV_', 'COBOL85^RETURN^SORT^ERRORS',
165 'COBOL_RETURN_SORT_ERRORS_', 'COBOL85^REWIND^SEQUENTIAL',
166 'COBOL_REWIND_SEQUENTIAL_', 'COBOL85^SET^SORT^PARAM^TEXT',
167 'COBOL_SET_SORT_PARAM_TEXT_', 'COBOL85^SET^SORT^PARAM^VALUE',
168 'COBOL_SET_SORT_PARAM_VALUE_', 'COBOL_SET_MAX_RECORD_',
169 'COBOL_SETMODE_', 'COBOL85^SPECIAL^OPEN', 'COBOL_SPECIAL_OPEN_',
170 'COBOLASSIGN', 'COBOL_ASSIGN_', 'COBOLFILEINFO', 'COBOL_FILE_INFO_',
171 'COBOLSPOOLOPEN', 'CREATEPROCESS', 'ALTERPARAMTEXT',
172 'CHECKLOGICALNAME', 'CHECKMESSAGE', 'DELETEASSIGN', 'DELETEPARAM',
173 'DELETESTARTUP', 'GETASSIGNTEXT', 'GETASSIGNVALUE', 'GETBACKUPCPU',
174 'GETPARAMTEXT', 'GETSTARTUPTEXT', 'PUTASSIGNTEXT', 'PUTASSIGNVALUE',
175 'PUTPARAMTEXT', 'PUTSTARTUPTEXT'
176 )
177 ),
178 'SYMBOLS' => array(
179 //Avoid having - in identifiers marked as symbols
180 ' + ', ' - ', ' * ', ' / ', ' ** ',
181 '.', ',',
182 '=',
183 '(', ')', '[', ']'
184 ),
185 'CASE_SENSITIVE' => array(
186 GESHI_COMMENTS => false,
187 1 => false,
188 2 => false,
189 3 => false,
190 4 => false,
191 5 => false
192 ),
193 'STYLES' => array(
194 'KEYWORDS' => array(
195 1 => 'color: #000080; font-weight: bold;',
196 2 => 'color: #000000; font-weight: bold;',
197 3 => 'color: #008000; font-weight: bold;',
198 4 => 'color: #000080;',
199 5 => 'color: #008000;',
200 ),
201 'COMMENTS' => array(
202 1 => 'color: #a0a0a0; font-style: italic;',
203 'MULTI' => 'color: #a0a0a0; font-style: italic;'
204 ),
205 'ESCAPE_CHAR' => array(
206 
207 ),
208 'BRACKETS' => array(
209 
210 ),
211 'STRINGS' => array(
212 
213 ),
214 'NUMBERS' => array(
215 
216 ),
217 'METHODS' => array(
218 1 => 'color: #202020;'
219 ),
220 'SYMBOLS' => array(
221 
222 ),
223 'REGEXPS' => array(
224 ),
225 'SCRIPT' => array(
226 )
227 ),
228 'URLS' => array(
229 1 => '',
230 2 => '',
231 3 => '',
232 4 => '',
233 5 => ''
234 ),
235 'OOLANG' => false,
236 'OBJECT_SPLITTERS' => array(
237 ),
238 'REGEXPS' => array(
239 ),
240 'STRICT_MODE_APPLIES' => GESHI_NEVER,
241 'SCRIPT_DELIMITERS' => array(
242 ),
243 'HIGHLIGHT_STRICT_BLOCK' => array(
244 ),
245 'TAB_WIDTH' => 4
246 );
247 
248?>

Powered by WebSVN 2.2.1