ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
batch.php
Go to the documentation of this file.
1 <?php
2 /*************************************************************************************
3  * batch.php
4  * ------------
5  * Author: FraidZZ ( fraidzz [@] bk.ru )
6  * Copyright: (c) 2015 FraidZZ ( http://vk.com/fraidzz , http://www.cyberforum.ru/members/340557.html )
7  * Release Version: 1.0.9.0
8  * Date Started: 2015/03/28
9  *
10  * Windows batch file language file for GeSHi.
11  *
12  *************************************************************************************
13  * This file is part of GeSHi.
14  *
15  * GeSHi is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 2 of the License, or
18  * (at your option) any later version.
19  *
20  * GeSHi is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with GeSHi; if not, write to the Free Software
27  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28  ************************************************************************************/
29 
31  'LANG_NAME' => 'Windows Batch file',
32  'COMMENT_SINGLE' => array(),
33  'COMMENT_MULTI' => array(),
34  'COMMENT_REGEXP' => array(
35  100 => '/(?:^|[&|])\\s*(?:rem|::)[^\\n]*/msi',
36  101 => '/[\\/-]\\S*/si',
37  102 => '/^\s*:[^:]\\S*/msi',
38  103 => '/(?:([%!])[^"\'~ ][^"\' ]*\\1|%%?(?:~[dpnxsatz]*)?[^"\'])/si'
39  ),
40  'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
41  'QUOTEMARKS' => array("'", '"'),
42  'ESCAPE_CHAR' => '',
43  'ESCAPE_REGEXP' => array(
44  100 => '/(?:([%!])\\S+\\1|%%(?:~[dpnxsatz]*)?[^"\'])/si'
45  ),
46  'KEYWORDS' => array(
47  1 => array(
48  'echo',
49  'set',
50  'for',
51  'if',
52  'exit',
53  'else',
54  'do',
55  'not',
56  'defined',
57  'exist'
58  ),
59  2 => array(
60  "ASSOC",
61  "ATTRIB",
62  "BREAK",
63  "BCDEDIT",
64  "CACLS",
65  "CD",
66  "CHCP",
67  "CHDIR",
68  "CHKDSK",
69  "CHKNTFS",
70  "CLS",
71  "CMD",
72  "COLOR",
73  "COMP",
74  "COMPACT",
75  "CONVERT",
76  "COPY",
77  "DATE",
78  "DEL",
79  "DIR",
80  "DISKCOMP",
81  "DISKCOPY",
82  "DISKPART",
83  "DOSKEY",
84  "DRIVERQUERY",
85  "ECHO",
86  "ENDLOCAL",
87  "ERASE",
88  "EXIT",
89  "FC",
90  "FIND",
91  "FINDSTR",
92  "FOR",
93  "FORMAT",
94  "FSUTIL",
95  "FTYPE",
96  "GPRESULT",
97  "GRAFTABL",
98  "HELP",
99  "ICACLS",
100  "IF",
101  "LABEL",
102  "MD",
103  "MKDIR",
104  "MKLINK",
105  "MODE",
106  "MORE",
107  "MOVE",
108  "OPENFILES",
109  "PATH",
110  "PAUSE",
111  "POPD",
112  "PRINT",
113  "PROMPT",
114  "PUSHD",
115  "RD",
116  "RECOVER",
117  "REN",
118  "RENAME",
119  "REPLACE",
120  "RMDIR",
121  "ROBOCOPY",
122  "SET",
123  "SETLOCAL",
124  "SC",
125  "SCHTASKS",
126  "SHIFT",
127  "SHUTDOWN",
128  "SORT",
129  "START",
130  "SUBST",
131  "SYSTEMINFO",
132  "TASKLIST",
133  "TASKKILL",
134  "TIME",
135  "TITLE",
136  "TREE",
137  "TYPE",
138  "VER",
139  "VERIFY",
140  "VOL",
141  "XCOPY",
142  "WMIC",
143  "CSCRIPT"
144  ),
145  3 => array(
146  "enabledelayedexpansion",
147  "enableextensions"
148  )
149  ),
150  'SYMBOLS' => array(
151  '(',
152  ')',
153  '+',
154  '-',
155  '~',
156  '^',
157  '@',
158  '&',
159  '*',
160  '|',
161  '/',
162  '<',
163  '>'
164  ),
165  'CASE_SENSITIVE' => array(
166  GESHI_COMMENTS => false,
167  1 => false,
168  2 => false,
169  3 => false,
170  ),
171  'STYLES' => array(
172  'KEYWORDS' => array(
173  1 => 'color: #800080; font-weight: bold;',
174  2 => 'color: #0080FF; font-weight: bold;',
175  3 => 'color: #0000FF; font-weight: bold;'
176  ),
177  'COMMENTS' => array(
178  101 => 'color: #44aa44; font-weight: bold;',
179  100 => 'color: #888888;',
180  102 => 'color: #990000; font-weight: bold;',
181  103 => 'color: #000099; font-weight: bold;',
182  'MULTI' => 'color: #808080; font-style: italic;'
183  ),
184  'ESCAPE_CHAR' => array(
185  100 => 'color: #000099; font-weight: bold;'
186  ),
187  'BRACKETS' => array(
188  0 => 'color: #66cc66; font-weight: bold;'
189  ),
190  'STRINGS' => array(
191  0 => 'color: #ff0000;',
192  ),
193  'NUMBERS' => array(
194  0 => 'color: #cc66cc;'
195  ),
196  'METHODS' => array(
197  0 => 'color: #006600;'
198  ),
199  'SYMBOLS' => array(
200  0 => 'color: #44aa44; font-weight: bold;'
201  ),
202  'REGEXPS' => array(
203  0 => 'color: #990000; font-weight: bold',
204  1 => 'color: #800080; font-weight: bold;'
205  ),
206  'SCRIPT' => array()
207  ),
208  'URLS' => array(
209  1 => '',
210  2 => '',
211  3 => ''
212  ),
213  'OOLANG' => false,
214  'OBJECT_SPLITTERS' => array(),
215  'REGEXPS' => array(
216  0 => array(
217  GESHI_SEARCH => "((?:goto|call)\\s*)(\\S+)",
218  GESHI_REPLACE => "\\2",
219  GESHI_BEFORE => "\\1",
220  GESHI_MODIFIERS => "si",
221  GESHI_AFTER => ""
222  ),
223  1 => "goto|call"
224  ),
225  'STRICT_MODE_APPLIES' => GESHI_MAYBE,
226  'SCRIPT_DELIMITERS' => array(),
227  'HIGHLIGHT_STRICT_BLOCK' => array()
228 );
const GESHI_MODIFIERS
The key of the regex array defining any modifiers to the regular expression.
Definition: geshi.php:137
const GESHI_BEFORE
The key of the regex array defining what bracket group in a matched search to put before the replacem...
Definition: geshi.php:140
const GESHI_COMMENTS
Used in language files to mark comments.
Definition: geshi.php:149
const GESHI_REPLACE
The key of the regex array defining what bracket group in a matched search to use as a replacement...
Definition: geshi.php:135
const GESHI_SEARCH
The key of the regex array defining what to search for.
Definition: geshi.php:132
const GESHI_MAYBE
Strict mode might apply, and can be enabled or disabled by GeSHi->enable_strict_mode().
Definition: geshi.php:126
$language_data
Definition: batch.php:30
const GESHI_CAPS_NO_CHANGE
Lowercase keywords found.
Definition: geshi.php:94
const GESHI_AFTER
The key of the regex array defining what bracket group in a matched search to put after the replaceme...
Definition: geshi.php:143