Added GeShi syntax highlighting mod

This commit is contained in:
Travis Burtrum 2014-02-03 23:09:40 -05:00
parent be85b7ae06
commit 5cb937a2fd
235 changed files with 65908 additions and 31 deletions

Binary file not shown.

View File

@ -0,0 +1 @@
1391537333

View File

@ -1122,43 +1122,69 @@ function parse_bbc($message, $smileys = true, $cache_id = '', $parse_tags = arra
array(
'tag' => 'code',
'type' => 'unparsed_equals_content',
'content' => '<div class="codeheader">' . $txt['code'] . ': ($2) <a href="#" onclick="return smfSelectText(this);" class="codeoperation">' . $txt['code_select'] . '</a></div>' . ($context['browser']['is_gecko'] || $context['browser']['is_opera'] ? '<pre style="margin: 0; padding: 0;">' : '') . '<code class="bbc_code">$1</code>' . ($context['browser']['is_gecko'] || $context['browser']['is_opera'] ? '</pre>' : ''),
'content' => '$1',
// !!! Maybe this can be simplified?
'validate' => isset($disabled['code']) ? null : create_function('&$tag, &$data, $disabled', '
global $context;
global $sourcedir, $settings, $txt;
if (!isset($disabled[\'code\']))
{
$php_parts = preg_split(\'~(&lt;\?php|\?&gt;)~\', $data[0], -1, PREG_SPLIT_DELIM_CAPTURE);
$data[0] = strtr($data[0], array(
\'&#91;]\' => \'[]\',
\'&#91;&#039;\' => \'[&#039;\',
\'<br />\' => "\n",
)
);
$data[0] = un_htmlspecialchars($data[0]);
$data[1] = explode(\',\', $data[1]);
for ($php_i = 0, $php_n = count($php_parts); $php_i < $php_n; $php_i++)
{
// Do PHP code coloring?
if ($php_parts[$php_i] != \'&lt;?php\')
continue;
if (strpos($data[1][0], \'.\')) {
list($lang, $start_number) = explode(\'.\', $data[1][0]);
} else {
$lang = $data[1][0];
$start_number = 1;
}
$php_string = \'\';
while ($php_i + 1 < count($php_parts) && $php_parts[$php_i] != \'?&gt;\')
{
$php_string .= $php_parts[$php_i];
$php_parts[$php_i++] = \'\';
}
$php_parts[$php_i] = highlight_php_code($php_string . $php_parts[$php_i]);
}
if (!is_numeric($start_number))
$start_number = 1;
// Fix the PHP code stuff...
$data[0] = str_replace("<pre style=\"display: inline;\">\t</pre>", "\t", implode(\'\', $php_parts));
include_once($sourcedir . \'/geshi.php\');
// Older browsers are annoying, aren\'t they?
if ($context[\'browser\'][\'is_ie4\'] || $context[\'browser\'][\'is_ie5\'] || $context[\'browser\'][\'is_ie5.5\'])
$data[0] = str_replace("\t", "<pre style=\"display: inline;\">\t</pre>", $data[0]);
else
$data[0] = str_replace("\t", "<span style=\"white-space: pre;\">\t</span>", $data[0]);
$geshi = new Geshi($data[0], $lang);
if ($geshi->error()) {
$lang = "text";
$geshi->set_language($lang, true);
}
$geshi->set_overall_class(\'geshi\');
// Recent Opera bug requiring temporary fix. &nsbp; is needed before </code> to avoid broken selection.
if ($context[\'browser\'][\'is_opera\'])
$data[0] .= \'&nbsp;\';
}'),
$geshi->start_line_numbers_at($start_number);
if(count($data[1]) > 1) {
array_filter($data[1], \'is_numeric\');
if (strlen(trim($settings[\'geshi_highlight_lines_extra_style\'])))
$geshi->set_highlight_lines_extra_style($settings[\'geshi_highlight_lines_extra_style\']);
$geshi->highlight_lines_extra($data[1]);
}
$geshi->set_overall_class(\'geshi\');
$geshi->set_header_type($settings[\'geshi_code_container\']);
$geshi->enable_line_numbers($settings[\'geshi_line_numbers\'], $settings[\'geshi_fancy_line_number\']);
$geshi->set_line_style($settings[\'geshi_line_style\'], $settings[\'geshi_line_style_fancy\']);
$pre_header = "";
if ($settings[\'geshi_enable_pre_header\']) {
$pre_header = \'<div class="codeheader">\' . str_replace(array("{CODE}", "{TAG}", "{LANGUAGE}"), array($txt[\'code\'], strtoupper($lang), $geshi->get_language_name()), $settings[\'geshi_pre_header\']) . "</div>";
}
if ($settings[\'geshi_enable_header\']) {
$geshi->set_header_content($settings[\'geshi_header\']);
}
if ($settings[\'geshi_enable_footer\']) {
$geshi->set_footer_content($settings[\'geshi_footer\']);
}
$data[0] = $pre_header . str_replace("\n", "", $geshi->parse_code());
'),
'block_level' => true,
),
array(
@ -2292,6 +2318,9 @@ function parse_bbc($message, $smileys = true, $cache_id = '', $parse_tags = arra
if (isset($tag['validate']))
$tag['validate']($tag, $data, $disabled);
if(is_array($data[1]))
$data[1] = array_shift($data[1]);
$code = strtr($tag['content'], array('$1' => $data[0], '$2' => $data[1]));
$message = substr($message, 0, $pos) . "\n" . $code . "\n" . substr($message, $pos3 + 3 + strlen($tag['tag']));
$pos += strlen($code) - 1 + 2;

View File

@ -728,6 +728,8 @@ function Credits($in_admin = false)
$txt['some_mod_copyright'],
*/
'mods' => array(
'cb|GeSHi-mod &copy; 2011, <a href="http://codebirth.com">codebirth</a>',
),
);

4775
Sources/geshi.php Normal file

File diff suppressed because it is too large Load Diff

139
Sources/geshi/4cs.php Normal file
View File

@ -0,0 +1,139 @@
<?php
/*************************************************************************************
* 4cs.php
* ------
* Author: Jason Curl (jason.curl@continental-corporation.com)
* Copyright: (c) 2009 Jason Curl
* Release Version: 1.0.8.11
* Date Started: 2009/09/05
*
* 4CS language file for GeSHi.
*
* CHANGES
* -------
* 2009/09/05
* - First Release
*
* TODO (updated 2009/09/01)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'GADV 4CS',
'COMMENT_SINGLE' => array(1 => "//"),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'All', 'AllMatches', 'And', 'And_Filters', 'As', 'Asc', 'BasedOn',
'BestMatch', 'Block', 'Buffer', 'ByRef', 'ByVal', 'Call', 'Channel',
'Chr', 'Clear', 'Close', 'Confirm', 'Const', 'Continue', 'Cos',
'Critical', 'Declare', 'Default', 'DefaultChannel', 'DefaultDelayTime',
'DefaultReceiveMode', 'DefaultResponseTime', '#Define', 'DelayTime',
'Delete', 'Div', 'Else', '#Else', 'ElseIf', '#ElseIf', 'End', 'EndCritical',
'EndInlineC', 'EndFunction', 'EndIf', '#EndIf', 'EndInputList',
'EndLocalChannel', 'EndScenario', 'EndSub', 'EndWhile', 'Error',
'ErrorLevelOff', 'ErrorLevelOn', 'ErrorLevelSet', 'ErrorLevelSetRaw',
'Event', 'EventMode', 'EventOff', 'EventOn', 'EventSet', 'EventSetRaw',
'Execute', 'Exit', 'Exp', 'FileClose', 'FilterClear', 'FileEOF', 'FileOpen',
'FileRead', 'FileSize', 'FileWrite', 'FilterAdd', 'FilterMode',
'FilterOff', 'FilterOn', 'For', 'Format', 'Function', 'GoOnline', 'GoTo',
'Handle', 'Hide', 'If', '#If', '#IfDef', '#IfNDef', 'Ignore', '#Include',
'InlineC', 'Input', 'InputItem', 'InputList', 'Kill', 'LBound', 'LocalChannel',
'Local', 'Log', 'Log10', 'LogOff', 'LogOn', 'Loop', 'Message', 'Mod',
'MonitorChannel', 'MostFormat', 'MostMessage', 'Named', 'Never', 'Next',
'NoOrder', 'Not', 'Nothing', 'NoWait', 'Numeric', 'OnError', 'OnEvent',
'Or', 'Or_Filters', 'Order', 'Pass', 'Pow', 'Prototype', 'Quit', 'Raise',
'Random', 'Receive', 'ReceiveMode', 'ReceiveRaw', 'Redim', 'Remote', 'Repeat',
'Repeated', 'ResponseTime', 'Resume', 'ResumeCritical', 'RT_Common',
'RT_Dll_Call', 'RT_FILEIO', 'RT_General', 'RT_HardwareAccess',
'RT_MessageVariableAccess', 'RT_Scenario', 'RT_VariableAccess', 'Runtime',
'Scenario', 'ScenarioEnd', 'ScenarioStart', 'ScenarioStatus', 'ScenarioTerminate',
'Send', 'SendRaw', 'Set', 'SetError', 'Sin', 'Single', 'Show', 'Start',
'StartCritical', 'Starts', 'Static', 'Step', 'Stop', 'String', 'Sub',
'System_Error', 'TerminateAllChilds', 'Terminates', 'Then', 'Throw', 'TimeOut',
'To', 'TooLate', 'Trunc', 'UBound', 'Unexpected', 'Until', 'User_Error',
'View', 'Wait', 'Warning', 'While', 'XOr'
),
2 => array(
'alias', 'winapi', 'long', 'char', 'double', 'float', 'int', 'short', 'lib'
)
),
'SYMBOLS' => array(
'=', ':=', '<', '>', '<>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000C0; font-weight: bold;',
2 => 'color: #808080;'
),
'COMMENTS' => array(
1 => 'color: #008000;'
),
'BRACKETS' => array(
0 => 'color: #000080;'
),
'STRINGS' => array(
0 => 'color: #800080;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #66cc66;'
),
'SYMBOLS' => array(
0 => 'color: #000080;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

230
Sources/geshi/6502acme.php Normal file
View File

@ -0,0 +1,230 @@
<?php
/*************************************************************************************
* 6502acme.php
* -------
* Author: Warren Willmey
* Copyright: (c) 2010 Warren Willmey.
* Release Version: 1.0.8.11
* Date Started: 2010/05/26
*
* MOS 6502 (more specifically 6510) ACME Cross Assembler 0.93 by Marco Baye language file for GeSHi.
*
* CHANGES
* -------
* 2010/07/22
* - First Release
*
* TODO (updated 2010/07/22)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'MOS 6502 (6510) ACME Cross Assembler format',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/* 6502/6510 Opcodes. */
1 => array(
'adc', 'and', 'asl', 'bcc', 'bcs', 'beq', 'bit', 'bmi',
'bne', 'bpl', 'brk', 'bvc', 'bvs', 'clc', 'cld', 'cli',
'clv', 'cmp', 'cpx', 'cpy', 'dec', 'dex', 'dey', 'eor',
'inc', 'inx', 'iny', 'jmp', 'jsr', 'lda', 'ldx', 'ldy',
'lsr', 'nop', 'ora', 'pha', 'php', 'pla', 'plp', 'rol',
'ror', 'rti', 'rts', 'sbc', 'sec', 'sed', 'sei', 'sta',
'stx', 'sty', 'tax', 'tay', 'tsx', 'txa', 'txs', 'tya',
),
/* Index Registers, yes the 6502 has other registers by they are only
* accessable by specific opcodes. The 65816 also has access to the stack pointer S. */
2 => array(
'x', 'y', 's'
),
/* Directives or "pseudo opcodes" as defined by ACME 0.93 file AllPOs.txt. */
3 => array(
'!8', '!08', '!by', '!byte',
'!16', '!wo', '!word',
'!24', '!32',
'!fi', '!fill',
'!align',
'!ct', '!convtab',
'!tx', '!text',
'!pet',
'!raw',
'!scrxor',
'!to',
'!source',
'!bin', '!binary',
'!zn', '!zone',
'!sl',
'!svl',
'!sal',
'!if', '!ifdef',
'!for',
'!set',
'!do', 'while', 'until',
'!eof', '!endoffile',
'!warn', '!error', '!serious',
'!macro',
// , '*=' // Not a valid keyword (uses both * and = signs) moved to symbols instead.
'!initmem',
'!pseudopc',
'!cpu',
'!al', '!as', '!rl', '!rs',
),
/* 6502/6510 undocumented opcodes (often referred to as illegal instructions).
* These are present in the 6502/6510 but NOT in the newer CMOS revisions of the 65C02 or 65816.
* As they are undocumented instructions there are no "official" names for them, there are also
* several more that mainly perform various forms of crash and are not supported by ACME 0.93.
*/
4 => array(
'anc', 'arr', 'asr', 'dcp', 'dop', 'isc', 'jam', 'lax',
'rla', 'rra', 'sax', 'sbx', 'slo', 'sre', 'top',
),
/* 65c02 instructions, MOS added a few (much needed) instructions in the CMOS version of the 6502, but stupidly removed the undocumented/illegal opcodes.
* ACME 0.93 does not support the rmb0-7 and smb0-7 instructions (they are currently rem'ed out). */
5 => array(
'bra', 'phx', 'phy', 'plx', 'ply', 'stz', 'trb', 'tsb'
),
/* 65816 instructions. */
6 => array(
'brl', 'cop', 'jml', 'jsl', 'mvn', 'mvp', 'pea', 'pei',
'per', 'phb', 'phd', 'phk', 'plb', 'pld', 'rep', 'rtl',
'sep', 'tcd', 'tcs', 'tdc', 'tsc', 'txy', 'tyx', 'wdm',
'xba', 'xce',
),
/* Deprecated directives or "pseudo opcodes" as defined by ACME 0.93 file AllPOs.txt. */
7 => array(
'!cbm',
'!sz', '!subzone',
'!realpc',
),
/* Math functions, some are aliases for the symbols. */
8 => array(
'not', 'div', 'mod', 'xor', 'or', 'sin', 'cos', 'tan',
'arcsin', 'arccos', 'arctan', 'int', 'float',
),
),
'SYMBOLS' => array(
// '[', ']', '(', ')', '{', '}', // These are already defined by GeSHi as BRACKETS.
'*=', '#', '!', '^', '-', '*', '/',
'%', '+', '-', '<<', '>>', '>>>',
'<', '>', '^', '<=', '<', '>=', '>', '!=',
'=', '&', '|', '<>',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
7 => false,
8 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00f; font-weight:bold;',
2 => 'color: #00f; font-weight:bold;',
3 => 'color: #080; font-weight:bold;',
4 => 'color: #f00; font-weight:bold;',
5 => 'color: #80f; font-weight:bold;',
6 => 'color: #f08; font-weight:bold;',
7 => 'color: #a04; font-weight:bold; font-style: italic;',
8 => 'color: #000;',
),
'COMMENTS' => array(
1 => 'color: #999; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #009; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000;'
),
'STRINGS' => array(
0 => 'color: #080;'
),
'NUMBERS' => array(
GESHI_NUMBER_INT_BASIC => 'color: #f00;',
GESHI_NUMBER_HEX_PREFIX_DOLLAR => 'color: #f00;',
GESHI_NUMBER_HEX_PREFIX => 'color: #f00;',
GESHI_NUMBER_BIN_PREFIX_PERCENT => 'color: #f00;',
GESHI_NUMBER_FLT_NONSCI => 'color: #f00;',
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #080;'
),
'REGEXPS' => array(
0 => 'color: #f00;'
, 1 => 'color: #933;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => '',
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC |
GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_HEX_PREFIX_DOLLAR |
GESHI_NUMBER_HEX_PREFIX |
GESHI_NUMBER_BIN_PREFIX_PERCENT,
// AMCE Octal format not support and gets picked up as Decimal unfortunately.
'REGEXPS' => array(
//ACME .# Binary number format. e.g. %..##..##..##
0 => '\%[\.\#]{1,64}',
//ACME Local Labels
1 => '\.[_a-zA-Z][_a-zA-Z0-9]*',
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 8,
'PARSER_CONTROL' => array(
'NUMBERS' => array(
'PRECHECK_RX' => '/[\da-fA-F\.\$\%]/'
)
)
);
?>

View File

@ -0,0 +1,241 @@
<?php
/*************************************************************************************
* 6502kickass.php
* -------
* Author: Warren Willmey
* Copyright: (c) 2010 Warren Willmey.
* Release Version: 1.0.8.11
* Date Started: 2010/06/07
*
* MOS 6502 (6510) Kick Assembler 3.13 language file for GeSHi.
*
* CHANGES
* -------
* 2010/07/22
* - First Release
*
* TODO (updated 2010/07/22)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'MOS 6502 (6510) Kick Assembler format',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/* 6502/6510 Opcodes including undocumented opcodes as Kick Assembler 3.13 does not make a distinction - they are ALL valid. */
1 => array(
'adc', 'ahx', 'alr', 'anc', 'anc2', 'and', 'arr', 'asl',
'axs', 'bcc', 'bcs', 'beq', 'bit', 'bmi', 'bne', 'bpl',
'brk', 'bvc', 'bvs', 'clc', 'cld', 'cli', 'clv', 'cmp',
'cpx', 'cpy', 'dcp', 'dec', 'dex', 'dey', 'eor', 'inc',
'inx', 'iny', 'isc', 'jmp', 'jsr', 'las', 'lax', 'lda',
'ldx', 'ldy', 'lsr', 'nop', 'ora', 'pha', 'php', 'pla',
'plp', 'rla', 'rol', 'ror', 'rra', 'rti', 'rts', 'sax',
'sbc', 'sbc2', 'sec', 'sed', 'sei', 'shx', 'shy', 'slo',
'sre', 'sta', 'stx', 'sty', 'tas', 'tax', 'tay', 'tsx',
'txa', 'txs', 'tya', 'xaa',
),
/* DTV additional Opcodes. */
2 => array(
'bra', 'sac', 'sir'
),
/* Index Registers, yes the 6502 has other registers by they are only
* accessable by specific opcodes. */
3 => array(
'x', 'y'
),
/* Directives. */
4 => array(
'.pc', '.pseudopc', 'virtual', '.align', '.byte', '.word', '.text', '.fill',
'.import source', '.import binary', '.import c64', '.import text', '.import', '.print', '.printnow',
'.error', '.var', '.eval', '.const', '.eval const', '.enum', '.label', '.define', '.struct',
'if', '.for', '.macro', '.function', '.return', '.pseudocommand', '.namespace', '.filenamespace',
'.assert', '.asserterror',
),
/* Kick Assembler 3.13 Functions/Operators. */
5 => array(
'size', 'charAt', 'substring', 'asNumber', 'asBoolean', 'toIntString', 'toBinaryString', 'toOctalString',
'toHexString', 'lock', // String functions/operators.
'get', 'set', 'add', 'remove', 'shuffle', // List functions.
'put', 'keys', // Hashtable functions.
'getType', 'getValue', 'CmdArgument', // Pseudo Commands functions.
'asmCommandSize', // Opcode Constants functions.
'LoadBinary', 'getSize',
'LoadSid', 'getData',
'LoadPicture', 'width', 'height', 'getPixel', 'getSinglecolorByte', 'getMulticolorByte',
'createFile', 'writeln',
'cmdLineVars',
'getX', 'getY', 'getZ', // Vector functions.
'RotationMatrix', 'ScaleMatrix', 'MoveMatrix', 'PerspectiveMatrix', // Matrix functions.
),
/* Kick Assembler 3.13 Math Functions. */
6 => array(
'abs', 'acos', 'asin', 'atan', 'atan2', 'cbrt', 'ceil', 'cos', 'cosh',
'exp', 'expm1', 'floor', 'hypot', 'IEEEremainder', 'log', 'log10',
'log1p', 'max', 'min', 'pow', 'mod', 'random', 'round', 'signum',
'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'toDegrees', 'toRadians',
),
/* Kick Assembler 3.13 Objects/Data Types. */
7 => array(
'List', // List() Object.
'Hashtable', // Hashtable() Object.
'Vector', // Vector() Object.
'Matrix', // Matrix() Object.
),
/* Kick Assembler 3.13 Constants. */
8 => array(
'PI', 'E', // Math Constants.
'AT_ABSOLUTE' , 'AT_ABSOLUTEX' , 'AT_ABSOLUTEY' , 'AT_IMMEDIATE', // Pseudo Commands Constants.
'AT_INDIRECT' , 'AT_IZEROPAGEX' , 'AT_IZEROPAGEY' , 'AT_NONE',
'BLACK', 'WHITE', 'RED', 'CYAN', 'PURPLE', 'GREEN', 'BLUE', // Colour Constants.
'YELLOW', 'ORANGE', 'BROWN', 'LIGHT_RED', 'DARK_GRAY', 'GRAY',
'LIGHT_GREEN', 'LIGHT_BLUE', 'LIGHT_GRAY',
'C64FILE', // Template Tag names.
'BF_C64FILE', 'BF_BITMAP_SINGLECOLOR', 'BF_KOALA' , 'BF_FLI', // Binary format constant
),
),
'SYMBOLS' => array(
// '[', ']', '(', ')', '{', '}', // These are already defined by GeSHi as BRACKETS.
'-', '+', '-', '*', '/', '>', '<', '<<', '>>', '&', '|', '^', '=', '==',
'!=', '>=', '<=', '!', '&&', '||', '#',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00f; font-weight:bold;',
2 => 'color: #00f; font-weight:bold;',
3 => 'color: #00f; font-weight:bold;',
4 => 'color: #080; font-weight:bold;',
5 => 'color: #80f; font-weight:bold;',
6 => 'color: #f08; font-weight:bold;',
7 => 'color: #a04; font-weight:bold; font-style: italic;',
8 => 'color: #f08; font-weight:bold;',
),
'COMMENTS' => array(
1 => 'color: #999; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #009; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000;'
),
'STRINGS' => array(
0 => 'color: #080;'
),
'NUMBERS' => array(
GESHI_NUMBER_INT_BASIC => 'color: #f00;',
GESHI_NUMBER_HEX_PREFIX_DOLLAR => 'color: #f00;',
GESHI_NUMBER_BIN_PREFIX_PERCENT => 'color: #f00;',
GESHI_NUMBER_FLT_NONSCI => 'color: #f00;',
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #080;'
),
'REGEXPS' => array(
0 => 'color: #933;',
1 => 'color: #933;',
2 => 'color: #933;',
3 => 'color: #00f; font-weight:bold;',
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => '',
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC |
GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_HEX_PREFIX_DOLLAR |
GESHI_NUMBER_BIN_PREFIX_PERCENT,
// AMCE Octal format not support and gets picked up as Decimal unfortunately.
'REGEXPS' => array(
//Labels end with a collon.
0 => '[!]{0,1}[_a-zA-Z][_a-zA-Z0-9]*\:',
//Multi Labels (local labels) references start with ! and end with + or - for forward/backward reference.
1 => '![_a-zA-Z][_a-zA-Z0-9]*[+-]',
//Macros start with a colon :Macro.
2 => ':[_a-zA-Z][_a-zA-Z0-9]*',
// Opcode Constants, such as LDA_IMM, STA_IZPY are basically all 6502 opcodes
// in UPPER case followed by _underscore_ and the ADDRESS MODE.
// As you might imagine that is rather a lot ( 78 supported Opcodes * 12 Addressing modes = 936 variations)
// So I thought it better and easier to maintain as a regular expression.
// NOTE: The order of the Address Modes must be maintained or it wont work properly (eg. place ZP first and find out!)
3 => '[A-Z]{3}[2]?_(?:IMM|IND|IZPX|IZPY|ZPX|ZPY|ABSX|ABSY|REL|ABS|ZP)',
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 8,
'PARSER_CONTROL' => array(
'NUMBERS' => array(
'PRECHECK_RX' => '/[\da-fA-F\.\$\%]/'
),
'KEYWORDS' => array(
5 => array (
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\;>|^&'\"])"
),
6 => array (
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\;>|^&'\"])"
),
8 => array (
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\;>|^&'\"])"
)
)
),
);
?>

189
Sources/geshi/6502tasm.php Normal file
View File

@ -0,0 +1,189 @@
<?php
/*************************************************************************************
* 6502tasm.php
* -------
* Author: Warren Willmey
* Copyright: (c) 2010 Warren Willmey.
* Release Version: 1.0.8.11
* Date Started: 2010/06/02
*
* MOS 6502 (6510) TASM/64TASS (64TASS being the super set of TASM) language file for GeSHi.
*
* CHANGES
* -------
* 2010/07/22
* - First Release
*
* TODO (updated 2010/07/22)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'MOS 6502 (6510) TASM/64TASS 1.46 Assembler format',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/* 6502/6510 Opcodes. */
1 => array(
'adc', 'and', 'asl', 'bcc', 'bcs', 'beq', 'bit', 'bmi',
'bne', 'bpl', 'brk', 'bvc', 'bvs', 'clc', 'cld', 'cli',
'clv', 'cmp', 'cpx', 'cpy', 'dec', 'dex', 'dey', 'eor',
'inc', 'inx', 'iny', 'jmp', 'jsr', 'lda', 'ldx', 'ldy',
'lsr', 'nop', 'ora', 'pha', 'php', 'pla', 'plp', 'rol',
'ror', 'rti', 'rts', 'sbc', 'sec', 'sed', 'sei', 'sta',
'stx', 'sty', 'tax', 'tay', 'tsx', 'txa', 'txs', 'tya',
),
/* Index Registers, yes the 6502 has other registers by they are only
* accessable by specific opcodes. The 65816 also has access to the stack pointer S. */
2 => array(
'x', 'y', 's'
),
/* Directives. */
3 => array(
'.al', '.align', '.as', '.assert', '.binary', '.byte', '.cerror', '.char',
'.comment', '.cpu', '.cwarn', '.databank', '.dpage', '.else', '.elsif',
'.enc', '.endc', '.endif', '.endm', '.endp', '.error', '.fi', '.fill',
'.for', '.here', '.if', '.ifeq', '.ifmi', '.ifne', '.ifpl',
'.include', '.int', '.logical', '.long', '.macro', '.next', '.null', '.offs',
'.page', '.pend', '.proc', '.rept', '.rta', '.shift', '.text', '.warn', '.word',
'.xl', '.xs',
// , '*=' // Not a valid keyword (uses both * and = signs) moved to symbols instead.
),
/* 6502/6510 undocumented opcodes (often referred to as illegal instructions).
* These are present in the 6502/6510 but NOT in the newer CMOS revisions of the 65C02 or 65816.
* As they are undocumented instructions there are no "official" names for them, these are the names
* used by 64TASS V1.46.
*/
4 => array(
'ahx', 'alr', 'anc', 'ane', 'arr', 'asr', 'axs', 'dcm',
'dcp', 'ins', 'isb', 'isc', 'jam', 'lae', 'las', 'lax',
'lds', 'lxa', 'rla', 'rra', 'sax', 'sbx', 'sha', 'shs',
'shx', 'shy', 'slo', 'sre', 'tas', 'xaa',
),
/* 65c02 instructions, MOS added a few (much needed) instructions in the
* CMOS version of the 6502, but stupidly removed the undocumented/illegal opcodes. */
5 => array(
'bra', 'dea', 'gra', 'ina', 'phx', 'phy', 'plx', 'ply',
'stz', 'trb', 'tsb',
),
/* 65816 instructions. */
6 => array(
'brl', 'cop', 'jml', 'jsl', 'mvn', 'mvp', 'pea', 'pei',
'per', 'phb', 'phd', 'phk', 'plb', 'pld', 'rep', 'rtl',
'sep', 'stp', 'swa', 'tad', 'tcd', 'tcs', 'tda',
'tdc', 'tsa', 'tsc', 'txy', 'tyx', 'wai', 'xba', 'xce',
),
/* Deprecated directives (or yet to be implemented). */
7 => array(
'.global', '.check'
),
),
'SYMBOLS' => array(
// '[', ']', '(', ')', '{', '}', // These are already defined by GeSHi as BRACKETS.
'*=', '#', '<', '>', '`', '=', '<', '>',
'!=', '>=', '<=', '+', '-', '*', '/', '//', '|',
'^', '&', '<<', '>>', '-', '~', '!',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
7 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00f; font-weight:bold;',
2 => 'color: #00f; font-weight:bold;',
3 => 'color: #080; font-weight:bold;',
4 => 'color: #f00; font-weight:bold;',
5 => 'color: #80f; font-weight:bold;',
6 => 'color: #f08; font-weight:bold;',
7 => 'color: #a04; font-weight:bold; font-style: italic;',
),
'COMMENTS' => array(
1 => 'color: #999; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #009; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000;'
),
'STRINGS' => array(
0 => 'color: #080;'
),
'NUMBERS' => array(
GESHI_NUMBER_INT_BASIC => 'color: #f00;',
GESHI_NUMBER_HEX_PREFIX_DOLLAR => 'color: #f00;',
GESHI_NUMBER_BIN_PREFIX_PERCENT => 'color: #f00;',
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #080;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC |
GESHI_NUMBER_HEX_PREFIX_DOLLAR |
GESHI_NUMBER_BIN_PREFIX_PERCENT,
// AMCE Octal format not support and gets picked up as Decimal unfortunately.
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 8,
'PARSER_CONTROL' => array(
'NUMBERS' => array(
'PRECHECK_RX' => '/[\da-fA-F\.\$\%]/'
)
)
);
?>

View File

@ -0,0 +1,168 @@
<?php
/*************************************************************************************
* 68000devpac.php
* -------
* Author: Warren Willmey
* Copyright: (c) 2010 Warren Willmey.
* Release Version: 1.0.8.11
* Date Started: 2010/06/09
*
* Motorola 68000 - HiSoft Devpac ST 2 Assembler language file for GeSHi.
*
* CHANGES
* -------
* 2010/07/22
* - First Release
*
* TODO (updated 2010/07/22)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Motorola 68000 - HiSoft Devpac ST 2 Assembler format',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/* Directives. */
1 => array(
'end', 'include', 'incbin', 'opt', 'even', 'cnop', 'dc.b', 'dc.w',
'dc.l', 'ds.b', 'ds.w', 'ds.l', 'dcb.b', 'dcb.w', 'dcb.l',
'fail', 'output', '__g2', 'rept', 'endr', 'list', 'nolist', 'plen',
'llen', 'ttl', 'subttl', 'spc', 'page', 'listchar', 'format',
'equ', 'equr', 'set', 'reg', 'rs.b', 'rs.w', 'rs.l', 'rsreset',
'rsset', '__rs', 'ifeq', 'ifne', 'ifgt', 'ifge', 'iflt', 'ifle', 'endc',
'ifd', 'ifnd', 'ifc', 'ifnc', 'elseif', 'iif', 'macro', 'endm', 'mexit',
'narg', '\@', 'section', 'text', 'data', 'bss', 'xdef', 'xref', 'org',
'offset', '__lk', 'comment',
),
/* 68000 Opcodes. */
2 => array(
'abcd', 'add', 'adda', 'addi', 'addq', 'addx', 'and', 'andi',
'asl', 'asr', 'bcc', 'bchg', 'bclr', 'bcs', 'beq', 'bge',
'bgt', 'bhi', 'ble', 'bls', 'blt', 'bmi', 'bne', 'bpl',
'bra', 'bset', 'bsr', 'btst', 'bvc', 'bvs', 'chk', 'clr',
'cmp', 'cmpa', 'cmpi', 'cmpm', 'dbcc', 'dbcs', 'dbeq', 'dbf',
'dbge', 'dbgt', 'dbhi', 'dble', 'dbls', 'dblt', 'dbmi', 'dbne',
'dbpl', 'dbra', 'dbt', 'dbvc', 'dbvs', 'divs', 'divu', 'eor',
'eori', 'exg', 'ext','illegal','jmp', 'jsr', 'lea', 'link',
'lsl', 'lsr', 'move','movea','movem','movep','moveq', 'muls',
'mulu', 'nbcd', 'neg', 'negx', 'nop', 'not', 'or', 'ori',
'pea', 'reset', 'rol', 'ror', 'roxl', 'roxr', 'rte', 'rtr',
'rts', 'sbcd', 'scc', 'scs', 'seq', 'sf', 'sge', 'sgt',
'shi', 'sle', 'sls', 'slt', 'smi', 'sne', 'spl', 'st',
'stop', 'sub', 'suba', 'subi', 'subq', 'subx', 'svc', 'svs',
'swap', 'tas', 'trap','trapv', 'tst', 'unlk',
),
/* oprand sizes. */
3 => array(
'b', 'w', 'l' , 's'
),
/* 68000 Registers. */
4 => array(
'd0', 'd1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7',
'a0', 'a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'a7', 'sp', 'usp', 'ssp',
'pc', 'ccr', 'sr',
),
),
'SYMBOLS' => array(
// '[', ']', '(', ')', '{', '}', // These are already defined by GeSHi as BRACKETS.
'+', '-', '~', '<<', '>>', '&',
'!', '^', '*', '/', '=', '<', '>',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #f08; font-weight:bold;',
2 => 'color: #00f; font-weight:bold;',
3 => 'color: #00f; font-weight:bold;',
4 => 'color: #080; font-weight:bold;',
),
'COMMENTS' => array(
1 => 'color: #999; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #009; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000;'
),
'STRINGS' => array(
0 => 'color: #080;'
),
'NUMBERS' => array(
GESHI_NUMBER_INT_BASIC => 'color: #f00;',
GESHI_NUMBER_HEX_PREFIX_DOLLAR => 'color: #f00;',
GESHI_NUMBER_BIN_PREFIX_PERCENT => 'color: #f00;',
GESHI_NUMBER_OCT_PREFIX_AT => 'color: #f00;',
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #080;'
),
'REGEXPS' => array(
0 => 'color: #933;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC |
GESHI_NUMBER_HEX_PREFIX_DOLLAR |
GESHI_NUMBER_OCT_PREFIX_AT |
GESHI_NUMBER_BIN_PREFIX_PERCENT,
'REGEXPS' => array(
//Labels may end in a colon.
0 => '(?<=\A\x20|\r|\n|^)[\._a-zA-Z][\._a-zA-Z0-9]*[\:]?[\s]'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 8,
'PARSER_CONTROL' => array(
'NUMBERS' => array(
'PRECHECK_RX' => '/[\da-fA-F\.\$\%\@]/'
)
)
);
?>

1409
Sources/geshi/abap.php Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,197 @@
<?php
/*************************************************************************************
* actionscript.php
* ----------------
* Author: Steffen Krause (Steffen.krause@muse.de)
* Copyright: (c) 2004 Steffen Krause, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2004/06/20
*
* Actionscript language file for GeSHi.
*
* CHANGES
* -------
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ActionScript',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'#include', 'for', 'foreach', 'each', 'if', 'elseif', 'else', 'while', 'do', 'dowhile',
'endwhile', 'endif', 'switch', 'case', 'endswitch', 'return', 'break', 'continue', 'in'
),
2 => array(
'null', 'false', 'true', 'var',
'default', 'function', 'class',
'new', '_global'
),
3 => array(
'#endinitclip', '#initclip', '__proto__', '_accProps', '_alpha', '_currentframe',
'_droptarget', '_focusrect', '_framesloaded', '_height', '_highquality', '_lockroot',
'_name', '_parent', '_quality', '_root', '_rotation', '_soundbuftime', '_target', '_totalframes',
'_url', '_visible', '_width', '_x', '_xmouse', '_xscale', '_y', '_ymouse', '_yscale', 'abs',
'Accessibility', 'acos', 'activityLevel', 'add', 'addListener', 'addPage', 'addProperty',
'addRequestHeader', 'align', 'allowDomain', 'allowInsecureDomain', 'and', 'appendChild',
'apply', 'Arguments', 'Array', 'asfunction', 'asin', 'atan', 'atan2', 'attachAudio', 'attachMovie',
'attachSound', 'attachVideo', 'attributes', 'autosize', 'avHardwareDisable', 'background',
'backgroundColor', 'BACKSPACE', 'bandwidth', 'beginFill', 'beginGradientFill', 'blockIndent',
'bold', 'Boolean', 'border', 'borderColor', 'bottomScroll', 'bufferLength', 'bufferTime',
'builtInItems', 'bullet', 'Button', 'bytesLoaded', 'bytesTotal', 'call', 'callee', 'caller',
'Camera', 'capabilities', 'CAPSLOCK', 'caption', 'catch', 'ceil', 'charAt', 'charCodeAt',
'childNodes', 'chr', 'clear', 'clearInterval', 'cloneNode', 'close', 'Color', 'concat',
'connect', 'condenseWhite', 'constructor', 'contentType', 'ContextMenu', 'ContextMenuItem',
'CONTROL', 'copy', 'cos', 'createElement', 'createEmptyMovieClip', 'createTextField',
'createTextNode', 'currentFps', 'curveTo', 'CustomActions', 'customItems', 'data', 'Date',
'deblocking', 'delete', 'DELETEKEY', 'docTypeDecl', 'domain', 'DOWN',
'duplicateMovieClip', 'duration', 'dynamic', 'E', 'embedFonts', 'enabled',
'END', 'endFill', 'ENTER', 'eq', 'Error', 'ESCAPE(Konstante)', 'escape(Funktion)', 'eval',
'exactSettings', 'exp', 'extends', 'finally', 'findText', 'firstChild', 'floor',
'flush', 'focusEnabled', 'font', 'fps', 'fromCharCode', 'fscommand',
'gain', 'ge', 'get', 'getAscii', 'getBeginIndex', 'getBounds', 'getBytesLoaded', 'getBytesTotal',
'getCaretIndex', 'getCode', 'getCount', 'getDate', 'getDay', 'getDepth', 'getEndIndex', 'getFocus',
'getFontList', 'getFullYear', 'getHours', 'getInstanceAtDepth', 'getLocal', 'getMilliseconds',
'getMinutes', 'getMonth', 'getNewTextFormat', 'getNextHighestDepth', 'getPan', 'getProgress',
'getProperty', 'getRGB', 'getSeconds', 'getSelected', 'getSelectedText', 'getSize', 'getStyle',
'getStyleNames', 'getSWFVersion', 'getText', 'getTextExtent', 'getTextFormat', 'getTextSnapshot',
'getTime', 'getTimer', 'getTimezoneOffset', 'getTransform', 'getURL', 'getUTCDate', 'getUTCDay',
'getUTCFullYear', 'getUTCHours', 'getUTCMilliseconds', 'getUTCMinutes', 'getUTCMonth', 'getUTCSeconds',
'getVersion', 'getVolume', 'getYear', 'globalToLocal', 'goto', 'gotoAndPlay', 'gotoAndStop',
'hasAccessibility', 'hasAudio', 'hasAudioEncoder', 'hasChildNodes', 'hasEmbeddedVideo', 'hasMP3',
'hasPrinting', 'hasScreenBroadcast', 'hasScreenPlayback', 'hasStreamingAudio', 'hasStreamingVideo',
'hasVideoEncoder', 'height', 'hide', 'hideBuiltInItems', 'hitArea', 'hitTest', 'hitTestTextNearPos',
'HOME', 'hscroll', 'html', 'htmlText', 'ID3', 'ifFrameLoaded', 'ignoreWhite', 'implements',
'import', 'indent', 'index', 'indexOf', 'Infinity', '-Infinity', 'INSERT', 'insertBefore', 'install',
'instanceof', 'int', 'interface', 'isActive', 'isDebugger', 'isDown', 'isFinite', 'isNaN', 'isToggled',
'italic', 'join', 'Key', 'language', 'lastChild', 'lastIndexOf', 'le', 'leading', 'LEFT', 'leftMargin',
'length', 'level', 'lineStyle', 'lineTo', 'list', 'LN10', 'LN2', 'load', 'loadClip', 'loaded', 'loadMovie',
'loadMovieNum', 'loadSound', 'loadVariables', 'loadVariablesNum', 'LoadVars', 'LocalConnection',
'localFileReadDisable', 'localToGlobal', 'log', 'LOG10E', 'LOG2E', 'manufacturer', 'Math', 'max',
'MAX_VALUE', 'maxChars', 'maxhscroll', 'maxscroll', 'mbchr', 'mblength', 'mbord', 'mbsubstring', 'menu',
'message', 'Microphone', 'min', 'MIN_VALUE', 'MMExecute', 'motionLevel', 'motionTimeOut', 'Mouse',
'mouseWheelEnabled', 'moveTo', 'Movieclip', 'MovieClipLoader', 'multiline', 'muted', 'name', 'names', 'NaN',
'ne', 'NEGATIVE_INFINITY', 'NetConnection', 'NetStream', 'newline', 'nextFrame',
'nextScene', 'nextSibling', 'nodeName', 'nodeType', 'nodeValue', 'not', 'Number', 'Object',
'on', 'onActivity', 'onChanged', 'onClipEvent', 'onClose', 'onConnect', 'onData', 'onDragOut',
'onDragOver', 'onEnterFrame', 'onID3', 'onKeyDown', 'onKeyUp', 'onKillFocus', 'onLoad', 'onLoadComplete',
'onLoadError', 'onLoadInit', 'onLoadProgress', 'onLoadStart', 'onMouseDown', 'onMouseMove', 'onMouseUp',
'onMouseWheel', 'onPress', 'onRelease', 'onReleaseOutside', 'onResize', 'onRollOut', 'onRollOver',
'onScroller', 'onSelect', 'onSetFocus', 'onSoundComplete', 'onStatus', 'onUnload', 'onUpdate', 'onXML',
'or(logischesOR)', 'ord', 'os', 'parentNode', 'parseCSS', 'parseFloat', 'parseInt', 'parseXML', 'password',
'pause', 'PGDN', 'PGUP', 'PI', 'pixelAspectRatio', 'play', 'playerType', 'pop', 'position',
'POSITIVE_INFINITY', 'pow', 'prevFrame', 'previousSibling', 'prevScene', 'print', 'printAsBitmap',
'printAsBitmapNum', 'PrintJob', 'printNum', 'private', 'prototype', 'public', 'push', 'quality',
'random', 'rate', 'registerClass', 'removeListener', 'removeMovieClip', 'removeNode', 'removeTextField',
'replaceSel', 'replaceText', 'resolutionX', 'resolutionY', 'restrict', 'reverse', 'RIGHT',
'rightMargin', 'round', 'scaleMode', 'screenColor', 'screenDPI', 'screenResolutionX', 'screenResolutionY',
'scroll', 'seek', 'selectable', 'Selection', 'send', 'sendAndLoad', 'separatorBefore', 'serverString',
'set', 'setvariable', 'setBufferTime', 'setClipboard', 'setDate', 'setFocus', 'setFullYear', 'setGain',
'setHours', 'setInterval', 'setMask', 'setMilliseconds', 'setMinutes', 'setMode', 'setMonth',
'setMotionLevel', 'setNewTextFormat', 'setPan', 'setProperty', 'setQuality', 'setRate', 'setRGB',
'setSeconds', 'setSelectColor', 'setSelected', 'setSelection', 'setSilenceLevel', 'setStyle',
'setTextFormat', 'setTime', 'setTransform', 'setUseEchoSuppression', 'setUTCDate', 'setUTCFullYear',
'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds', 'setVolume',
'setYear', 'SharedObject', 'SHIFT(Konstante)', 'shift(Methode)', 'show', 'showMenu', 'showSettings',
'silenceLevel', 'silenceTimeout', 'sin', 'size', 'slice', 'smoothing', 'sort', 'sortOn', 'Sound', 'SPACE',
'splice', 'split', 'sqrt', 'SQRT1_2', 'SQRT2', 'Stage', 'start', 'startDrag', 'static', 'status', 'stop',
'stopAllSounds', 'stopDrag', 'String', 'StyleSheet(Klasse)', 'styleSheet(Eigenschaft)', 'substr',
'substring', 'super', 'swapDepths', 'System', 'TAB', 'tabChildren', 'tabEnabled', 'tabIndex',
'tabStops', 'tan', 'target', 'targetPath', 'tellTarget', 'text', 'textColor', 'TextField', 'TextFormat',
'textHeight', 'TextSnapshot', 'textWidth', 'this', 'throw', 'time', 'toggleHighQuality', 'toLowerCase',
'toString', 'toUpperCase', 'trace', 'trackAsMenu', 'try', 'type', 'typeof', 'undefined',
'underline', 'unescape', 'uninstall', 'unloadClip', 'unloadMovie', 'unLoadMovieNum', 'unshift', 'unwatch',
'UP', 'updateAfterEvent', 'updateProperties', 'url', 'useCodePage', 'useEchoSuppression', 'useHandCursor',
'UTC', 'valueOf', 'variable', 'version', 'Video', 'visible', 'void', 'watch', 'width',
'with', 'wordwrap', 'XML', 'xmlDecl', 'XMLNode', 'XMLSocket'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #0066CC;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array()
);
?>

View File

@ -0,0 +1,473 @@
<?php
/*************************************************************************************
* actionscript3.php
* ----------------
* Author: Jordi Boggiano (j.boggiano@seld.be)
* Copyright: (c) 2007 Jordi Boggiano (http://www.seld.be/), Benny Baumann (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2007/11/26
*
* ActionScript3 language file for GeSHi.
*
* All keywords scraped from the Flex 2.0.1 Documentation
*
* The default style is based on FlexBuilder2 coloring, with the addition of class, package, method and
* constant names that are highlighted to help identifying problem when used on public pastebins.
*
* For styling, keywords data from 0 to 1 (accessible through .kw1, etc.) are described here :
*
* 1 : operators
* 2 : 'var' keyword
* 3 : 'function' keyword
* 4 : 'class' and 'package' keywords
* 5 : all flash.* class names plus Top Level classes, mx are excluded
* 6 : all flash.* package names, mx are excluded
* 7 : valid flash method names and properties (there is no type checks sadly, for example String().x will be highlighted as 'x' is valid, but obviously strings don't have a x property)
* 8 : valid flash constant names (again, no type check)
*
*
* CHANGES
* -------
* 2007/12/06 (1.0.7.22)
* - Added the 'this' keyword (oops)
*
* TODO (updated 2007/11/30)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ActionScript 3',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
//Regular expressions
2 => "/(?<=[\\s^])(s|tr|y)\\/(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])+(?<!\s)\\/(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])*(?<!\s)\\/[msixpogcde]*(?=[\\s$\\.\\;])|(?<=[\\s^(=])(m|q[qrwx]?)?\\/(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])+(?<!\s)\\/[msixpogc]*(?=[\\s$\\.\\,\\;\\)])/iU",
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'with', 'while', 'void', 'undefined', 'typeof', 'try', 'true',
'throw', 'this', 'switch', 'super', 'set', 'return', 'public', 'protected',
'private', 'null', 'new', 'is', 'internal', 'instanceof', 'in',
'import', 'if', 'get', 'for', 'false', 'else', 'each', 'do',
'delete', 'default', 'continue', 'catch', 'case', 'break', 'as',
'extends', 'override'
),
2 => array(
'var'
),
3 => array(
'function'
),
4 => array(
'class', 'package'
),
6 => array(
'flash.xml', 'flash.utils', 'flash.ui', 'flash.text',
'flash.system', 'flash.profiler', 'flash.printing', 'flash.net',
'flash.media', 'flash.geom', 'flash.filters', 'flash.external',
'flash.events', 'flash.errors', 'flash.display',
'flash.accessibility'
),
7 => array(
'zoom', 'year', 'y', 'xmlDecl', 'x', 'writeUnsignedInt',
'writeUTFBytes', 'writeUTF', 'writeShort', 'writeObject',
'writeMultiByte', 'writeInt', 'writeFloat', 'writeExternal',
'writeDynamicProperty', 'writeDynamicProperties', 'writeDouble',
'writeBytes', 'writeByte', 'writeBoolean', 'wordWrap',
'willTrigger', 'width', 'volume', 'visible', 'videoWidth',
'videoHeight', 'version', 'valueOf', 'value', 'usingTLS',
'useRichTextClipboard', 'useHandCursor', 'useEchoSuppression',
'useCodePage', 'url', 'uri', 'uploadCompleteData', 'upload',
'updateProperties', 'updateAfterEvent', 'upState', 'unshift',
'unlock', 'unload', 'union', 'unescapeMultiByte', 'unescape',
'underline', 'uncompress', 'type', 'ty', 'tx', 'transparent',
'translate', 'transformPoint', 'transform', 'trackAsMenu', 'track',
'trace', 'totalMemory', 'totalFrames', 'topLeft', 'top',
'togglePause', 'toXMLString', 'toUpperCase', 'toUTCString',
'toTimeString', 'toString', 'toPrecision', 'toLowerCase',
'toLocaleUpperCase', 'toLocaleTimeString', 'toLocaleString',
'toLocaleLowerCase', 'toLocaleDateString', 'toFixed',
'toExponential', 'toDateString', 'timezoneOffset', 'timerComplete',
'timer', 'time', 'threshold', 'thickness', 'textWidth',
'textSnapshot', 'textInput', 'textHeight', 'textColor', 'text',
'test', 'target', 'tan', 'tabStops', 'tabIndexChange', 'tabIndex',
'tabEnabledChange', 'tabEnabled', 'tabChildrenChange',
'tabChildren', 'sync', 'swfVersion', 'swapChildrenAt',
'swapChildren', 'subtract', 'substring', 'substr', 'styleSheet',
'styleNames', 'strength', 'stopPropagation',
'stopImmediatePropagation', 'stopDrag', 'stopAll', 'stop', 'status',
'startDrag', 'start', 'stageY', 'stageX', 'stageWidth',
'stageHeight', 'stageFocusRect', 'stage', 'sqrt', 'split', 'splice',
'source', 'soundTransform', 'soundComplete', 'sortOn', 'sort',
'songName', 'some', 'socketData', 'smoothing', 'slice', 'size',
'sin', 'silent', 'silenceTimeout', 'silenceLevel', 'showSettings',
'showRedrawRegions', 'showDefaultContextMenu', 'show', 'shortcut',
'shiftKey', 'shift', 'sharpness', 'sharedEvents', 'shadowColor',
'shadowAlpha', 'settings', 'setUseEchoSuppression', 'setUTCSeconds',
'setUTCMonth', 'setUTCMinutes', 'setUTCMilliseconds', 'setUTCHours',
'setUTCFullYear', 'setUTCDate', 'setTimeout', 'setTime',
'setTextFormat', 'setStyle', 'setSilenceLevel', 'setSettings',
'setSelection', 'setSelected', 'setSelectColor', 'setSeconds',
'setQuality', 'setPropertyIsEnumerable', 'setProperty', 'setPixels',
'setPixel32', 'setPixel', 'setNamespace', 'setName',
'setMotionLevel', 'setMonth', 'setMode', 'setMinutes',
'setMilliseconds', 'setLoopback', 'setLoopBack', 'setLocalName',
'setKeyFrameInterval', 'setInterval', 'setHours', 'setFullYear',
'setEmpty', 'setDirty', 'setDate', 'setCompositionString',
'setClipboard', 'setChildren', 'setChildIndex',
'setAdvancedAntiAliasingTable', 'serverString', 'separatorBefore',
'sendToURL', 'send', 'selectionEndIndex', 'selectionBeginIndex',
'selectable', 'select', 'seek', 'securityError', 'securityDomain',
'secondsUTC', 'seconds', 'search', 'scrollV', 'scrollRect',
'scrollH', 'scroll', 'screenResolutionY', 'screenResolutionX',
'screenDPI', 'screenColor', 'scenes', 'scaleY', 'scaleX',
'scaleMode', 'scale9Grid', 'scale', 'save', 'sandboxType',
'sameDomain', 'running', 'round', 'rotation', 'rotate', 'root',
'rollOver', 'rollOut', 'rightToRight', 'rightToLeft', 'rightPeak',
'rightMargin', 'right', 'rewind', 'reverse', 'resume', 'restrict',
'resize', 'reset', 'requestHeaders', 'replaceText',
'replaceSelectedText', 'replace', 'repeatCount', 'render',
'removedFromStage', 'removed', 'removeNode', 'removeNamespace',
'removeEventListener', 'removeChildAt', 'removeChild',
'relatedObject', 'registerFont', 'registerClassAlias', 'redOffset',
'redMultiplier', 'rect', 'receiveVideo', 'receiveAudio',
'readUnsignedShort', 'readUnsignedInt', 'readUnsignedByte',
'readUTFBytes', 'readUTF', 'readShort', 'readObject',
'readMultiByte', 'readInt', 'readFloat', 'readExternal',
'readDouble', 'readBytes', 'readByte', 'readBoolean', 'ratios',
'rate', 'random', 'quality', 'push', 'publish', 'proxyType',
'prototype', 'propertyIsEnumerable', 'progress',
'processingInstructions', 'printAsBitmap', 'print',
'previousSibling', 'preventDefault', 'prevScene', 'prevFrame',
'prettyPrinting', 'prettyIndent', 'preserveAlpha', 'prependChild',
'prefix', 'pow', 'position', 'pop', 'polar', 'playerType', 'play',
'pixelSnapping', 'pixelDissolve', 'pixelBounds', 'pixelAspectRatio',
'perlinNoise', 'pause', 'parseXML', 'parseInt', 'parseFloat',
'parseCSS', 'parse', 'parentNode', 'parentDomain',
'parentAllowsChild', 'parent', 'parameters', 'paperWidth',
'paperHeight', 'pan', 'paletteMap', 'pageWidth', 'pageHeight',
'overState', 'outsideCutoff', 'os', 'orientation', 'open',
'opaqueBackground', 'onPlayStatus', 'onMetaData', 'onCuePoint',
'offsetPoint', 'offset', 'objectID', 'objectEncoding', 'numLock',
'numLines', 'numFrames', 'numChildren', 'normalize', 'noise',
'nodeValue', 'nodeType', 'nodeName', 'nodeKind', 'noAutoLabeling',
'nextValue', 'nextSibling', 'nextScene', 'nextNameIndex',
'nextName', 'nextFrame', 'netStatus', 'navigateToURL',
'namespaceURI', 'namespaceDeclarations', 'namespace', 'names',
'name', 'muted', 'multiline', 'moveTo', 'mouseY', 'mouseX',
'mouseWheelEnabled', 'mouseWheel', 'mouseUp', 'mouseTarget',
'mouseOver', 'mouseOut', 'mouseMove', 'mouseLeave',
'mouseFocusChange', 'mouseEnabled', 'mouseDown', 'mouseChildren',
'motionTimeout', 'motionLevel', 'monthUTC', 'month',
'modificationDate', 'mode', 'minutesUTC', 'minutes', 'min',
'millisecondsUTC', 'milliseconds', 'method', 'message', 'merge',
'menuSelect', 'menuItemSelect', 'maxScrollV', 'maxScrollH',
'maxLevel', 'maxChars', 'max', 'matrixY', 'matrixX', 'matrix',
'match', 'mask', 'mapPoint', 'mapBitmap', 'map', 'manufacturer',
'macType', 'loopback', 'loop', 'log', 'lock', 'localeCompare',
'localY', 'localX', 'localToGlobal', 'localName',
'localFileReadDisable', 'loaderURL', 'loaderInfo', 'loader',
'loadPolicyFile', 'loadBytes', 'load', 'liveDelay', 'link',
'lineTo', 'lineStyle', 'lineGradientStyle', 'level',
'letterSpacing', 'length', 'leftToRight', 'leftToLeft', 'leftPeak',
'leftMargin', 'left', 'leading', 'lastIndexOf', 'lastIndex',
'lastChild', 'language', 'labels', 'knockout', 'keyUp',
'keyLocation', 'keyFrameInterval', 'keyFocusChange', 'keyDown',
'keyCode', 'kerning', 'join', 'italic', 'isXMLName',
'isPrototypeOf', 'isNaN', 'isFocusInaccessible', 'isFinite',
'isEmpty', 'isDefaultPrevented', 'isDebugger', 'isBuffering',
'isAttribute', 'isAccessible', 'ioError', 'invert', 'invalidate',
'intersects', 'intersection', 'interpolate', 'insideCutoff',
'insertChildBefore', 'insertChildAfter', 'insertBefore', 'inner',
'init', 'info', 'inflatePoint', 'inflate', 'indexOf', 'index',
'indent', 'inScopeNamespaces', 'imeComposition', 'ime',
'ignoreWhitespace', 'ignoreWhite', 'ignoreProcessingInstructions',
'ignoreComments', 'ignoreCase', 'identity', 'idMap', 'id3',
'httpStatus', 'htmlText', 'hoursUTC', 'hours', 'hitTestTextNearPos',
'hitTestState', 'hitTestPoint', 'hitTestObject', 'hitTest',
'hitArea', 'highlightColor', 'highlightAlpha', 'hideObject',
'hideBuiltInItems', 'hide', 'height', 'hasVideoEncoder', 'hasTLS',
'hasStreamingVideo', 'hasStreamingAudio', 'hasSimpleContent',
'hasScreenPlayback', 'hasScreenBroadcast', 'hasProperty',
'hasPrinting', 'hasOwnProperty', 'hasMP3', 'hasIME', 'hasGlyphs',
'hasEventListener', 'hasEmbeddedVideo', 'hasDefinition',
'hasComplexContent', 'hasChildNodes', 'hasAudioEncoder', 'hasAudio',
'hasAccessibility', 'gridFitType', 'greenOffset', 'greenMultiplier',
'graphics', 'gotoAndStop', 'gotoAndPlay', 'globalToLocal', 'global',
'getUTCSeconds', 'getUTCMonth', 'getUTCMinutes',
'getUTCMilliseconds', 'getUTCHours', 'getUTCFullYear', 'getUTCDay',
'getUTCDate', 'getTimezoneOffset', 'getTimer', 'getTime',
'getTextRunInfo', 'getTextFormat', 'getText', 'getStyle',
'getStackTrace', 'getSelectedText', 'getSelected', 'getSeconds',
'getRemote', 'getRect', 'getQualifiedSuperclassName',
'getQualifiedClassName', 'getProperty', 'getPrefixForNamespace',
'getPixels', 'getPixel32', 'getPixel', 'getParagraphLength',
'getObjectsUnderPoint', 'getNamespaceForPrefix', 'getMonth',
'getMinutes', 'getMilliseconds', 'getMicrophone', 'getLocal',
'getLineText', 'getLineOffset', 'getLineMetrics', 'getLineLength',
'getLineIndexOfChar', 'getLineIndexAtPoint', 'getImageReference',
'getHours', 'getFullYear', 'getFirstCharInParagraph',
'getDescendants', 'getDefinitionByName', 'getDefinition', 'getDay',
'getDate', 'getColorBoundsRect', 'getClassByAlias', 'getChildIndex',
'getChildByName', 'getChildAt', 'getCharIndexAtPoint',
'getCharBoundaries', 'getCamera', 'getBounds', 'genre',
'generateFilterRect', 'gain', 'fullYearUTC', 'fullYear',
'fullScreen', 'fscommand', 'fromCharCode', 'framesLoaded',
'frameRate', 'frame', 'fps', 'forwardAndBack', 'formatToString',
'forceSimple', 'forEach', 'fontType', 'fontStyle', 'fontSize',
'fontName', 'font', 'focusRect', 'focusOut', 'focusIn', 'focus',
'flush', 'floor', 'floodFill', 'firstChild', 'findText', 'filters',
'filter', 'fillRect', 'fileList', 'extension', 'extended', 'exp',
'exec', 'exactSettings', 'every', 'eventPhase', 'escapeMultiByte',
'escape', 'errorID', 'error', 'equals', 'enumerateFonts',
'enterFrame', 'endian', 'endFill', 'encodeURIComponent',
'encodeURI', 'enabled', 'embedFonts', 'elements',
'dynamicPropertyWriter', 'dropTarget', 'drawRoundRect', 'drawRect',
'drawEllipse', 'drawCircle', 'draw', 'download', 'downState',
'doubleClickEnabled', 'doubleClick', 'dotall', 'domain',
'docTypeDecl', 'doConversion', 'divisor', 'distance', 'dispose',
'displayState', 'displayMode', 'displayAsPassword', 'dispatchEvent',
'description', 'describeType', 'descent', 'descendants',
'deltaTransformPoint', 'delta', 'deleteProperty', 'delay',
'defaultTextFormat', 'defaultSettings', 'defaultObjectEncoding',
'decodeURIComponent', 'decodeURI', 'decode', 'deblocking',
'deactivate', 'dayUTC', 'day', 'dateUTC', 'date', 'dataFormat',
'data', 'd', 'customItems', 'curveTo', 'currentTarget',
'currentScene', 'currentLabels', 'currentLabel', 'currentFrame',
'currentFPS', 'currentDomain', 'currentCount', 'ctrlKey', 'creator',
'creationDate', 'createTextNode', 'createGradientBox',
'createElement', 'createBox', 'cos', 'copyPixels', 'copyChannel',
'copy', 'conversionMode', 'contextMenuOwner', 'contextMenu',
'contentType', 'contentLoaderInfo', 'content', 'containsRect',
'containsPoint', 'contains', 'constructor', 'connectedProxyType',
'connected', 'connect', 'condenseWhite', 'concatenatedMatrix',
'concatenatedColorTransform', 'concat', 'computeSpectrum',
'compress', 'componentY', 'componentX', 'complete', 'compare',
'comments', 'comment', 'colors', 'colorTransform', 'color', 'code',
'close', 'cloneNode', 'clone', 'client', 'click', 'clearTimeout',
'clearInterval', 'clear', 'clamp', 'children', 'childNodes',
'childIndex', 'childAllowsParent', 'child', 'checkPolicyFile',
'charCount', 'charCodeAt', 'charCode', 'charAt', 'changeList',
'change', 'ceil', 'caretIndex', 'caption', 'capsLock', 'cancelable',
'cancel', 'callee', 'callProperty', 'call', 'cacheAsBitmap', 'c',
'bytesTotal', 'bytesLoaded', 'bytesAvailable', 'buttonMode',
'buttonDown', 'bullet', 'builtInItems', 'bufferTime',
'bufferLength', 'bubbles', 'browse', 'bottomScrollV', 'bottomRight',
'bottom', 'borderColor', 'border', 'bold', 'blurY', 'blurX',
'blueOffset', 'blueMultiplier', 'blockIndent', 'blendMode',
'bitmapData', 'bias', 'beginGradientFill', 'beginFill',
'beginBitmapFill', 'bandwidth', 'backgroundColor', 'background',
'b', 'available', 'avHardwareDisable', 'autoSize', 'attributes',
'attribute', 'attachNetStream', 'attachCamera', 'attachAudio',
'atan2', 'atan', 'asyncError', 'asin', 'ascent', 'artist',
'areSoundsInaccessible', 'areInaccessibleObjectsUnderPoint',
'applyFilter', 'apply', 'applicationDomain', 'appendText',
'appendChild', 'antiAliasType', 'angle', 'alwaysShowSelection',
'altKey', 'alphas', 'alphaOffset', 'alphaMultiplier', 'alpha',
'allowInsecureDomain', 'allowDomain', 'align', 'album',
'addedToStage', 'added', 'addPage', 'addNamespace', 'addHeader',
'addEventListener', 'addChildAt', 'addChild', 'addCallback', 'add',
'activityLevel', 'activity', 'active', 'activating', 'activate',
'actionScriptVersion', 'acos', 'accessibilityProperties', 'abs'
),
8 => array(
'WRAP', 'VERTICAL', 'VARIABLES',
'UTC', 'UPLOAD_COMPLETE_DATA', 'UP', 'UNLOAD', 'UNKNOWN',
'UNIQUESORT', 'TOP_RIGHT', 'TOP_LEFT', 'TOP', 'TIMER_COMPLETE',
'TIMER', 'TEXT_NODE', 'TEXT_INPUT', 'TEXT', 'TAB_INDEX_CHANGE',
'TAB_ENABLED_CHANGE', 'TAB_CHILDREN_CHANGE', 'TAB', 'SYNC',
'SUBTRACT', 'SUBPIXEL', 'STATUS', 'STANDARD', 'SQUARE', 'SQRT2',
'SQRT1_2', 'SPACE', 'SOUND_COMPLETE', 'SOCKET_DATA', 'SHOW_ALL',
'SHIFT', 'SETTINGS_MANAGER', 'SELECT', 'SECURITY_ERROR', 'SCROLL',
'SCREEN', 'ROUND', 'ROLL_OVER', 'ROLL_OUT', 'RIGHT', 'RGB',
'RETURNINDEXEDARRAY', 'RESIZE', 'REPEAT', 'RENDER',
'REMOVED_FROM_STAGE', 'REMOVED', 'REMOTE', 'REGULAR', 'REFLECT',
'RED', 'RADIAL', 'PROGRESS', 'PRIVACY', 'POST', 'POSITIVE_INFINITY',
'PORTRAIT', 'PIXEL', 'PI', 'PENDING', 'PAGE_UP', 'PAGE_DOWN', 'PAD',
'OVERLAY', 'OUTER', 'OPEN', 'NaN', 'NUM_PAD', 'NUMPAD_SUBTRACT',
'NUMPAD_MULTIPLY', 'NUMPAD_ENTER', 'NUMPAD_DIVIDE',
'NUMPAD_DECIMAL', 'NUMPAD_ADD', 'NUMPAD_9', 'NUMPAD_8', 'NUMPAD_7',
'NUMPAD_6', 'NUMPAD_5', 'NUMPAD_4', 'NUMPAD_3', 'NUMPAD_2',
'NUMPAD_1', 'NUMPAD_0', 'NUMERIC', 'NO_SCALE', 'NO_BORDER',
'NORMAL', 'NONE', 'NEVER', 'NET_STATUS', 'NEGATIVE_INFINITY',
'MULTIPLY', 'MOUSE_WHEEL', 'MOUSE_UP', 'MOUSE_OVER', 'MOUSE_OUT',
'MOUSE_MOVE', 'MOUSE_LEAVE', 'MOUSE_FOCUS_CHANGE', 'MOUSE_DOWN',
'MITER', 'MIN_VALUE', 'MICROPHONE', 'MENU_SELECT',
'MENU_ITEM_SELECT', 'MEDIUM', 'MAX_VALUE', 'LOW', 'LOG2E', 'LOG10E',
'LOCAL_WITH_NETWORK', 'LOCAL_WITH_FILE', 'LOCAL_TRUSTED',
'LOCAL_STORAGE', 'LN2', 'LN10', 'LITTLE_ENDIAN', 'LINK',
'LINEAR_RGB', 'LINEAR', 'LIGHT_COLOR', 'LIGHTEN', 'LEFT', 'LCD',
'LAYER', 'LANDSCAPE', 'KOREAN', 'KEY_UP', 'KEY_FOCUS_CHANGE',
'KEY_DOWN', 'JUSTIFY', 'JAPANESE_KATAKANA_HALF',
'JAPANESE_KATAKANA_FULL', 'JAPANESE_HIRAGANA', 'Infinity', 'ITALIC',
'IO_ERROR', 'INVERT', 'INSERT', 'INPUT', 'INNER', 'INIT',
'IME_COMPOSITION', 'IGNORE', 'ID3', 'HTTP_STATUS', 'HORIZONTAL',
'HOME', 'HIGH', 'HARDLIGHT', 'GREEN', 'GET', 'FULLSCREEN', 'FULL',
'FOCUS_OUT', 'FOCUS_IN', 'FLUSHED', 'FLASH9', 'FLASH8', 'FLASH7',
'FLASH6', 'FLASH5', 'FLASH4', 'FLASH3', 'FLASH2', 'FLASH1', 'F9',
'F8', 'F7', 'F6', 'F5', 'F4', 'F3', 'F2', 'F15', 'F14', 'F13',
'F12', 'F11', 'F10', 'F1', 'EXACT_FIT', 'ESCAPE', 'ERROR', 'ERASE',
'ENTER_FRAME', 'ENTER', 'END', 'EMBEDDED', 'ELEMENT_NODE', 'E',
'DYNAMIC', 'DOWN', 'DOUBLE_CLICK', 'DIFFERENCE', 'DEVICE',
'DESCENDING', 'DELETE', 'DEFAULT', 'DEACTIVATE', 'DATA',
'DARK_COLOR', 'DARKEN', 'CRT', 'CONTROL', 'CONNECT', 'COMPLETE',
'COLOR', 'CLOSE', 'CLICK', 'CLAMP', 'CHINESE', 'CHANGE', 'CENTER',
'CASEINSENSITIVE', 'CAPTURING_PHASE', 'CAPS_LOCK', 'CANCEL',
'CAMERA', 'BUBBLING_PHASE', 'BOTTOM_RIGHT', 'BOTTOM_LEFT', 'BOTTOM',
'BOLD_ITALIC', 'BOLD', 'BLUE', 'BINARY', 'BIG_ENDIAN', 'BEVEL',
'BEST', 'BACKSPACE', 'AUTO', 'AT_TARGET', 'ASYNC_ERROR', 'AMF3',
'AMF0', 'ALWAYS', 'ALPHANUMERIC_HALF', 'ALPHANUMERIC_FULL', 'ALPHA',
'ADVANCED', 'ADDED_TO_STAGE', 'ADDED', 'ADD', 'ACTIVITY',
'ACTIONSCRIPT3', 'ACTIONSCRIPT2'
),
//FIX: Must be last in order to avoid conflicts with keywords present
//in other keyword groups, that might get highlighted as part of the URL.
//I know this is not a proper work-around, but should do just fine.
5 => array(
'uint', 'int', 'arguments', 'XMLSocket', 'XMLNodeType', 'XMLNode',
'XMLList', 'XMLDocument', 'XML', 'Video', 'VerifyError',
'URLVariables', 'URLStream', 'URLRequestMethod', 'URLRequestHeader',
'URLRequest', 'URLLoaderDataFormat', 'URLLoader', 'URIError',
'TypeError', 'Transform', 'TimerEvent', 'Timer', 'TextSnapshot',
'TextRenderer', 'TextLineMetrics', 'TextFormatAlign', 'TextFormat',
'TextFieldType', 'TextFieldAutoSize', 'TextField', 'TextEvent',
'TextDisplayMode', 'TextColorType', 'System', 'SyntaxError',
'SyncEvent', 'StyleSheet', 'String', 'StatusEvent', 'StaticText',
'StageScaleMode', 'StageQuality', 'StageAlign', 'Stage',
'StackOverflowError', 'Sprite', 'SpreadMethod', 'SoundTransform',
'SoundMixer', 'SoundLoaderContext', 'SoundChannel', 'Sound',
'Socket', 'SimpleButton', 'SharedObjectFlushStatus', 'SharedObject',
'Shape', 'SecurityPanel', 'SecurityErrorEvent', 'SecurityError',
'SecurityDomain', 'Security', 'ScriptTimeoutError', 'Scene',
'SWFVersion', 'Responder', 'RegExp', 'ReferenceError', 'Rectangle',
'RangeError', 'QName', 'Proxy', 'ProgressEvent',
'PrintJobOrientation', 'PrintJobOptions', 'PrintJob', 'Point',
'PixelSnapping', 'ObjectEncoding', 'Object', 'Number', 'NetStream',
'NetStatusEvent', 'NetConnection', 'Namespace', 'MovieClip',
'MouseEvent', 'Mouse', 'MorphShape', 'Microphone', 'MemoryError',
'Matrix', 'Math', 'LocalConnection', 'LoaderInfo', 'LoaderContext',
'Loader', 'LineScaleMode', 'KeyboardEvent', 'Keyboard',
'KeyLocation', 'JointStyle', 'InvalidSWFError',
'InterpolationMethod', 'InteractiveObject', 'IllegalOperationError',
'IOErrorEvent', 'IOError', 'IMEEvent', 'IMEConversionMode', 'IME',
'IExternalizable', 'IEventDispatcher', 'IDynamicPropertyWriter',
'IDynamicPropertyOutput', 'IDataOutput', 'IDataInput', 'ID3Info',
'IBitmapDrawable', 'HTTPStatusEvent', 'GridFitType', 'Graphics',
'GradientType', 'GradientGlowFilter', 'GradientBevelFilter',
'GlowFilter', 'Function', 'FrameLabel', 'FontType', 'FontStyle',
'Font', 'FocusEvent', 'FileReferenceList', 'FileReference',
'FileFilter', 'ExternalInterface', 'EventPhase', 'EventDispatcher',
'Event', 'EvalError', 'ErrorEvent', 'Error', 'Endian', 'EOFError',
'DropShadowFilter', 'DisplayObjectContainer', 'DisplayObject',
'DisplacementMapFilterMode', 'DisplacementMapFilter', 'Dictionary',
'DefinitionError', 'Date', 'DataEvent', 'ConvolutionFilter',
'ContextMenuItem', 'ContextMenuEvent', 'ContextMenuBuiltInItems',
'ContextMenu', 'ColorTransform', 'ColorMatrixFilter', 'Class',
'CapsStyle', 'Capabilities', 'Camera', 'CSMSettings', 'ByteArray',
'Boolean', 'BlurFilter', 'BlendMode', 'BitmapFilterType',
'BitmapFilterQuality', 'BitmapFilter', 'BitmapDataChannel',
'BitmapData', 'Bitmap', 'BevelFilter', 'AsyncErrorEvent', 'Array',
'ArgumentError', 'ApplicationDomain', 'AntiAliasType',
'ActivityEvent', 'ActionScriptVersion', 'AccessibilityProperties',
'Accessibility', 'AVM1Movie'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '!', '%', '&', '*', '|', '/', '<', '>', '^', '-', '+', '~', '?', ':', ';', '.', ','
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0033ff; font-weight: bold;',
2 => 'color: #6699cc; font-weight: bold;',
3 => 'color: #339966; font-weight: bold;',
4 => 'color: #9900cc; font-weight: bold;',
5 => 'color: #004993;',
6 => 'color: #004993;',
7 => 'color: #004993;',
8 => 'color: #004993;'
),
'COMMENTS' => array(
1 => 'color: #009900; font-style: italic;',
2 => 'color: #009966; font-style: italic;',
'MULTI' => 'color: #3f5fbf;'
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #990000;'
),
'NUMBERS' => array(
0 => 'color: #000000; font-weight:bold;'
),
'METHODS' => array(
0 => 'color: #000000;',
),
'SYMBOLS' => array(
0 => 'color: #000066; font-weight: bold;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => 'http://www.google.com/search?q={FNAMEL}%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:{FNAMEL}.html',
6 => '',
7 => '',
8 => ''
),
'OOLANG' => false,//Save some time as OO identifiers aren't used
'OBJECT_SPLITTERS' => array(
// commented out because it's not very relevant for AS, as all properties, methods and constants are dot-accessed.
// I believe it's preferable to have package highlighting for example, which is not possible with this enabled.
// 0 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array()
);
?>

135
Sources/geshi/ada.php Normal file
View File

@ -0,0 +1,135 @@
<?php
/*************************************************************************************
* ada.php
* -------
* Author: Tux (tux@inmail.cz)
* Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2004/07/29
*
* Ada language file for GeSHi.
* Words are from SciTe configuration file
*
* CHANGES
* -------
* 2004/11/27 (1.0.2)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.1)
* - Removed apostrophe as string delimiter
* - Added URL support
* 2004/08/05 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Ada',
'COMMENT_SINGLE' => array(1 => '--'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'begin', 'declare', 'do', 'else', 'elsif', 'exception', 'for', 'if',
'is', 'loop', 'while', 'then', 'end', 'select', 'case', 'until',
'goto', 'return'
),
2 => array(
'abs', 'and', 'at', 'mod', 'not', 'or', 'rem', 'xor'
),
3 => array(
'abort', 'abstract', 'accept', 'access', 'aliased', 'all', 'array',
'body', 'constant', 'delay', 'delta', 'digits', 'entry', 'exit',
'function', 'generic', 'in', 'interface', 'limited', 'new', 'null',
'of', 'others', 'out', 'overriding', 'package', 'pragma', 'private',
'procedure', 'protected', 'raise', 'range', 'record', 'renames',
'requeue', 'reverse', 'separate', 'subtype', 'synchronized',
'tagged', 'task', 'terminate', 'type', 'use', 'when', 'with'
)
),
'SYMBOLS' => array(
'(', ')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00007f;',
2 => 'color: #0000ff;',
3 => 'color: #46aa03; font-weight:bold;',
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'COMMENTS' => array(
1 => 'color: #adadad; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #7f007f;'
),
'NUMBERS' => array(
0 => 'color: #ff0000;'
),
'METHODS' => array(
1 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

329
Sources/geshi/algol68.php Normal file
View File

@ -0,0 +1,329 @@
<?php
/*************************************************************************************
* algol68.php
* --------
* Author: Neville Dempsey (NevilleD.sourceforge@sgr-a.net)
* Copyright: (c) 2010 Neville Dempsey (https://sourceforge.net/projects/algol68/files/)
* Release Version: 1.0.8.11
* Date Started: 2010/04/24
*
* ALGOL 68 language file for GeSHi.
*
* CHANGES
* -------
* 2010/04/24 (1.0.8.8.0)
* - First Release - machine generated by http://rosettacode.org/geshi/
* 2010/05/24 (1.0.8.8.1)
* - #2324 - converted comment detection to RegEx
* 2010/06/16 (1.0.8.8.2)
* - separate symbols from keywords - quick fix
* 2010/06/16 (1.0.8.8.3)
* - reverse length order symbols
* - Add RegEx for BITS and REAL literals (INT to do)
* - recognise LONG and SHORT prefixes to literals
* 2010/07/23 (1.0.8.8.4)
* - fix errors detected by langcheck.php, eg rm tab, fix indenting, rm duplicate keywords, fix symbols as keywords etc
* - removed bulk of local variables from name space.
* - unfolded arrays
*
* TODO (updated yyyy/mm/dd)
* -------------------------
* - Use "Parser Control" to fix KEYWORD parsing, eg: (INT minus one= -1; print(ABSminus one))
* - Parse $FORMATS$ more fully - if possible.
* - Pull reserved words from the source of A68G and A68RS
* - Pull stdlib PROC/OP/MODE symbols from the soruce of A68G and A68RS
* - Pull PROC/OP/MODE extensions from the soruce of A68G and A68RS
* - Use RegEx to detect extended precision PROC names, eg 'long long sin' etc
* - Use RegEx to detect white space std PROC names, eg 'new line'
* - Use RegEx to detect white space ext PROC names, eg 'cgs speed of light'
* - Use RegEx to detect BOLD symbols, eg userdefined MODEs and OPs
* - Add REgEx for INT literals - Adding INT breaks formatting...
* - Adding PIPE as a key word breaks formatting of "|" symbols!!
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
if(!function_exists('geshi_langfile_algol68_vars')) {
function geshi_langfile_algol68_vars(){
$pre='(?<![0-9a-z_\.])';
$post='?(?![0-9a-z]|\.(?:[eE][+\-]?)?\d)';
$post=""; # assuming the RegEx is greedy #
$_="\s*";
$srad="Rr"; $rrad="[".$srad."]"; # either one digit, OR opt-space in digits #
$sbin="0-1"; $rbin="[".$sbin."]"; $_bin=$rbin."(?:[".$sbin."\s]*".$rbin."|)";
$snib="0-3"; $rnib="[".$snib."]"; $_nib=$rnib."(?:[".$snib."\s]*".$rnib."|)";
$soct="0-7"; $roct="[".$soct."]"; $_oct=$roct."(?:[".$soct."\s]*".$roct."|)";
$sdec="0-9"; $rdec="[".$sdec."]"; $_dec=$rdec."(?:[".$sdec."\s]*".$rdec."|)";
$shex="0-9A-Fa-f"; $rhex="[".$shex."]"; $_hex=$rhex."(?:[".$shex."\s]*".$rhex."|)";
# Define BITS: #
$prebits=$pre; $postbits=$post;
$bl="2".$_.$rrad.$_.$_bin;
$bl=$bl."|"."2".$_.$rrad.$_.$_bin;
$bl=$bl."|"."4".$_.$rrad.$_.$_nib;
$bl=$bl."|"."8".$_.$rrad.$_.$_oct;
$bl=$bl."|"."1".$_."0".$_.$rrad.$_.$_dec;
$bl=$bl."|"."1".$_."6".$_.$rrad.$_.$_hex;
# Define INT: #
$preint=$pre; $postint=$post;
# for some reason ".0 e - 2" is not recognised, but ".0 e + 2" IS!
# work around: remove spaces between sign and digits! Maybe because
# of the Unary '-' Operator
$sign_="(?:-|\-|[-]|[\-]|\+|)"; # attempts #
$sign_="(?:-\s*|\+\s*|)"; # n.b. sign is followed by white space #
$_int=$sign_.$_dec;
$il= $_int; # +_9 #
$GESHI_NUMBER_INT_BASIC='(?:(?<![0-9a-z_\.%])|(?<=\.\.))(?<![\d\.]e[+\-])([1-9]\d*?|0)(?![0-9a-z]|\.(?:[eE][+\-]?)?\d)';
# Define REAL: #
$prereal=$pre; $postreal=$post;
$sexp="Ee\\\\"; $_exp="(?:⏨|[".$sexp."])".$_.$_int;
$_decimal="[.]".$_.$_dec;
# Add permitted permutations of various parts #
$rl= $_int.$_.$_decimal.$_.$_exp; # +_9_._9_e_+_9 #
$rl=$rl."|".$_int.$_."[.]".$_.$_exp; # +_9_.___e_+_9 #
$rl=$rl."|".$_int.$_.$_exp; # +_9_____e_+_9 #
$rl=$rl."|".$sign_.$_decimal.$_.$_exp; # +___._9_e_+_9 #
$rl=$rl."|".$_int.$_.$_decimal; # +_9_._9 #
$rl=$rl."|".$sign_.$_decimal; # +___._9 #
# The following line damaged formatting...
#$rl=$rl."|".$_int; # +_9 #
# Apparently Algol68 does not support '2.', c.f. Algol 68G
#$rl=$rl."|".$_int.$_."[.]"; # +_9_. #
# Literal prefixes are overridden by KEYWORDS :-(
$LONGS="(?:(?:(LONG\s+)*|(SHORT\s+))*|)";
return array(
"BITS" => $prebits.$LONGS."(?:".$bl.")".$postbits,
"INT" => $preint.$LONGS."(?:".$il.")".$postint,
"REAL" => $prereal.$LONGS."(?:".$rl.")".$postreal,
"BOLD" => 'color: #b1b100; font-weight: bold;',
"ITALIC" => 'color: #b1b100;', # procedures traditionally italic #
"NONSTD" => 'color: #FF0000; font-weight: bold;', # RED #
"COMMENT" => 'color: #666666; font-style: italic;'
);
}
}
$a68=geshi_langfile_algol68_vars();
$language_data = array(
'LANG_NAME' => 'ALGOL 68',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(
'¢' => '¢',
'£' => '£',
'#' => '#',
),
'COMMENT_REGEXP' => array(
1 => '/\bCO((?:MMENT)?)\b.*?\bCO\\1\b/i',
2 => '/\bPR((?:AGMAT)?)\b.*?\bPR\\1\b/i',
3 => '/\bQUOTE\b.*?\bQUOTE\b/i'
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '"',
'NUMBERS' => GESHI_NUMBER_HEX_SUFFIX, # Warning: Feature!! #
# GESHI_NUMBER_HEX_SUFFIX, # Attempt ignore default #
'KEYWORDS' => array(
# Extensions
1 => array('KEEP', 'FINISH', 'USE', 'SYSPROCS', 'IOSTATE', 'USING', 'ENVIRON', 'PROGRAM', 'CONTEXT'),
# 2 => array('CASE', 'IN', 'OUSE', 'IN', 'OUT', 'ESAC', '(', '|', '|:', ')', 'FOR', 'FROM', 'TO', 'BY', 'WHILE', 'DO', 'OD', 'IF', 'THEN', 'ELIF', 'THEN', 'ELSE', 'FI', 'PAR', 'BEGIN', 'EXIT', 'END', 'GO', 'GOTO', 'FORALL', 'UPTO', 'DOWNTO', 'FOREACH', 'ASSERT'), #
2 => array('CASE', 'IN', 'OUSE', /* 'IN',*/ 'OUT', 'ESAC', 'PAR', 'BEGIN', 'EXIT', 'END', 'GO TO', 'GOTO', 'FOR', 'FROM', 'TO', 'BY', 'WHILE', 'DO', 'OD', 'IF', 'THEN', 'ELIF', /* 'THEN',*/ 'ELSE', 'FI' ),
3 => array('BITS', 'BOOL', 'BYTES', 'CHAR', 'COMPL', 'INT', 'REAL', 'SEMA', 'STRING', 'VOID'),
4 => array('MODE', 'OP', 'PRIO', 'PROC', 'FLEX', 'HEAP', 'LOC', 'REF', 'LONG', 'SHORT', 'EITHER'),
# Extensions or deprecated keywords
# 'PIPE': keyword somehow interferes with the internal operation of GeSHi
5 => array('FORALL', 'UPTO', 'DOWNTO', 'FOREACH', 'ASSERT', 'CTB', 'CT', 'CTAB', 'COMPLEX', 'VECTOR', 'SOUND' /*, 'PIPE'*/),
6 => array('CHANNEL', 'FILE', 'FORMAT', 'STRUCT', 'UNION', 'OF'),
# '(', '|', '|:', ')', #
# 7 => array('OF', 'AT', '@', 'IS', ':=:', 'ISNT', ':/=:', ':≠:', 'CTB', 'CT', '::', 'CTAB', '::=', 'TRUE', 'FALSE', 'EMPTY', 'NIL', '○', 'SKIP', '~'),
7 => array('AT', 'IS', 'ISNT', 'TRUE', 'FALSE', 'EMPTY', 'NIL', 'SKIP'),
8 => array('NOT', 'UP', 'DOWN', 'LWB', 'UPB', /* '-',*/ 'ABS', 'ARG', 'BIN', 'ENTIER', 'LENG', 'LEVEL', 'ODD', 'REPR', 'ROUND', 'SHORTEN', 'CONJ', 'SIGN'),
# OPERATORS ordered roughtly by PRIORITY #
# 9 => array('¬', '↑', '↓', '⌊', '⌈', '~', '⎩', '⎧'),
# 10 => array('+*', 'I', '+×', '⊥', '!', '⏨'),
10 => array('I'),
# 11 => array('SHL', 'SHR', '**', 'UP', 'DOWN', 'LWB', 'UPB', '↑', '↓', '⌊', '⌈', '⎩', '⎧'),
11 => array('SHL', 'SHR', /*'UP', 'DOWN', 'LWB', 'UPB'*/),
# 12 => array('*', '/', '%', 'OVER', '%*', 'MOD', 'ELEM', '×', '÷', '÷×', '÷*', '%×', '□', '÷:'),
12 => array('OVER', 'MOD', 'ELEM'),
# 13 => array('-', '+'),
# 14 => array('<', 'LT', '<=', 'LE', '>=', 'GE', '>', 'GT', '≤', '≥'),
14 => array('LT', 'LE', 'GE', 'GT'),
# 15 => array('=', 'EQ', '/=', 'NE', '≠', '~='),
15 => array('EQ', 'NE'),
# 16 => array('&', 'AND', '∧', 'OR', '', '/\\', '\\/'),
16 => array('AND', 'OR'),
17 => array('MINUSAB', 'PLUSAB', 'TIMESAB', 'DIVAB', 'OVERAB', 'MODAB', 'PLUSTO'),
# 18 => array('-:=', '+:=', '*:=', '/:=', '%:=', '%*:=', '+=:', '×:=', '÷:=', '÷×:=', '÷*:=', '%×:=', '÷::=', 'MINUS', 'PLUS', 'DIV', 'MOD', 'PRUS'),
# Extensions or deprecated keywords
18 => array('MINUS', 'PLUS', 'DIV', /* 'MOD',*/ 'PRUS', 'IS NOT'),
# Extensions or deprecated keywords
19 => array('THEF', 'ANDF', 'ORF', 'ANDTH', 'OREL', 'ANDTHEN', 'ORELSE'),
# Built in procedures - from standard prelude #
20 => array('int lengths', 'intlengths', 'int shorths', 'intshorths', 'max int', 'maxint', 'real lengths', 'reallengths', 'real shorths', 'realshorths', 'bits lengths', 'bitslengths', 'bits shorths', 'bitsshorths', 'bytes lengths', 'byteslengths', 'bytes shorths', 'bytesshorths', 'max abs char', 'maxabschar', 'int width', 'intwidth', 'long int width', 'longintwidth', 'long long int width', 'longlongintwidth', 'real width', 'realwidth', 'long real width', 'longrealwidth', 'long long real width', 'longlongrealwidth', 'exp width', 'expwidth', 'long exp width', 'longexpwidth', 'long long exp width', 'longlongexpwidth', 'bits width', 'bitswidth', 'long bits width', 'longbitswidth', 'long long bits width', 'longlongbitswidth', 'bytes width', 'byteswidth', 'long bytes width', 'longbyteswidth', 'max real', 'maxreal', 'small real', 'smallreal', 'long max int', 'longmaxint', 'long long max int', 'longlongmaxint', 'long max real', 'longmaxreal', 'long small real', 'longsmallreal', 'long long max real', 'longlongmaxreal', 'long long small real', 'longlongsmallreal', 'long max bits', 'longmaxbits', 'long long max bits', 'longlongmaxbits', 'null character', 'nullcharacter', 'blank', 'flip', 'flop', 'error char', 'errorchar', 'exp char', 'expchar', 'newline char', 'newlinechar', 'formfeed char', 'formfeedchar', 'tab char', 'tabchar'),
21 => array('stand in channel', 'standinchannel', 'stand out channel', 'standoutchannel', 'stand back channel', 'standbackchannel', 'stand draw channel', 'standdrawchannel', 'stand error channel', 'standerrorchannel'),
22 => array('put possible', 'putpossible', 'get possible', 'getpossible', 'bin possible', 'binpossible', 'set possible', 'setpossible', 'reset possible', 'resetpossible', 'reidf possible', 'reidfpossible', 'draw possible', 'drawpossible', 'compressible', 'on logical file end', 'onlogicalfileend', 'on physical file end', 'onphysicalfileend', 'on line end', 'onlineend', 'on page end', 'onpageend', 'on format end', 'onformatend', 'on value error', 'onvalueerror', 'on open error', 'onopenerror', 'on transput error', 'ontransputerror', 'on format error', 'onformaterror', 'open', 'establish', 'create', 'associate', 'close', 'lock', 'scratch', 'space', 'new line', 'newline', 'print', 'write f', 'writef', 'print f', 'printf', 'write bin', 'writebin', 'print bin', 'printbin', 'read f', 'readf', 'read bin', 'readbin', 'put f', 'putf', 'get f', 'getf', 'make term', 'maketerm', 'make device', 'makedevice', 'idf', 'term', 'read int', 'readint', 'read long int', 'readlongint', 'read long long int', 'readlonglongint', 'read real', 'readreal', 'read long real', 'readlongreal', 'read long long real', 'readlonglongreal', 'read complex', 'readcomplex', 'read long complex', 'readlongcomplex', 'read long long complex', 'readlonglongcomplex', 'read bool', 'readbool', 'read bits', 'readbits', 'read long bits', 'readlongbits', 'read long long bits', 'readlonglongbits', 'read char', 'readchar', 'read string', 'readstring', 'print int', 'printint', 'print long int', 'printlongint', 'print long long int', 'printlonglongint', 'print real', 'printreal', 'print long real', 'printlongreal', 'print long long real', 'printlonglongreal', 'print complex', 'printcomplex', 'print long complex', 'printlongcomplex', 'print long long complex', 'printlonglongcomplex', 'print bool', 'printbool', 'print bits', 'printbits', 'print long bits', 'printlongbits', 'print long long bits', 'printlonglongbits', 'print char', 'printchar', 'print string', 'printstring', 'whole', 'fixed', 'float'),
23 => array('pi', 'long pi', 'longpi', 'long long pi', 'longlongpi'),
24 => array('sqrt', 'curt', 'cbrt', 'exp', 'ln', 'log', 'sin', 'arc sin', 'arcsin', 'cos', 'arc cos', 'arccos', 'tan', 'arc tan', 'arctan', 'long sqrt', 'longsqrt', 'long curt', 'longcurt', 'long cbrt', 'longcbrt', 'long exp', 'longexp', 'long ln', 'longln', 'long log', 'longlog', 'long sin', 'longsin', 'long arc sin', 'longarcsin', 'long cos', 'longcos', 'long arc cos', 'longarccos', 'long tan', 'longtan', 'long arc tan', 'longarctan', 'long long sqrt', 'longlongsqrt', 'long long curt', 'longlongcurt', 'long long cbrt', 'longlongcbrt', 'long long exp', 'longlongexp', 'long long ln', 'longlongln', 'long long log', 'longlonglog', 'long long sin', 'longlongsin', 'long long arc sin', 'longlongarcsin', 'long long cos', 'longlongcos', 'long long arc cos', 'longlongarccos', 'long long tan', 'longlongtan', 'long long arc tan', 'longlongarctan'),
25 => array('first random', 'firstrandom', 'next random', 'nextrandom', 'long next random', 'longnextrandom', 'long long next random', 'longlongnextrandom'),
26 => array('real', 'bits pack', 'bitspack', 'long bits pack', 'longbitspack', 'long long bits pack', 'longlongbitspack', 'bytes pack', 'bytespack', 'long bytes pack', 'longbytespack', 'char in string', 'charinstring', 'last char in string', 'lastcharinstring', 'string in string', 'stringinstring'),
27 => array('utc time', 'utctime', 'local time', 'localtime', 'argc', 'argv', 'get env', 'getenv', 'reset errno', 'reseterrno', 'errno', 'strerror'),
28 => array('sinh', 'long sinh', 'longsinh', 'long long sinh', 'longlongsinh', 'arc sinh', 'arcsinh', 'long arc sinh', 'longarcsinh', 'long long arc sinh', 'longlongarcsinh', 'cosh', 'long cosh', 'longcosh', 'long long cosh', 'longlongcosh', 'arc cosh', 'arccosh', 'long arc cosh', 'longarccosh', 'long long arc cosh', 'longlongarccosh', 'tanh', 'long tanh', 'longtanh', 'long long tanh', 'longlongtanh', 'arc tanh', 'arctanh', 'long arc tanh', 'longarctanh', 'long long arc tanh', 'longlongarctanh', 'arc tan2', 'arctan2', 'long arc tan2', 'longarctan2', 'long long arc tan2', 'longlongarctan2'),
29 => array('complex sqrt', 'complexsqrt', 'long complex sqrt', 'longcomplexsqrt', 'long long complex sqrt', 'longlongcomplexsqrt', 'complex exp', 'complexexp', 'long complex exp', 'longcomplexexp', 'long long complex exp', 'longlongcomplexexp', 'complex ln', 'complexln', 'long complex ln', 'longcomplexln', 'long long complex ln', 'longlongcomplexln', 'complex sin', 'complexsin', 'long complex sin', 'longcomplexsin', 'long long complex sin', 'longlongcomplexsin', 'complex arc sin', 'complexarcsin', 'long complex arc sin', 'longcomplexarcsin', 'long long complex arc sin', 'longlongcomplexarcsin', 'complex cos', 'complexcos', 'long complex cos', 'longcomplexcos', 'long long complex cos', 'longlongcomplexcos', 'complex arc cos', 'complexarccos', 'long complex arc cos', 'longcomplexarccos', 'long long complex arc cos', 'longlongcomplexarccos', 'complex tan', 'complextan', 'long complex tan', 'longcomplextan', 'long long complex tan', 'longlongcomplextan', 'complex arc tan', 'complexarctan', 'long complex arc tan', 'longcomplexarctan', 'long long complex arc tan', 'longlongcomplexarctan', 'complex sinh', 'complexsinh', 'complex arc sinh', 'complexarcsinh', 'complex cosh', 'complexcosh', 'complex arc cosh', 'complexarccosh', 'complex tanh', 'complextanh', 'complex arc tanh', 'complexarctanh')
),
'SYMBOLS' => array(
1 => array( /* reverse length sorted... */ '÷×:=', '%×:=', ':≠:', '÷*:=', '÷::=', '%*:=', ':/=:', '×:=', '÷:=', '÷×', '%:=', '%×', '*:=', '+:=', '+=:', '+×', '-:=', '/:=', '::=', ':=:', '÷*', '÷:', '↑', '↓', '∧', '', '≠', '≤', '≥', '⊥', '⌈', '⌊', '⎧', '⎩', /* '⏨', */ '□', '○', '%*', '**', '+*', '/=', '::', '/\\', '\\/', '<=', '>=', '|:', '~=', '¬', '×', '÷', '!', '%', '&', '(', ')', '*', '+', ',', '-', '/', ':', ';', '<', '=', '>', '?', '@', '[', ']', '^', '{', '|', '}', '~')
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true,
# 9 => true,
10 => true,
11 => true,
12 => true,
# 13 => true,
14 => true,
15 => true,
16 => true,
17 => true,
18 => true,
19 => true,
20 => true,
21 => true,
22 => true,
23 => true,
24 => true,
25 => true,
26 => true,
27 => true,
28 => true,
29 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => $a68['NONSTD'], 2 => $a68['BOLD'], 3 => $a68['BOLD'], 4 => $a68['BOLD'],
5 => $a68['NONSTD'], 6 => $a68['BOLD'], 7 => $a68['BOLD'], 8 => $a68['BOLD'],
/* 9 => $a68['BOLD'],*/ 10 => $a68['BOLD'], 11 => $a68['BOLD'], 12 => $a68['BOLD'],
/* 13 => $a68['BOLD'],*/ 14 => $a68['BOLD'], 15 => $a68['BOLD'], 16 => $a68['BOLD'], 17 => $a68['BOLD'],
18 => $a68['NONSTD'], 19 => $a68['NONSTD'],
20 => $a68['ITALIC'], 21 => $a68['ITALIC'], 22 => $a68['ITALIC'], 23 => $a68['ITALIC'],
24 => $a68['ITALIC'], 25 => $a68['ITALIC'], 26 => $a68['ITALIC'], 27 => $a68['ITALIC'],
28 => $a68['ITALIC'], 29 => $a68['ITALIC']
),
'COMMENTS' => array(
1 => $a68['COMMENT'], 2 => $a68['COMMENT'], 3 => $a68['COMMENT'], /* 4 => $a68['COMMENT'],
5 => $a68['COMMENT'],*/ 'MULTI' => $a68['COMMENT']
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #009900;'
),
'STRINGS' => array(
0 => 'color: #0000ff;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;',
),
'METHODS' => array(
0 => 'color: #004000;',
1 => 'color: #004000;'
),
'SYMBOLS' => array(
0 => 'color: #339933;',
1 => 'color: #339933;'
),
'REGEXPS' => array(
0 => 'color: #cc66cc;', # BITS #
1 => 'color: #cc66cc;', # REAL #
/* 2 => 'color: #cc66cc;', # INT # */
),
'SCRIPT' => array()
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => '',
# 9 => '',
10 => '',
11 => '',
12 => '',
# 13 => '',
14 => '',
15 => '',
16 => '',
17 => '',
18 => '',
19 => '',
20 => '',
21 => '',
22 => '',
23 => '',
24 => '',
25 => '',
26 => '',
27 => '',
28 => '',
29 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
0 => '→',
1 => 'OF'
),
'REGEXPS' => array(
0 => $a68['BITS'],
1 => $a68['REAL']
# 2 => $a68['INT'], # Breaks formatting for some reason #
# 2 => $GESHI_NUMBER_INT_BASIC # Also breaks formatting #
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array()
);
unset($a68);
?>

483
Sources/geshi/apache.php Normal file
View File

@ -0,0 +1,483 @@
<?php
/*************************************************************************************
* apache.php
* ----------
* Author: Tux (tux@inmail.cz)
* Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2004/29/07
*
* Apache language file for GeSHi.
* Words are from SciTe configuration file
*
* CHANGES
* -------
* 2008/17/06 (1.0.8)
* - Added support for apache configuration sections (milian)
* - Added missing php keywords (milian)
* - Added some more keywords
* - Disabled highlighting of brackets by default
* 2004/11/27 (1.0.2)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.1)
* - Added support for URLs
* 2004/08/05 (1.0.0)
* - First Release
*
* TODO (updated 2004/07/29)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Apache configuration',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
/*keywords*/
1 => array(
//core.c
'AcceptFilter','AcceptPathInfo','AccessConfig','AccessFileName',
'AddDefaultCharset','AddOutputFilterByType','AllowEncodedSlashes',
'AllowOverride','AuthName','AuthType','ContentDigest',
'CoreDumpDirectory','DefaultType','DocumentRoot','EnableMMAP',
'EnableSendfile','ErrorDocument','ErrorLog','FileETag','ForceType',
'HostnameLookups','Include','LimitInternalRecursion',
'LimitRequestBody','LimitRequestFields','LimitRequestFieldsize',
'LimitRequestLine','LimitXMLRequestBody','LogLevel','MaxMemFree',
'MaxRequestsPerChild','NameVirtualHost','Options','PidFile','Port',
'Protocol','Require','RLimitCPU','RLimitMEM','RLimitNPROC',
'Satisfy','ScoreBoardFile','ServerAdmin','ServerAlias','ServerName',
'ServerPath','ServerRoot','ServerSignature','ServerTokens',
'SetHandler','SetInputFilter','SetOutputFilter','ThreadStackSize',
'Timeout','TraceEnable','UseCanonicalName',
'UseCanonicalPhysicalPort',
//http_core.c
'KeepAlive','KeepAliveTimeout','MaxKeepAliveRequests',
//mod_actions.c
'Action','Script',
//mod_alias.c
'Alias','AliasMatch','Redirect','RedirectMatch','RedirectPermanent',
'RedirectTemp','ScriptAlias','ScriptAliasMatch',
//mod_asis.c
//mod_auth_basic.c
'AuthBasicAuthoritative','AuthBasicProvider',
//mod_auth_digest.c
'AuthDigestAlgorithm','AuthDigestDomain','AuthDigestNcCheck',
'AuthDigestNonceFormat','AuthDigestNonceLifetime',
'AuthDigestProvider','AuthDigestQop','AuthDigestShmemSize',
//mod_authn_alias.c
//mod_authn_anon.c
'Anonymous','Anonymous_LogEmail','Anonymous_MustGiveEmail',
'Anonymous_NoUserId','Anonymous_VerifyEmail',
//mod_authn_dbd.c
'AuthDBDUserPWQuery','AuthDBDUserRealmQuery',
//mod_authn_dbm.c
'AuthDBMType','AuthDBMUserFile',
//mod_authn_default.c
'AuthDefaultAuthoritative',
//mod_authn_file.c
'AuthUserFile',
//mod_authnz_ldap.c
'AuthLDAPBindDN','AuthLDAPBindPassword','AuthLDAPCharsetConfig',
'AuthLDAPCompareDNOnServer','AuthLDAPDereferenceAliases',
'AuthLDAPGroupAttribute','AuthLDAPGroupAttributeIsDN',
'AuthLDAPRemoteUserAttribute','AuthLDAPRemoteUserIsDN',
'AuthLDAPURL','AuthzLDAPAuthoritative',
//mod_authz_dbm.c
'AuthDBMGroupFile','AuthzDBMAuthoritative','AuthzDBMType',
//mod_authz_default.c
'AuthzDefaultAuthoritative',
//mod_authz_groupfile.c
'AuthGroupFile','AuthzGroupFileAuthoritative',
//mod_authz_host.c
'Allow','Deny','Order',
//mod_authz_owner.c
'AuthzOwnerAuthoritative',
//mod_authz_svn.c
'AuthzForceUsernameCase','AuthzSVNAccessFile','AuthzSVNAnonymous',
'AuthzSVNAuthoritative','AuthzSVNNoAuthWhenAnonymousAllowed',
//mod_authz_user.c
'AuthzUserAuthoritative',
//mod_autoindex.c
'AddAlt','AddAltByEncoding','AddAltByType','AddDescription',
'AddIcon','AddIconByEncoding','AddIconByType','DefaultIcon',
'FancyIndexing','HeaderName','IndexHeadInsert','IndexIgnore',
'IndexOptions','IndexOrderDefault','IndexStyleSheet','ReadmeName',
//mod_bt.c
'Tracker','TrackerDetailURL','TrackerFlags','TrackerHashMaxAge',
'TrackerHashMinAge','TrackerHashWatermark','TrackerHome',
'TrackerReturnInterval','TrackerReturnMax',
'TrackerReturnPeerFactor','TrackerReturnPeers','TrackerRootInclude',
'TrackerStyleSheet',
//mod_bw.c
'BandWidth','BandWidthError','BandWidthModule','BandWidthPacket',
'ForceBandWidthModule','LargeFileLimit','MaxConnection',
'MinBandWidth',
//mod_cache.c
'CacheDefaultExpire','CacheDisable','CacheEnable',
'CacheIgnoreCacheControl','CacheIgnoreHeaders',
'CacheIgnoreNoLastMod','CacheIgnoreQueryString',
'CacheLastModifiedFactor','CacheMaxExpire','CacheStoreNoStore',
'CacheStorePrivate',
//mod_cern_meta.c
'MetaDir','MetaFiles','MetaSuffix',
//mod_cgi.c
'ScriptLog','ScriptLogBuffer','ScriptLogLength',
//mod_charset_lite.c
'CharsetDefault','CharsetOptions','CharsetSourceEnc',
//mod_dav.c
'DAV','DAVDepthInfinity','DAVMinTimeout',
//mod_dav_fs.c
'DAVLockDB',
//mod_dav_lock.c
'DAVGenericLockDB',
//mod_dav_svn.c
'SVNActivitiesDB','SVNAllowBulkUpdates','SVNAutoversioning',
'SVNIndexXSLT','SVNListParentPath','SVNMasterURI','SVNParentPath',
'SVNPath','SVNPathAuthz','SVNReposName','SVNSpecialURI',
//mod_dbd.c
'DBDExptime','DBDKeep','DBDMax','DBDMin','DBDParams','DBDPersist',
'DBDPrepareSQL','DBDriver',
//mod_deflate.c
'DeflateBufferSize','DeflateCompressionLevel','DeflateFilterNote',
'DeflateMemLevel','DeflateWindowSize',
//mod_dir.c
'DirectoryIndex','DirectorySlash',
//mod_disk_cache.c
'CacheDirLength','CacheDirLevels','CacheMaxFileSize',
'CacheMinFileSize','CacheRoot',
//mod_dumpio.c
'DumpIOInput','DumpIOLogLevel','DumpIOOutput',
//mod_env.c
'PassEnv','SetEnv','UnsetEnv',
//mod_expires.c
'ExpiresActive','ExpiresByType','ExpiresDefault',
//mod_ext_filter.c
'ExtFilterDefine','ExtFilterOptions',
//mod_file_cache.c
'cachefile','mmapfile',
//mod_filter.c
'FilterChain','FilterDeclare','FilterProtocol','FilterProvider',
'FilterTrace',
//mod_gnutls.c
'GnuTLSCache','GnuTLSCacheTimeout','GnuTLSCertificateFile',
'GnuTLSKeyFile','GnuTLSPGPCertificateFile','GnuTLSPGPKeyFile',
'GnuTLSClientVerify','GnuTLSClientCAFile','GnuTLSPGPKeyringFile',
'GnuTLSEnable','GnuTLSDHFile','GnuTLSRSAFile','GnuTLSSRPPasswdFile',
'GnuTLSSRPPasswdConfFile','GnuTLSPriorities',
'GnuTLSExportCertificates',
//mod_headers.c
'Header','RequestHeader',
//mod_imagemap.c
'ImapBase','ImapDefault','ImapMenu',
//mod_include.c
'SSIAccessEnable','SSIEndTag','SSIErrorMsg','SSIStartTag',
'SSITimeFormat','SSIUndefinedEcho','XBitHack',
//mod_ident.c
'IdentityCheck','IdentityCheckTimeout',
//mod_info.c
'AddModuleInfo',
//mod_isapi.c
'ISAPIAppendLogToErrors','ISAPIAppendLogToQuery','ISAPICacheFile',
'ISAPIFakeAsync','ISAPILogNotSupported','ISAPIReadAheadBuffer',
//mod_log_config.c
'BufferedLogs','CookieLog','CustomLog','LogFormat','TransferLog',
//mod_log_forensic.c
'ForensicLog',
//mod_log_rotate.c
'RotateInterval','RotateLogs','RotateLogsLocalTime',
//mod_logio.c
//mod_mem_cache.c
'MCacheMaxObjectCount','MCacheMaxObjectSize',
'MCacheMaxStreamingBuffer','MCacheMinObjectSize',
'MCacheRemovalAlgorithm','MCacheSize',
//mod_mime.c
'AddCharset','AddEncoding','AddHandler','AddInputFilter',
'AddLanguage','AddOutputFilter','AddType','DefaultLanguage',
'ModMimeUsePathInfo','MultiviewsMatch','RemoveCharset',
'RemoveEncoding','RemoveHandler','RemoveInputFilter',
'RemoveLanguage','RemoveOutputFilter','RemoveType','TypesConfig',
//mod_mime_magic.c
'MimeMagicFile',
//mod_negotiation.c
'CacheNegotiatedDocs','ForceLanguagePriority','LanguagePriority',
//mod_php5.c
'php_admin_flag','php_admin_value','php_flag','php_value',
'PHPINIDir',
//mod_proxy.c
'AllowCONNECT','BalancerMember','NoProxy','ProxyBadHeader',
'ProxyBlock','ProxyDomain','ProxyErrorOverride',
'ProxyFtpDirCharset','ProxyIOBufferSize','ProxyMaxForwards',
'ProxyPass','ProxyPassInterpolateEnv','ProxyPassMatch',
'ProxyPassReverse','ProxyPassReverseCookieDomain',
'ProxyPassReverseCookiePath','ProxyPreserveHost',
'ProxyReceiveBufferSize','ProxyRemote','ProxyRemoteMatch',
'ProxyRequests','ProxySet','ProxyStatus','ProxyTimeout','ProxyVia',
//mod_proxy_ajp.c
//mod_proxy_balancer.c
//mod_proxy_connect.c
//mod_proxy_ftp.c
//mod_proxy_http.c
//mod_rewrite.c
'RewriteBase','RewriteCond','RewriteEngine','RewriteLock',
'RewriteLog','RewriteLogLevel','RewriteMap','RewriteOptions',
'RewriteRule',
//mod_setenvif.c
'BrowserMatch','BrowserMatchNoCase','SetEnvIf','SetEnvIfNoCase',
//mod_so.c
'LoadFile','LoadModule',
//mod_speling.c
'CheckCaseOnly','CheckSpelling',
//mod_ssl.c
'SSLCACertificateFile','SSLCACertificatePath','SSLCADNRequestFile',
'SSLCADNRequestPath','SSLCARevocationFile','SSLCARevocationPath',
'SSLCertificateChainFile','SSLCertificateFile',
'SSLCertificateKeyFile','SSLCipherSuite','SSLCryptoDevice',
'SSLEngine','SSLHonorCipherOrder','SSLMutex','SSLOptions',
'SSLPassPhraseDialog','SSLProtocol','SSLProxyCACertificateFile',
'SSLProxyCACertificatePath','SSLProxyCARevocationFile',
'SSLProxyCARevocationPath','SSLProxyCipherSuite','SSLProxyEngine',
'SSLProxyMachineCertificateFile','SSLProxyMachineCertificatePath',
'SSLProxyProtocol','SSLProxyVerify','SSLProxyVerifyDepth',
'SSLRandomSeed','SSLRenegBufferSize','SSLRequire','SSLRequireSSL',
'SSLSessionCache','SSLSessionCacheTimeout','SSLUserName',
'SSLVerifyClient','SSLVerifyDepth',
//mod_status.c
'ExtendedStatus','SeeRequestTail',
//mod_substitute.c
'Substitute',
//mod_suexec.c
'SuexecUserGroup',
//mod_unique_id.c
//mod_upload_progress
'ReportUploads', 'TrackUploads', 'UploadProgressSharedMemorySize',
//mod_userdir.c
'UserDir',
//mod_usertrack.c
'CookieDomain','CookieExpires','CookieName','CookieStyle',
'CookieTracking',
//mod_version.c
//mod_vhost_alias.c
'VirtualDocumentRoot','VirtualDocumentRootIP',
'VirtualScriptAlias','VirtualScriptAliasIP',
//mod_view.c
'ViewEnable',
//mod_win32.c
'ScriptInterpreterSource',
//mpm_winnt.c
'Listen','ListenBacklog','ReceiveBufferSize','SendBufferSize',
'ThreadLimit','ThreadsPerChild','Win32DisableAcceptEx',
//mpm_common.c
'AcceptMutex','AddModule','ClearModuleList','EnableExceptionHook',
'Group','LockFile','MaxClients','MaxSpareServers','MaxSpareThreads',
'MinSpareServers','MinSpareThreads','ServerLimit','StartServers',
'StartThreads','User',
//util_ldap.c
'LDAPCacheEntries','LDAPCacheTTL','LDAPConnectionTimeout',
'LDAPOpCacheEntries','LDAPOpCacheTTL','LDAPSharedCacheFile',
'LDAPSharedCacheSize','LDAPTrustedClientCert',
'LDAPTrustedGlobalCert','LDAPTrustedMode','LDAPVerifyServerCert',
//Unknown Mods ...
'AgentLog','BindAddress','bs2000account','CacheForceCompletion',
'CacheGCInterval','CacheSize','NoCache','qsc','RefererIgnore',
'RefererLog','Resourceconfig','ServerType','SingleListen'
),
/*keywords 2*/
2 => array(
'all','on','off','standalone','inetd','indexes',
'force-response-1.0','downgrade-1.0','nokeepalive',
'includes','followsymlinks','none',
'x-compress','x-gzip'
),
/*keywords 3*/
3 => array(
//core.c
'Directory','DirectoryMatch','Files','FilesMatch','IfDefine',
'IfModule','Limit','LimitExcept','Location','LocationMatch',
'VirtualHost',
//mod_authn_alias.c
'AuthnProviderAlias',
//mod_proxy.c
'Proxy','ProxyMatch',
//mod_version.c
'IfVersion'
)
),
'SYMBOLS' => array(
'+', '-'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00007f;',
2 => 'color: #0000ff;',
3 => 'color: #000000; font-weight:bold;',
),
'COMMENTS' => array(
1 => 'color: #adadad; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #339933;'
),
'STRINGS' => array(
0 => 'color: #7f007f;'
),
'NUMBERS' => array(
0 => 'color: #ff0000;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #008000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'BRACKETS' => GESHI_NEVER,
'SYMBOLS' => GESHI_NEVER
),
'KEYWORDS' => array(
3 => array(
'DISALLOWED_BEFORE' => '(?<=&lt;|&lt;\/)',
'DISALLOWED_AFTER' => '(?=\s|\/|&gt;)',
)
)
)
);
?>

View File

@ -0,0 +1,157 @@
<?php
/*************************************************************************************
* applescript.php
* --------
* Author: Stephan Klimek (http://www.initware.org)
* Copyright: Stephan Klimek (http://www.initware.org)
* Release Version: 1.0.8.11
* Date Started: 2005/07/20
*
* AppleScript language file for GeSHi.
*
* CHANGES
* -------
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
*
* TODO
* -------------------------
* URL settings to references
*
**************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'AppleScript',
'COMMENT_SINGLE' => array(1 => '--'),
'COMMENT_MULTI' => array( '(*' => '*)'),
'COMMENT_REGEXP' => array(
2 => '/(?<=[a-z])\'/i',
3 => '/(?<![a-z])\'.*?\'/i',
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'application','close','count','delete','duplicate','exists','launch','make','move','open',
'print','quit','reopen','run','save','saving', 'idle', 'path to', 'number', 'alias', 'list', 'text', 'string',
'integer', 'it','me','version','pi','result','space','tab','anything','case','diacriticals','expansion',
'hyphens','punctuation','bold','condensed','expanded','hidden','italic','outline','plain',
'shadow','strikethrough','subscript','superscript','underline','ask','no','yes','false', 'id',
'true','weekday','monday','mon','tuesday','tue','wednesday','wed','thursday','thu','friday',
'fri','saturday','sat','sunday','sun','month','january','jan','february','feb','march',
'mar','april','apr','may','june','jun','july','jul','august','aug','september', 'quote', 'do JavaScript',
'sep','october','oct','november','nov','december','dec','minutes','hours', 'name', 'default answer',
'days','weeks', 'folder', 'folders', 'file', 'files', 'window', 'eject', 'disk', 'reveal', 'sleep',
'shut down', 'restart', 'display dialog', 'buttons', 'invisibles', 'item', 'items', 'delimiters', 'offset of',
'AppleScript\'s', 'choose file', 'choose folder', 'choose from list', 'beep', 'contents', 'do shell script',
'paragraph', 'paragraphs', 'missing value', 'quoted form', 'desktop', 'POSIX path', 'POSIX file',
'activate', 'document', 'adding', 'receiving', 'content', 'new', 'properties', 'info for', 'bounds',
'selection', 'extension', 'into', 'onto', 'by', 'between', 'against', 'set the clipboard to', 'the clipboard'
),
2 => array(
'each','some','every','whose','where','index','first','second','third','fourth',
'fifth','sixth','seventh','eighth','ninth','tenth','last','front','back','st','nd',
'rd','th','middle','named','through','thru','before','after','beginning','the', 'as',
'div','mod','and','not','or','contains','equal','equals','isnt', 'less', 'greater'
),
3 => array(
'script','property','prop','end','to','set','global','local','on','of',
'in','given','with','without','return','continue','tell','if','then','else','repeat',
'times','while','until','from','exit','try','error','considering','ignoring','timeout',
'transaction','my','get','put','is', 'copy'
)
),
'SYMBOLS' => array(
')','+','-','^','*','/','&','<','>=','<','<=','=','<27>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0066ff;',
2 => 'color: #ff0033;',
3 => 'color: #ff0033; font-weight: bold;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => '',
3 => 'color: #ff0000;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000000; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #009900;'
),
'NUMBERS' => array(
0 => 'color: #000000;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #000000;'
),
'REGEXPS' => array(
0 => 'color: #339933;',
4 => 'color: #0066ff;',
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => ',+-=&lt;&gt;/?^&amp;*'
),
'REGEXPS' => array(
//Variables
0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*',
//File descriptors
4 => '&lt;[a-zA-Z_][a-zA-Z0-9_]*&gt;',
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'SPACE_AS_WHITESPACE' => true
)
)
);
?>

View File

@ -0,0 +1,148 @@
<?php
/*************************************************************************************
* apt_sources.php
* ----------
* Author: Milian Wolff (mail@milianw.de)
* Copyright: (c) 2008 Milian Wolff (http://milianw.de)
* Release Version: 1.0.8.11
* Date Started: 2008/06/17
*
* Apt sources.list language file for GeSHi.
*
* CHANGES
* -------
* 2008/06/17 (1.0.8)
* - Initial import
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Apt sources',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
/*keywords*/
1 => array(
'deb-src', 'deb'
),
2 => array(
//Generic
'stable', 'old-stable', 'testing', 'testing-proposed-updates',
'unstable', 'unstable-proposed-updates', 'experimental',
'non-US', 'security', 'volatile', 'volatile-sloppy',
'apt-build',
'stable/updates',
//Debian
'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato', 'woody', 'sarge',
'etch', 'lenny', 'wheezy', 'sid',
//Ubuntu
'warty', 'warty-updates', 'warty-security', 'warty-proposed', 'warty-backports',
'hoary', 'hoary-updates', 'hoary-security', 'hoary-proposed', 'hoary-backports',
'breezy', 'breezy-updates', 'breezy-security', 'breezy-proposed', 'breezy-backports',
'dapper', 'dapper-updates', 'dapper-security', 'dapper-proposed', 'dapper-backports',
'edgy', 'edgy-updates', 'edgy-security', 'edgy-proposed', 'edgy-backports',
'feisty', 'feisty-updates', 'feisty-security', 'feisty-proposed', 'feisty-backports',
'gutsy', 'gutsy-updates', 'gutsy-security', 'gutsy-proposed', 'gutsy-backports',
'hardy', 'hardy-updates', 'hardy-security', 'hardy-proposed', 'hardy-backports',
'intrepid', 'intrepid-updates', 'intrepid-security', 'intrepid-proposed', 'intrepid-backports',
'jaunty', 'jaunty-updates', 'jaunty-security', 'jaunty-proposed', 'jaunty-backports',
'karmic', 'karmic-updates', 'karmic-security', 'karmic-proposed', 'karmic-backports',
'lucid', 'lucid-updates', 'lucid-security', 'lucid-proposed', 'lucid-backports',
'maverick', 'maverick-updates', 'maverick-security', 'maverick-proposed', 'maverick-backports'
),
3 => array(
'main', 'restricted', 'preview', 'contrib', 'non-free',
'commercial', 'universe', 'multiverse'
)
),
'REGEXPS' => array(
0 => "(((http|ftp):\/\/|file:\/)[^\s]+)|(cdrom:\[[^\]]*\][^\s]*)",
),
'SYMBOLS' => array(
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => true,
3 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00007f;',
2 => 'color: #b1b100;',
3 => 'color: #b16000;'
),
'COMMENTS' => array(
1 => 'color: #adadad; font-style: italic;',
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
),
'STRINGS' => array(
),
'NUMBERS' => array(
),
'METHODS' => array(
),
'SYMBOLS' => array(
),
'REGEXPS' => array(
0 => 'color: #009900;',
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'NUMBERS' => GESHI_NEVER,
'METHODS' => GESHI_NEVER,
'SCRIPT' => GESHI_NEVER,
'SYMBOLS' => GESHI_NEVER,
'ESCAPE_CHAR' => GESHI_NEVER,
'BRACKETS' => GESHI_NEVER,
'STRINGS' => GESHI_NEVER,
),
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => '(?<![a-zA-Z0-9\$_\|\#;>|^\/])',
'DISALLOWED_AFTER' => '(?![a-zA-Z0-9_\|%\\-&\.])'
)
),
'TAB_WIDTH' => 4
);
?>

3318
Sources/geshi/arm.php Normal file

File diff suppressed because it is too large Load Diff

603
Sources/geshi/asm.php Normal file
View File

@ -0,0 +1,603 @@
<?php
/*************************************************************************************
* asm.php
* -------
* Author: Tux (tux@inmail.cz)
* Copyright: (c) 2004 Tux (http://tux.a4.cz/),
* 2004-2009 Nigel McNie (http://qbnz.com/highlighter),
* 2009-2011 Benny Baumann (http://qbnz.com/highlighter),
* 2011 Dennis Yurichev (dennis@conus.info),
* 2011 Marat Dukhan (mdukhan3.at.gatech.dot.edu)
* Release Version: 1.0.8.11
* Date Started: 2004/07/27
*
* x86 Assembler language file for GeSHi.
* Based on the following documents:
* - "Intel64 and IA-32 Architectures Programmer's Reference Manual
* Volume 2 (2A & 2B): Instructions Set Reference, A-Z",
* Order Number 25383-039US, May 2011
* - "Intel Advanced Vector Extensions Programming Reference",
* Order Number 319433-011, June 2011
* - "AMD64 Architecture Programmer's Manual Volume 3:
* General-Purpose and System Instructions", Publication No. 24594,
* Revision 3.15, November 2009
* - "AMD64 Architecture Programmer's Manual Volume 4:
* 128-Bit and 256-Bit Media Instructions", Publication No. 26568,
* Revision 3.12, May 2011
* - "AMD64 Architecture Programmer's Manual Volume 5:
* 64-Bit Media and x87 Floating-Point Instructions",
* Publication No. 26569, Revision 3.11, December 2009
* - "AMD64 Technology Lightweight Profiling Specification",
* Publication No. 43724, Revision 3.08, August 2010
* - "Application Note 108: Cyrix Extended MMX Instruction Set"
* - "VIA Padlock Programming Guide", 3rd May 2005
* - http://en.wikipedia.org/wiki/X86_instruction_listings
* - NASM 2.10rc8 Online Documenation at
* http://www.nasm.us/xdoc/2.10rc8/html/nasmdoc0.html
* Color scheme is taken from SciTE. Previous versions of this file
* also used words from SciTE configuration file (based on NASM syntax)
*
* CHANGES
* -------
* 2011/10/07
* - Rearranged instructions and registers into groups
* - Updated to support the following extensions
* - CMOV, BMI1, BMI2, TBM, FSGSBASE
* - LZCNT, TZCNT, POPCNT, MOVBE, CRC32
* - MMX, MMX+, EMMX
* - 3dnow!, 3dnow!+, 3dnow! Geode, 3dnow! Prefetch
* - SSE, SSE2, SSE3, SSSE3, SSE4A, SSE4.1, SSE4.2
* - AVX, AVX2, XOP, FMA3, FMA4, CVT16
* - VMX, SVM
* - AES, PCLMULQDQ, Padlock, RDRAND
* - Updated NASM macros and directives
* 2010/07/01 (1.0.8.11)
* - Added MMX/SSE/new x86-64 registers, MMX/SSE (up to 4.2) instructions
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
* 2004/11/27 (1.0.2)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.1)
* - Added support for URLs
* - Added binary and hexadecimal regexps
* 2004/08/05 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ASM',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
//Line address prefix suppression
'COMMENT_REGEXP' => array(2 => "/^(?:[0-9a-f]{0,4}:)?[0-9a-f]{4}(?:[0-9a-f]{4})?/mi"),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/* General-Purpose */
1 => array(
/* BCD instructions */
'aaa','aad','aam','aas','daa','das',
/* Control flow instructions */
'ja','jae','jb','jbe','jc','je','jg','jge','jl','jle','jmp','jna',
'jnae','jnb','jnbe','jnc','jne','jng','jnge','jnl','jnle','jno','jnp','jns','jnz',
'jo','jp','jpe','jpo','js','jz','jcxz','jecxz','jrcxz','loop','loope','loopne',
'call','ret','enter','leave','syscall','sysenter','int','into',
/* Predicate instructions */
'seta','setae','setb','setbe','setc','sete','setg','setge','setl','setle','setna',
'setnae','setnb','setnbe','setnc','setne','setng','setnge','setnl','setnle','setno',
'setnp','setns','setnz','seto','setp','setpe','setpo','sets','setz','salc',
/* Conditional move instructions */
'cmovo','cmovno','cmovb','cmovc','cmovnae','cmovae','cmovnb','cmovnc','cmove','cmovz',
'cmovne','cmovnz','cmovbe','cmovna','cmova','cmovnbe','cmovs','cmovns','cmovp','cmovpe',
'cmovnp','cmovpo','cmovl','cmovnge','cmovge','cmovnl','cmovle','cmovng','cmovg','cmovnle',
/* ALU instructions */
'add','sub','adc','sbb','neg','cmp','inc','dec','and','or','xor','not','test',
'shl','shr','sal','sar','shld','shrd','rol','ror','rcl','rcr',
'cbw','cwd','cwde','cdq','cdqe','cqo','bsf','bsr','bt','btc','btr','bts',
'idiv','imul','div','mul','bswap','nop',
/* Memory instructions */
'lea','mov','movsx','movsxd','movzx','xlatb','bound','xchg','xadd','cmpxchg','cmpxchg8b','cmpxchg16b',
/* Stack instructions */
'push','pop','pusha','popa','pushad','popad','pushf','popf','pushfd','popfd','pushfq','popfq',
/* EFLAGS manipulations instructions */
'clc','cld','stc','std','cmc','lahf','sahf',
/* Prefix instructions */
'lock','rep','repe','repz','repne','repnz',
/* String instructions */
'cmps','cmpsb','cmpsw',/*'cmpsd',*/ 'cmpsq', /*CMPSD conflicts with the SSE2 instructions of the same name*/
'movs','movsb','movsw',/*'movsd',*/ 'movsq', /*MOVSD conflicts with the SSE2 instructions of the same name*/
'scas','scasb','scasw','scasd','scasq',
'stos','stosb','stosw','stosd','stosq',
'lods','lodsb','lodsw','lodsd','lodsq',
/* Information instructions */
'cpuid','rdtsc','rdtscp','rdpmc','xgetbv',
'sgdt','sidt','sldt','smsw','str','lar',
/* LWP instructions */
'llwpcb','slwpcb','lwpval','lwpins',
/* Instructions from miscellaneous extensions */
'crc32','popcnt','lzcnt','tzcnt','movbe','pclmulqdq','rdrand',
/* FSGSBASE instructions */
'rdfsbase','rdgsbase','wrfsbase','wrgsbase',
/* BMI1 instructions */
'andn','bextr','blsi','blsmk','blsr',
/* BMI2 instructions */
'bzhi','mulx','pdep','pext','rorx','sarx','shlx','shrx',
/* TBM instructions */
'blcfill','blci','blcic','blcmsk','blcs','blsfill','blsic','t1mskc','tzmsk',
/* Legacy instructions */
'arpl','ud2','lds','les','lfs','lgs','lss','lsl','verr','verw',
/* Privileged instructions */
'cli','sti','clts','hlt','rsm','in','insb','insw','insd',
'out','outsb','outsw','outsd','clflush','invd','invlpg','invpcid','wbinvd',
'iret','iretd','iretq','sysexit','sysret','lidt','lgdt','lldt','lmsw','ltr',
'monitor','mwait','rdmsr','wrmsr','swapgs',
'fxsave','fxsave64','fxrstor','fxrstor64',
'xsave','xsaveopt','xrstor','xsetbv','getsec',
/* VMX instructions */
'invept','invvpid','vmcall','vmclear','vmlaunch','vmresume',
'vmptrld','vmptrst','vmread','vmwrite','vmxoff','vmxon',
/* SVM (AMD-V) instructions */
'invlpga','skinit','clgi','stgi','vmload','vmsave','vmmcall','vmrun'
),
/*FPU*/
2 => array(
'f2xm1','fabs','fadd','faddp','fbld','fbstp','fchs','fclex','fcom','fcomp','fcompp','fdecstp',
'fdisi','fdiv','fdivp','fdivr','fdivrp','feni','ffree','fiadd','ficom','ficomp','fidiv',
'fidivr','fild','fimul','fincstp','finit','fist','fistp','fisub','fisubr','fld','fld1',
'fldcw','fldenv','fldenvw','fldl2e','fldl2t','fldlg2','fldln2','fldpi','fldz','fmul',
'fmulp','fnclex','fndisi','fneni','fninit','fnop','fnsave','fnsavew','fnstcw','fnstenv',
'fnstenvw','fnstsw','fpatan','fprem','fptan','frndint','frstor','frstorw','fsave',
'fsavew','fscale','fsqrt','fst','fstcw','fstenv','fstenvw','fstp','fstsw','fsub','fsubp',
'fsubr','fsubrp','ftst','fwait','fxam','fxch','fxtract','fyl2x','fyl2xp1',
'fsetpm','fcos','fldenvd','fnsaved','fnstenvd','fprem1','frstord','fsaved','fsin','fsincos',
'fstenvd','fucom','fucomp','fucompp','ffreep',
/* FCMOV instructions */
'fcomi','fcomip','fucomi','fucomip',
'fcmovb','fcmove','fcmovbe','fcmovu','fcmovnb','fcmovne','fcmovnbe','fcmovnu',
/* SSE3 instructions */
'fisttp'
),
/*SIMD*/
3 => array(
/* MMX instructions */
'movd','movq',
'paddb','paddw','paddd','paddsb','paddsw','paddusb','paddusw',
'psubb','psubw','psubd','psubsb','psubsw','psubusb','psubusw',
'pand','pandn','por','pxor',
'pcmpeqb','pcmpeqd','pcmpeqw','pcmpgtb','pcmpgtd','pcmpgtw',
'pmaddwd','pmulhw','pmullw',
'psllw','pslld','psllq','psrlw','psrld','psrlq','psraw','psrad',
'packuswb','packsswb','packssdw',
'punpcklbw','punpcklwd','punpckldq','punpckhbw','punpckhwd','punpckhdq',
'emms',
/* MMX+ instructions */
'pavgb','pavgw',
'pextrw','pinsrw','pmovmskb',
'pmaxsw','pmaxub','pminsw','pminub',
'pmulhuw','psadbw','pshufw',
'prefetchnta','prefetcht0','prefetcht1','prefetcht2',
'maskmovq','movntq','sfence',
/* EMMX instructions (only available on Cyrix MediaGXm) */
'paddsiw','psubsiw',
/*'pmulhrw',*/'pmachriw','pmulhriw', /* PMULHRW conflicts with the 3dnow! instruction of the same name */
'pmagw','pdistib','paveb',
'pmvzb','pmvnzb','pmvlzb','pmvgezb',
/* 3dnow! instructions! */
'pfacc','pfadd','pfsub','pfsubr','pfmul',
'pfcmpeq','pfcmpge','pfcmpgt',
'pfmax','pfmin',
'pfrcp','pfrcpit1','pfrcpit2','pfrsqit1','pfrsqrt',
'pi2fd','pf2id',
'pavgusb','pmulhrw',
'femms',
/* 3dnow!+ instructions */
'pfnacc','pfpnacc','pi2fw','pf2iw','pswapd',
/* 3dnow! Geode instructions */
'pfrsqrtv','pfrcpv',
/* 3dnow! Prefetch instructions */
'prefetch','prefetchw',
/* SSE instructions */
'addss','addps','subss','subps',
'mulss','mulps','divss','divps','sqrtss','sqrtps',
'rcpss','rcpps','rsqrtss','rsqrtps',
'maxss','maxps','minss','minps',
'cmpss','comiss','ucomiss','cmpps',
'cmpeqss','cmpltss','cmpless','cmpunordss','cmpneqss','cmpnltss','cmpnless','cmpordss',
'cmpeqps','cmpltps','cmpleps','cmpunordps','cmpneqps','cmpnltps','cmpnleps','cmpordps',
'andnps','andps','orps','xorps',
'cvtsi2ss','cvtss2si','cvttss2si',
'cvtpi2ps','cvtps2pi','cvttps2pi',
'movss','movlps','movhps','movlhps','movhlps','movaps','movups','movntps','movmskps',
'shufps','unpckhps','unpcklps',
'ldmxcsr','stmxcsr',
/* SSE2 instructions */
'addpd','addsd','subpd','subsd',
'mulsd','mulpd','divsd','divpd','sqrtsd','sqrtpd',
'maxsd','maxpd','minsd','minpd',
'cmpsd','comisd','ucomisd','cmppd',
'cmpeqsd','cmpltsd','cmplesd','cmpunordsd','cmpneqsd','cmpnltsd','cmpnlesd','cmpordsd',
'cmpeqpd','cmpltpd','cmplepd','cmpunordpd','cmpneqpd','cmpnltpd','cmpnlepd','cmpordpd',
'andnpd','andpd','orpd','xorpd',
'cvtsd2ss','cvtpd2ps','cvtss2sd','cvtps2pd',
'cvtdq2ps','cvtps2dq','cvttps2dq',
'cvtdq2pd','cvtpd2dq','cvttpd2dq',
'cvtsi2sd','cvtsd2si','cvttsd2si',
'cvtpi2pd','cvtpd2pi','cvttpd2pi',
'movsd','movlpd','movhpd','movapd','movupd','movntpd','movmskpd',
'shufpd','unpckhpd','unpcklpd',
'movnti','movdqa','movdqu','movntdq','maskmovdqu',
'movdq2q','movq2dq',
'paddq','psubq','pmuludq',
'pslldq','psrldq',
'punpcklqdq','punpckhqdq',
'pshufhw','pshuflw','pshufd',
'lfence','mfence',
/* SSE3 instructions */
'addsubps','addsubpd',
'haddps','haddpd','hsubps','hsubpd',
'movsldup','movshdup','movddup',
'lddqu',
/* SSSE3 instructions */
'psignb','psignw','psignd',
'pabsb','pabsw','pabsd',
'palignr','pshufb',
'pmulhrsw','pmaddubsw',
'phaddw','phaddd','phaddsw',
'phsubw','phsubd','phsubsw',
/* SSE4A instructions */
'extrq','insertq','movntsd','movntss',
/* SSE4.1 instructions */
'mpsadbw','phminposuw',
'pmuldq','pmulld',
'dpps','dppd',
'blendps','blendpd','blendvps','blendvpd','pblendvb','pblendw',
'pmaxsb','pmaxuw','pmaxsd','pmaxud','pminsb','pminuw','pminsd','pminud',
'roundps','roundss','roundpd','roundsd',
'insertps','pinsrb','pinsrd','pinsrq',
'extractps','pextrb','pextrd','pextrq',
'pmovsxbw','pmovsxbd','pmovsxbq','pmovsxwd','pmovsxwq','pmovsxdq',
'pmovzxbw','pmovzxbd','pmovzxbq','pmovzxwd','pmovzxwq','pmovzxdq',
'ptest',
'pcmpeqq',
'packusdw',
'movntdqa',
/* SSE4.2 instructions */
'pcmpgtq',
'pcmpestri','pcmpestrm','pcmpistri','pcmpistrm',
/* AES instructions */
'aesenc','aesenclast','aesdec','aesdeclast','aeskeygenassist','aesimc',
/* VIA Padlock instructions */
'xcryptcbc','xcryptcfb','xcryptctr','xcryptecb','xcryptofb',
'xsha1','xsha256','montmul','xstore',
/* AVX instructions */
'vaddss','vaddps','vaddsd','vaddpd','vsubss','vsubps','vsubsd','vsubpd',
'vaddsubps','vaddsubpd',
'vhaddps','vhaddpd','vhsubps','vhsubpd',
'vmulss','vmulps','vmulsd','vmulpd',
'vmaxss','vmaxps','vmaxsd','vmaxpd','vminss','vminps','vminsd','vminpd',
'vandps','vandpd','vandnps','vandnpd','vorps','vorpd','vxorps','vxorpd',
'vblendps','vblendpd','vblendvps','vblendvpd',
'vcmpss','vcomiss','vucomiss','vcmpsd','vcomisd','vucomisd','vcmpps','vcmppd',
'vcmpeqss','vcmpltss','vcmpless','vcmpunordss','vcmpneqss','vcmpnltss','vcmpnless','vcmpordss',
'vcmpeq_uqss','vcmpngess','vcmpngtss','vcmpfalsess','vcmpneq_oqss','vcmpgess','vcmpgtss','vcmptruess',
'vcmpeq_osss','vcmplt_oqss','vcmple_oqss','vcmpunord_sss','vcmpneq_usss','vcmpnlt_uqss','vcmpnle_uqss','vcmpord_sss',
'vcmpeq_usss','vcmpnge_uqss','vcmpngt_uqss','vcmpfalse_osss','vcmpneq_osss','vcmpge_oqss','vcmpgt_oqss','vcmptrue_usss',
'vcmpeqps','vcmpltps','vcmpleps','vcmpunordps','vcmpneqps','vcmpnltps','vcmpnleps','vcmpordps',
'vcmpeq_uqps','vcmpngeps','vcmpngtps','vcmpfalseps','vcmpneq_oqps','vcmpgeps','vcmpgtps','vcmptrueps',
'vcmpeq_osps','vcmplt_oqps','vcmple_oqps','vcmpunord_sps','vcmpneq_usps','vcmpnlt_uqps','vcmpnle_uqps','vcmpord_sps',
'vcmpeq_usps','vcmpnge_uqps','vcmpngt_uqps','vcmpfalse_osps','vcmpneq_osps','vcmpge_oqps','vcmpgt_oqps','vcmptrue_usps',
'vcmpeqsd','vcmpltsd','vcmplesd','vcmpunordsd','vcmpneqsd','vcmpnltsd','vcmpnlesd','vcmpordsd',
'vcmpeq_uqsd','vcmpngesd','vcmpngtsd','vcmpfalsesd','vcmpneq_oqsd','vcmpgesd','vcmpgtsd','vcmptruesd',
'vcmpeq_ossd','vcmplt_oqsd','vcmple_oqsd','vcmpunord_ssd','vcmpneq_ussd','vcmpnlt_uqsd','vcmpnle_uqsd','vcmpord_ssd',
'vcmpeq_ussd','vcmpnge_uqsd','vcmpngt_uqsd','vcmpfalse_ossd','vcmpneq_ossd','vcmpge_oqsd','vcmpgt_oqsd','vcmptrue_ussd',
'vcmpeqpd','vcmpltpd','vcmplepd','vcmpunordpd','vcmpneqpd','vcmpnltpd','vcmpnlepd','vcmpordpd',
'vcmpeq_uqpd','vcmpngepd','vcmpngtpd','vcmpfalsepd','vcmpneq_oqpd','vcmpgepd','vcmpgtpd','vcmptruepd',
'vcmpeq_ospd','vcmplt_oqpd','vcmple_oqpd','vcmpunord_spd','vcmpneq_uspd','vcmpnlt_uqpd','vcmpnle_uqpd','vcmpord_spd',
'vcmpeq_uspd','vcmpnge_uqpd','vcmpngt_uqpd','vcmpfalse_ospd','vcmpneq_ospd','vcmpge_oqpd','vcmpgt_oqpd','vcmptrue_uspd',
'vcvtsd2ss','vcvtpd2ps','vcvtss2sd','vcvtps2pd',
'vcvtsi2ss','vcvtss2si','vcvttss2si',
'vcvtpi2ps','vcvtps2pi','vcvttps2pi',
'vcvtdq2ps','vcvtps2dq','vcvttps2dq',
'vcvtdq2pd','vcvtpd2dq','vcvttpd2dq',
'vcvtsi2sd','vcvtsd2si','vcvttsd2si',
'vcvtpi2pd','vcvtpd2pi','vcvttpd2pi',
'vdivss','vdivps','vdivsd','vdivpd','vsqrtss','vsqrtps','vsqrtsd','vsqrtpd',
'vdpps','vdppd',
'vmaskmovps','vmaskmovpd',
'vmovss','vmovsd','vmovaps','vmovapd','vmovups','vmovupd','vmovntps','vmovntpd',
'vmovhlps','vmovlhps','vmovlps','vmovlpd','vmovhps','vmovhpd',
'vmovsldup','vmovshdup','vmovddup',
'vmovmskps','vmovmskpd',
'vroundss','vroundps','vroundsd','vroundpd',
'vrcpss','vrcpps','vrsqrtss','vrsqrtps',
'vunpcklps','vunpckhps','vunpcklpd','vunpckhpd',
'vbroadcastss','vbroadcastsd','vbroadcastf128',
'vextractps','vinsertps','vextractf128','vinsertf128',
'vshufps','vshufpd','vpermilps','vpermilpd','vperm2f128',
'vtestps','vtestpd',
'vpaddb','vpaddusb','vpaddsb','vpaddw','vpaddusw','vpaddsw','vpaddd','vpaddq',
'vpsubb','vpsubusb','vpsubsb','vpsubw','vpsubusw','vpsubsw','vpsubd','vpsubq',
'vphaddw','vphaddsw','vphaddd','vphsubw','vphsubsw','vphsubd',
'vpsllw','vpslld','vpsllq','vpsrlw','vpsrld','vpsrlq','vpsraw','vpsrad',
'vpand','vpandn','vpor','vpxor',
'vpblendwb','vpblendw',
'vpsignb','vpsignw','vpsignd',
'vpavgb','vpavgw',
'vpabsb','vpabsw','vpabsd',
'vmovd','vmovq','vmovdqa','vmovdqu','vlddqu','vmovntdq','vmovntdqa','vmaskmovdqu',
'vpmovsxbw','vpmovsxbd','vpmovsxbq','vpmovsxwd','vpmovsxwq','vpmovsxdq',
'vpmovzxbw','vpmovzxbd','vpmovzxbq','vpmovzxwd','vpmovzxwq','vpmovzxdq',
'vpackuswb','vpacksswb','vpackusdw','vpackssdw',
'vpcmpeqb','vpcmpeqw','vpcmpeqd','vpcmpeqq','vpcmpgtb','vpcmpgtw','vpcmpgtd','vpcmpgtq',
'vpmaddubsw','vpmaddwd',
'vpmullw','vpmulhuw','vpmulhw','vpmulhrsw','vpmulld','vpmuludq','vpmuldq',
'vpmaxub','vpmaxsb','vpmaxuw','vpmaxsw','vpmaxud','vpmaxsd',
'vpminub','vpminsb','vpminuw','vpminsw','vpminud','vpminsd',
'vpmovmskb','vptest',
'vpunpcklbw','vpunpcklwd','vpunpckldq','vpunpcklqdq',
'vpunpckhbw','vpunpckhwd','vpunpckhdq','vpunpckhqdq',
'vpslldq','vpsrldq','vpalignr',
'vpshufb','vpshuflw','vpshufhw','vpshufd',
'vpextrb','vpextrw','vpextrd','vpextrq','vpinsrb','vpinsrw','vpinsrd','vpinsrq',
'vpsadbw','vmpsadbw','vphminposuw',
'vpcmpestri','vpcmpestrm','vpcmpistri','vpcmpistrm',
'vpclmulqdq','vaesenc','vaesenclast','vaesdec','vaesdeclast','vaeskeygenassist','vaesimc',
'vldmxcsr','vstmxcsr','vzeroall','vzeroupper',
/* AVX2 instructions */
'vbroadcasti128','vpbroadcastb','vpbroadcastw','vpbroadcastd','vpbroadcastq',
'vpblendd',
'vpermd','vpermq','vperm2i128',
'vextracti128','vinserti128',
'vpmaskmovd','vpmaskmovq',
'vpsllvd','vpsllvq','vpsravd','vpsrlvd',
'vpgatherdd','vpgatherqd','vgatherdq','vgatherqq',
'vpermps','vpermpd',
'vgatherdpd','vgatherqpd','vgatherdps','vgatherqps',
/* XOP instructions */
'vfrczss','vfrczps','vfrczsd','vfrczpd',
'vpermil2ps','vperlil2pd',
'vpcomub','vpcomb','vpcomuw','vpcomw','vpcomud','vpcomd','vpcomuq','vpcomq',
'vphaddubw','vphaddbw','vphaddubd','vphaddbd','vphaddubq','vphaddbq',
'vphadduwd','vphaddwd','vphadduwq','vphaddwq','vphaddudq','vphadddq',
'vphsubbw','vphsubwd','vphsubdq',
'vpmacsdd','vpmacssdd','vpmacsdql','vpmacssdql','vpmacsdqh','vpmacssdqh',
'vpmacsww','vpmacssww','vpmacswd','vpmacsswd',
'vpmadcswd','vpmadcsswd',
'vpcmov','vpperm',
'vprotb','vprotw','vprotd','vprotq',
'vpshab','vpshaw','vpshad','vpshaq',
'vpshlb','vpshlw','vpshld','vpshlq',
/* CVT16 instructions */
'vcvtph2ps','vcvtps2ph',
/* FMA4 instructions */
'vfmaddss','vfmaddps','vfmaddsd','vfmaddpd',
'vfmsubss','vfmsubps','vfmsubsd','vfmsubpd',
'vnfmaddss','vnfmaddps','vnfmaddsd','vnfmaddpd',
'vnfmsubss','vnfmsubps','vnfmsubsd','vnfmsubpd',
'vfmaddsubps','vfmaddsubpd','vfmsubaddps','vfmsubaddpd',
/* FMA3 instructions */
'vfmadd132ss','vfmadd213ss','vfmadd231ss',
'vfmadd132ps','vfmadd213ps','vfmadd231ps',
'vfmadd132sd','vfmadd213sd','vfmadd231sd',
'vfmadd132pd','vfmadd213pd','vfmadd231pd',
'vfmaddsub132ps','vfmaddsub213ps','vfmaddsub231ps',
'vfmaddsub132pd','vfmaddsub213pd','vfmaddsub231pd',
'vfmsubadd132ps','vfmsubadd213ps','vfmsubadd231ps',
'vfmsubadd132pd','vfmsubadd213pd','vfmsubadd231pd',
'vfmsub132ss','vfmsub213ss','vfmsub231ss',
'vfmsub132ps','vfmsub213ps','vfmsub231ps',
'vfmsub132sd','vfmsub213sd','vfmsub231sd',
'vfmsub132pd','vfmsub213pd','vfmsub231pd',
'vfnmadd132ss','vfnmadd213ss','vfnmadd231ss',
'vfnmadd132ps','vfnmadd213ps','vfnmadd231ps',
'vfnmadd132sd','vfnmadd213sd','vfnmadd231sd',
'vfnmadd132pd','vfnmadd213pd','vfnmadd231pd',
'vfnmsub132ss','vfnmsub213ss','vfnmsub231ss',
'vfnmsub132ps','vfnmsub213ps','vfnmsub231ps',
'vfnmsub132sd','vfnmsub213sd','vfnmsub231sd',
'vfnmsub132pd','vfnmsub213pd','vfnmsub231pd'
),
/*registers*/
4 => array(
/* General-Purpose Registers */
'al','ah','bl','bh','cl','ch','dl','dh','sil','dil','bpl','spl',
'r8b','r9b','r10b','r11b','r12b','r13b','r14b','r15b',
'ax','bx','cx','dx','si','di','bp','sp',
'r8w','r9w','r10w','r11w','r12w','r13w','r14w','r15w',
'eax','ebx','ecx','edx','esi','edi','ebp','esp',
'r8d','r9d','r10d','r11d','r12d','r13d','r14d','r15d',
'rax','rcx','rdx','rbx','rsp','rbp','rsi','rdi',
'r8','r9','r10','r11','r12','r13','r14','r15',
/* Debug Registers */
'dr0','dr1','dr2','dr3','dr6','dr7',
/* Control Registers */
'cr0','cr2','cr3','cr4','cr8',
/* Test Registers (Supported on Intel 486 only) */
'tr3','tr4','tr5','tr6','tr7',
/* Segment Registers */
'cs','ds','es','fs','gs','ss',
/* FPU Registers */
'st','st0','st1','st2','st3','st4','st5','st6','st7',
/* MMX Registers */
'mm0','mm1','mm2','mm3','mm4','mm5','mm6','mm7',
/* SSE Registers */
'xmm0','xmm1','xmm2','xmm3','xmm4','xmm5','xmm6','xmm7',
'xmm8','xmm9','xmm10','xmm11','xmm12','xmm13','xmm14','xmm15',
/* AVX Registers */
'ymm0','ymm1','ymm2','ymm3','ymm4','ymm5','ymm6','ymm7',
'ymm8','ymm9','ymm10','ymm11','ymm12','ymm13','ymm14','ymm15'
),
/*Directive*/
5 => array(
'db','dw','dd','dq','dt','do','dy',
'resb','resw','resd','resq','rest','reso','resy','incbin','equ','times','safeseh',
'__utf16__','__utf32__',
'default','cpu','float','start','imagebase','osabi',
'..start','..imagebase','..gotpc','..gotoff','..gottpoff','..got','..plt','..sym','..tlsie',
'section','segment','__sect__','group','absolute',
'.bss','.comment','.data','.lbss','.ldata','.lrodata','.rdata','.rodata','.tbss','.tdata','.text',
'alloc','bss','code','exec','data','noalloc','nobits','noexec','nowrite','progbits','rdata','tls','write',
'private','public','common','stack','overlay','class',
'extern','global','import','export',
'%define','%idefine','%xdefine','%ixdefine','%assign','%undef',
'%defstr','%idefstr','%deftok','%ideftok',
'%strcat','%strlen','%substr',
'%macro','%imacro','%rmacro','%exitmacro','%endmacro','%unmacro',
'%if','%ifn','%elif','%elifn','%else','%endif',
'%ifdef','%ifndef','%elifdef','%elifndef',
'%ifmacro','%ifnmacro','%elifmacro','%elifnmacro',
'%ifctx','%ifnctx','%elifctx','%elifnctx',
'%ifidn','%ifnidn','%elifidn','%elifnidn',
'%ifidni','%ifnidni','%elifidni','%elifnidni',
'%ifid','%ifnid','%elifid','%elifnid',
'%ifnum','%ifnnum','%elifnum','%elifnnum',
'%ifstr','%ifnstr','%elifstr','%elifnstr',
'%iftoken','%ifntoken','%eliftoken','%elifntoken',
'%ifempty','%ifnempty','%elifempty','%elifnempty',
'%ifenv','%ifnenv','%elifenv','%elifnenv',
'%rep','%exitrep','%endrep',
'%while','%exitwhile','%endwhile',
'%include','%pathsearch','%depend','%use',
'%push','%pop','%repl','%arg','%local','%stacksize','flat','flat64','large','small',
'%error','%warning','%fatal',
'%00','.nolist','%rotate','%line','%!','%final','%clear',
'struc','endstruc','istruc','at','iend',
'align','alignb','sectalign',
'bits','use16','use32','use64',
'__nasm_major__','__nasm_minor__','__nasm_subminor__','___nasm_patchlevel__',
'__nasm_version_id__','__nasm_ver__',
'__file__','__line__','__pass__','__bits__','__output_format__',
'__date__','__time__','__date_num__','__time_num__','__posix_time__',
'__utc_date__','__utc_time__','__utc_date_num__','__utc_time_num__',
'__float_daz__','__float_round__','__float__',
/* Keywords from standard packages */
'__use_altreg__',
'__use_smartalign__','smartalign','__alignmode__',
'__use_fp__','__infinity__','__nan__','__qnan__','__snan__',
'__float8__','__float16__','__float32__','__float64__','__float80m__','__float80e__','__float128l__','__float128h__'
),
/*Operands*/
6 => array(
'a16','a32','a64','o16','o32','o64','strict',
'byte','word','dword','qword','tword','oword','yword','nosplit',
'%0','%1','%2','%3','%4','%5','%6','%7','%8','%9',
'abs','rel',
'seg','wrt'
)
),
'SYMBOLS' => array(
1 => array(
'[', ']', '(', ')',
'+', '-', '*', '/', '%',
'.', ',', ';', ':'
),
2 => array(
'$','$$','%+','%?','%??'
)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00007f; font-weight: bold;',
2 => 'color: #0000ff;',
3 => 'color: #b00040;',
4 => 'color: #46aa03; font-weight: bold;',
5 => 'color: #0000ff; font-weight: bold;',
6 => 'color: #0000ff; font-weight: bold;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
2 => 'color: #adadad; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #009900; font-weight: bold;'
),
'STRINGS' => array(
0 => 'color: #7f007f;'
),
'NUMBERS' => array(
0 => 'color: #ff0000;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
1 => 'color: #339933;',
2 => 'color: #0000ff; font-weight: bold;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => ''
),
'NUMBERS' =>
GESHI_NUMBER_BIN_PREFIX_PERCENT |
GESHI_NUMBER_BIN_SUFFIX |
GESHI_NUMBER_HEX_PREFIX |
GESHI_NUMBER_HEX_SUFFIX |
GESHI_NUMBER_OCT_SUFFIX |
GESHI_NUMBER_INT_BASIC |
GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_NONSCI_F |
GESHI_NUMBER_FLT_SCI_ZERO,
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 8,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])",
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_<\|%])"
)
)
);
?>

164
Sources/geshi/asp.php Normal file
View File

@ -0,0 +1,164 @@
<?php
/*************************************************************************************
* asp.php
* --------
* Author: Amit Gupta (http://blog.igeek.info/)
* Copyright: (c) 2004 Amit Gupta (http://blog.igeek.info/), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2004/08/13
*
* ASP language file for GeSHi.
*
* CHANGES
* -------
* 2005/12/30 (1.0.3)
* - Strings only delimited by ", comments by '
* 2004/11/27 (1.0.2)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.1)
* - Added support for URLs
* 2004/08/13 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
* * Include all the functions, keywords etc that I have missed
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ASP',
'COMMENT_SINGLE' => array(1 => "'", 2 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'include', 'file', 'Const', 'Dim', 'Option', 'Explicit', 'Implicit', 'Set', 'Select', 'ReDim', 'Preserve',
'ByVal', 'ByRef', 'End', 'Private', 'Public', 'If', 'Then', 'Else', 'ElseIf', 'Case', 'With', 'NOT',
'While', 'Wend', 'For', 'Loop', 'Do', 'Request', 'Response', 'Server', 'ADODB', 'Session', 'Application',
'Each', 'In', 'Get', 'Next', 'INT', 'CINT', 'CBOOL', 'CDATE', 'CBYTE', 'CCUR', 'CDBL', 'CLNG', 'CSNG',
'CSTR', 'Fix', 'Is', 'Sgn', 'String', 'Boolean', 'Currency', 'Me', 'Single', 'Long', 'Integer', 'Byte',
'Variant', 'Double', 'To', 'Let', 'Xor', 'Resume', 'On', 'Error', 'Imp', 'GoTo', 'Call', 'Global'
),
2 => array(
'Null', 'Nothing', 'And',
'False',
'True', 'var', 'Or', 'BOF', 'EOF', 'xor',
'Function', 'Class', 'New', 'Sub'
),
3 => array(
'CreateObject', 'Write', 'Redirect', 'Cookies', 'BinaryRead', 'ClientCertificate', 'Form', 'QueryString',
'ServerVariables', 'TotalBytes', 'AddHeader', 'AppendToLog', 'BinaryWrite', 'Buffer', 'CacheControl',
'Charset', 'Clear', 'ContentType', 'End()', 'Expires', 'ExpiresAbsolute', 'Flush()', 'IsClientConnected',
'PICS', 'Status', 'Connection', 'Recordset', 'Execute', 'Abandon', 'Lock', 'UnLock', 'Command', 'Fields',
'Properties', 'Property', 'Send', 'Replace', 'InStr', 'TRIM', 'NOW', 'Day', 'Month', 'Hour', 'Minute', 'Second',
'Year', 'MonthName', 'LCase', 'UCase', 'Abs', 'Array', 'As', 'LEN', 'MoveFirst', 'MoveLast', 'MovePrevious',
'MoveNext', 'LBound', 'UBound', 'Transfer', 'Open', 'Close', 'MapPath', 'FileExists', 'OpenTextFile', 'ReadAll'
)
),
'SYMBOLS' => array(
1 => array(
'<%', '%>'
),
0 => array(
'(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>',
';', ':', '?', '='),
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #990099; font-weight: bold;',
2 => 'color: #0000ff; font-weight: bold;',
3 => 'color: #330066;'
),
'COMMENTS' => array(
1 => 'color: #008000;',
2 => 'color: #ff6600;',
'MULTI' => 'color: #008000;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #006600; font-weight:bold;'
),
'STRINGS' => array(
0 => 'color: #cc0000;'
),
'NUMBERS' => array(
0 => 'color: #800000;'
),
'METHODS' => array(
1 => 'color: #9900cc;'
),
'SYMBOLS' => array(
0 => 'color: #006600; font-weight: bold;',
1 => 'color: #000000; font-weight: bold;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
0 => '',
1 => '',
2 => '',
3 => ''
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
0 => array(
'<%' => '%>'
),
1 => array(
'<script language="vbscript" runat="server">' => '</script>'
),
2 => array(
'<script language="javascript" runat="server">' => '</script>'
),
3 => "/(?P<start><%=?)(?:\"[^\"]*?\"|\/\*(?!\*\/).*?\*\/|.)*?(?P<end>%>|\Z)/sm"
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
1 => true,
2 => true,
3 => true
)
);
?>

194
Sources/geshi/asymptote.php Normal file
View File

@ -0,0 +1,194 @@
<?php
/*************************************************************************************
* asymptote.php
* -------------
* Author: Manuel Yguel (manuel.yguel.robotics@gmail.com)
* Copyright: (c) 2012 Manuel Yguel (http://manuelyguel.eu)
* Release Version: 1.0.8.11
* Date Started: 2012/05/24
*
* asymptote language file for GeSHi.
*
* CHANGES
* -------
* 2012/05/24 (1.0.0.0)
* - First Release
*
* TODO (updated 2012/05/24)
* -------------------------
* * Split to several files - php4, php5 etc
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ************************************************************************************/
$language_data = array(
'LANG_NAME' => 'asymptote',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
//Multiline-continued single-line comments
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m',
//Multiline-continued preprocessor define
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m'
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
//Simple Single Char Escapes
1 => "#\\\\[\\\\abfnrtv\'\"?\n]#i",
//Hexadecimal Char Specs
2 => "#\\\\x[\da-fA-F]{2}#",
//Hexadecimal Char Specs
3 => "#\\\\u[\da-fA-F]{4}#",
//Hexadecimal Char Specs
4 => "#\\\\U[\da-fA-F]{8}#",
//Octal Char Specs
5 => "#\\\\[0-7]{1,3}#"
),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array(
'and','controls','tension','atleast','curl','if','else','while','for','do','return','break','continue','struct','typedef','new','access','import','unravel','from','include','quote','static','public','private','restricted','this','explicit','true','false','null','cycle','newframe','operator'
),
2 => array(
'Braid','FitResult','Label','Legend','Segment','Solution','TreeNode','abscissa','arc','arrowhead','binarytree','binarytreeNode','block','bool','bool3','bounds','bqe','circle','conic','coord','coordsys','cputime','ellipse','file','filltype','frame','grid3','guide','horner','hsv','hyperbola','indexedTransform','int','inversion','key','light','line','linefit','marginT','marker','mass','object','pair','parabola','path','path3','pen','picture','point','position','projection','real','revolution','scaleT','scientific','segment','side','slice','solution','splitface','string','surface','tensionSpecifier','ticklocate','ticksgridT','tickvalues','transform','transformation','tree','triangle','trilinear','triple','vector','vertex','void'),
3 => array(
'AND','Arc','ArcArrow','ArcArrows','Arrow','Arrows','Automatic','AvantGarde','BBox','BWRainbow','BWRainbow2','Bar','Bars','BeginArcArrow','BeginArrow','BeginBar','BeginDotMargin','BeginMargin','BeginPenMargin','Blank','Bookman','Bottom','BottomTop','Bounds','Break','Broken','BrokenLog','CLZ','CTZ','Ceil','Circle','CircleBarIntervalMarker','Cos','Courier','CrossIntervalMarker','DOSendl','DOSnewl','DefaultFormat','DefaultLogFormat','Degrees','Dir','DotMargin','DotMargins','Dotted','Draw','Drawline','Embed','EndArcArrow','EndArrow','EndBar','EndDotMargin','EndMargin','EndPenMargin','Fill','FillDraw','Floor','Format','Full','Gaussian','Gaussrand','Gaussrandpair',
'Gradient','Grayscale','Helvetica','Hermite','HookHead','InOutTicks','InTicks','Jn','Label','Landscape','Left','LeftRight','LeftTicks','Legend','Linear','Link','Log','LogFormat','Margin','Margins','Mark','MidArcArrow','MidArrow','NOT','NewCenturySchoolBook','NoBox','NoMargin','NoModifier','NoTicks','NoTicks3','NoZero','NoZeroFormat','None','OR','OmitFormat','OmitTick','OmitTickInterval','OmitTickIntervals','OutTicks','Ox','Oy','Palatino','PaletteTicks','Pen','PenMargin','PenMargins','Pentype','Portrait','RadialShade','RadialShadeDraw','Rainbow','Range','Relative','Right','RightTicks','Rotate','Round','SQR','Scale','ScaleX','ScaleY','ScaleZ','Seascape','Segment','Shift','Sin','Slant','Spline','StickIntervalMarker','Straight','Symbol','Tan','TeXify','Ticks','Ticks3','TildeIntervalMarker','TimesRoman','Top','TrueMargin','UnFill','UpsideDown','Wheel','X','XEquals','XOR','XY','XYEquals','XYZero','XYgrid','XZEquals','XZZero','XZero','XZgrid','Y','YEquals','YXgrid','YZ','YZEquals','YZZero','YZero','YZgrid','Yn','Z','ZX','ZXgrid','ZYgrid','ZapfChancery','ZapfDingbats','_begingroup3','_cputime','_draw','_eval','_image','_labelpath','_projection','_strokepath','_texpath','aCos','aSin','aTan','abort','abs','accel','acos','acosh','acot','acsc','activatequote','add',
'addArrow','addMargins','addSaveFunction','addpenarc','addpenline','adjust','alias','align','all','altitude','angabscissa','angle','angpoint','animate','annotate','anticomplementary','antipedal','apply','approximate','arc','arcarrowsize','arccircle','arcdir','arcfromcenter','arcfromfocus','arclength','arcnodesnumber','arcpoint','arcsubtended','arcsubtendedcenter','arctime','arctopath','array','arrow','arrow2','arrowbase','arrowbasepoints','arrowsize','asec','asin','asinh','ask','assert','asy','asycode','asydir','asyfigure','asyfilecode','asyinclude','asywrite','atan','atan2','atanh','atbreakpoint','atexit','attach','attract','atupdate','autoformat','autoscale','autoscale3','axes','axes3','axialshade','axis','axiscoverage','azimuth','babel','background','bangles','bar','barmarksize','barsize','basealign','baseline','bbox','beep','begin','beginclip','begingroup','beginpoint','between','bevel','bezier','bezierP','bezierPP','bezierPPP','bezulate','bibliography','bibliographystyle','binarytree','binarytreeNode','binomial','binput','bins','bisector','bisectorpoint','bispline','blend','blockconnector','boutput','box','bqe','breakpoint','breakpoints','brick','buildRestoreDefaults','buildRestoreThunk','buildcycle','bulletcolor','byte','calculateScaling','canonical','canonicalcartesiansystem','cartesiansystem','case1','case2','case3','case4','cbrt','cd','ceil','center','centerToFocus',
'centroid','cevian','change2','changecoordsys','checkSegment','checkconditionlength','checker','checkincreasing','checklengths','checkposition','checktriangle','choose','circle','circlebarframe','circlemarkradius','circlenodesnumber','circumcenter','circumcircle','clamped','clear','clip','clipdraw','close','cmyk','code','colatitude','collect','collinear','color','colorless','colors','colorspace','comma','compassmark','complement','complementary','concat','concurrent','cone','conic','conicnodesnumber','conictype','conj','connect','connected','connectedindex','containmentTree','contains','contour','contour3','contouredges','controlSpecifier','convert','coordinates','coordsys','copy','copyPairOrTriple','cos','cosh','cot','countIntersections','cputime','crop','cropcode','cross',
'crossframe','crosshatch','crossmarksize','csc','cubicroots','curabscissa','curlSpecifier','curpoint','currentarrow','currentexitfunction','currentmomarrow','currentpolarconicroutine','curve','cut','cutafter','cutbefore','cyclic','cylinder','deactivatequote','debugger','deconstruct','defaultdir','defaultformat','defaultpen','defined','degenerate','degrees','delete','deletepreamble','determinant','diagonal','diamond','diffdiv','dir','dirSpecifier','dirtime','display','distance',
'divisors','do_overpaint','dot','dotframe','dotsize','downcase','draw','drawAll','drawDoubleLine','drawFermion','drawGhost','drawGluon','drawMomArrow','drawPRCcylinder','drawPRCdisk','drawPRCsphere','drawPRCtube','drawPhoton','drawScalar','drawVertex','drawVertexBox','drawVertexBoxO','drawVertexBoxX','drawVertexO','drawVertexOX','drawVertexTriangle','drawVertexTriangleO','drawVertexX','drawarrow','drawarrow2','drawline','drawpixel','drawtick','duplicate','elle','ellipse','ellipsenodesnumber','embed','embed3','empty','enclose','end','endScript','endclip','endgroup','endgroup3','endl','endpoint','endpoints','eof','eol','equation','equations','erase','erasestep','erf','erfc','error','errorbar','errorbars','eval','excenter','excircle','exit','exitXasyMode','exitfunction','exp','expfactors','expi','expm1','exradius','extend','extension','extouch','fabs','factorial','fermat','fft','fhorner','figure','file','filecode','fill','filldraw','filloutside','fillrule','filltype','find','finite','finiteDifferenceJacobian','firstcut','firstframe','fit','fit2','fixedscaling','floor','flush','fmdefaults','fmod','focusToCenter','font','fontcommand','fontsize','foot','format','frac','frequency','fromCenter','fromFocus','fspline','functionshade','gamma','generate_random_backtrace','generateticks','gergonne','getc','getint','getpair','getreal','getstring','gettriple','gluon','gouraudshade','graph','graphic','gray','grestore','grid','grid3','gsave','halfbox','hatch','hdiffdiv','hermite','hex','histogram','history','hline','hprojection',
'hsv','hyperbola','hyperbolanodesnumber','hyperlink','hypot','identity','image','incenter','incentral','incircle','increasing','incrementposition','indexedTransform','indexedfigure','initXasyMode','initdefaults','input','inradius','insert','inside','integrate','interactive','interior','interp','interpolate','intersect','intersection','intersectionpoint','intersectionpoints','intersections','intouch','inverse','inversion','invisible','is3D','isCCW','isDuplicate','isogonal','isogonalconjugate','isotomic','isotomicconjugate','isparabola','italic','item','jobname','key','kurtosis','kurtosisexcess','label','labelaxis','labelmargin','labelpath','labels','labeltick','labelx','labelx3','labely','labely3','labelz','labelz3','lastcut','latex','latitude','latticeshade','layer','layout','ldexp','leastsquares','legend','legenditem','length','lexorder','lift','light','limits','line','linear','linecap','lineinversion','linejoin','linemargin','lineskip','linetype','linewidth','link','list','lm_enorm','lm_evaluate_default','lm_lmdif','lm_lmpar','lm_minimize','lm_print_default','lm_print_quiet','lm_qrfac','lm_qrsolv','locale','locate',
'locatefile','location','log','log10','log1p','logaxiscoverage','longitude','lookup','makeNode','makedraw','makepen','map','margin','markangle','markangleradius','markanglespace','markarc','marker','markinterval','marknodes','markrightangle','markuniform','mass','masscenter','massformat','math','max','max3','maxAfterTransform','maxbezier','maxbound','maxcoords','maxlength','maxratio','maxtimes','mean','medial','median','midpoint','min','min3','minAfterTransform','minbezier','minbound','minipage','minratio','mintimes','miterlimit','mktemp','momArrowPath','momarrowsize','monotonic','multifigure','nativeformat','natural','needshipout','newl','newpage','newslide','newton','newtree','nextframe','nextnormal','nextpage','nib','nodabscissa','none','norm','normalvideo','notaknot','nowarn','numberpage','nurb','object','offset','onpath','opacity','opposite','orientation','origin','orthic','orthocentercenter','outformat','outline','outname','outprefix','output','overloadedMessage','overwrite','pack','pad','pairs','palette','parabola','parabolanodesnumber','parallel','parallelogram','partialsum','path','path3','pattern','pause','pdf','pedal','periodic','perp','perpendicular','perpendicularmark','phantom','phi1','phi2','phi3','photon','piecewisestraight','point','polar','polarconicroutine','polargraph','polygon','postcontrol','postscript','pow10','ppoint','prc','prc0','precision','precontrol','prepend','printBytecode','print_random_addresses','project','projection','purge','pwhermite','quadrant','quadraticroots','quantize','quarticroots','quotient','radialshade','radians','radicalcenter','radicalline','radius','rand','randompath','rd','readline','realmult','realquarticroots','rectangle','rectangular','rectify','reflect','relabscissa','relative','relativedistance','reldir','relpoint','reltime','remainder','remark','removeDuplicates','rename','replace','report','resetdefaultpen','restore','restoredefaults','reverse','reversevideo','rf','rfind','rgb','rgba','rgbint','rms',
'rotate','rotateO','rotation','round','roundbox','roundedpath','roundrectangle','same','samecoordsys','sameside','sample','save','savedefaults','saveline','scale','scale3','scaleO','scaleT','scaleless','scientific','search','searchindex','searchtree','sec','secondaryX','secondaryY','seconds','section','sector','seek','seekeof','segment','sequence','setcontour','setpens','sgn','sgnd','sharpangle','sharpdegrees','shift','shiftless','shipout','shipout3','show','side','simeq','simpson','sin','sinh','size','size3','skewness','skip','slant','sleep','slope','slopefield','solve','solveBVP','sort','sourceline','sphere','split','sqrt','square','srand','standardizecoordsys','startScript','stdev','step','stickframe','stickmarksize','stickmarkspace','stop','straight','straightness','string','stripdirectory','stripextension','stripfile','stripsuffix','strokepath','subdivide','subitem','subpath','substr','sum','surface','symmedial','symmedian','system',
'tab','tableau','tan','tangent','tangential','tangents','tanh','tell','tensionSpecifier','tensorshade','tex','texcolor','texify','texpath','texpreamble','texreset','texshipout','texsize','textpath','thick','thin','tick','tickMax','tickMax3','tickMin','tickMin3','ticklabelshift','ticklocate','tildeframe','tildemarksize','tile','tiling','time','times','title','titlepage','topbox','transform','transformation','transpose','trembleFuzz','triangle','triangleAbc','triangleabc','triangulate','tricoef','tridiagonal','trilinear','trim','truepoint','tube','uncycle','unfill','uniform','unique','unit','unitrand','unitsize','unityroot','unstraighten','upcase','updatefunction','uperiodic','upscale','uptodate','usepackage','usersetting','usetypescript','usleep','value','variance','variancebiased','vbox','vector','vectorfield','verbatim','view','vline','vperiodic','vprojection','warn','warning','windingnumber','write','xaxis','xaxis3','xaxis3At','xaxisAt','xequals','xinput','xlimits','xoutput','xpart','xscale','xscaleO','xtick','xtick3','xtrans','yaxis','yaxis3','yaxis3At','yaxisAt','yequals','ylimits','ypart','yscale','yscaleO','ytick','ytick3','ytrans','zaxis3','zaxis3At','zero','zero3','zlimits','zpart','ztick','ztick3','ztrans'
),
4 => array(
'AliceBlue','Align','Allow','AntiqueWhite','Apricot','Aqua','Aquamarine','Aspect','Azure','BeginPoint','Beige','Bisque','Bittersweet','Black','BlanchedAlmond','Blue','BlueGreen','BlueViolet','Both','Break','BrickRed','Brown','BurlyWood','BurntOrange','CCW','CW','CadetBlue','CarnationPink','Center','Centered','Cerulean','Chartreuse','Chocolate','Coeff','Coral','CornflowerBlue','Cornsilk','Crimson','Crop','Cyan','Dandelion','DarkBlue','DarkCyan','DarkGoldenrod','DarkGray','DarkGreen','DarkKhaki','DarkMagenta','DarkOliveGreen','DarkOrange','DarkOrchid','DarkRed','DarkSalmon','DarkSeaGreen','DarkSlateBlue','DarkSlateGray','DarkTurquoise','DarkViolet','DeepPink','DeepSkyBlue','DefaultHead','DimGray','DodgerBlue','Dotted','Down','Draw','E','ENE','EPS','ESE','E_Euler','E_PC','E_RK2','E_RK3BS','Emerald','EndPoint','Euler','Fill','FillDraw','FireBrick','FloralWhite','ForestGreen','Fuchsia','Gainsboro','GhostWhite','Gold','Goldenrod','Gray','Green','GreenYellow','Honeydew','HookHead','Horizontal','HotPink','I','IgnoreAspect','IndianRed','Indigo','Ivory','JOIN_IN','JOIN_OUT','JungleGreen','Khaki','LM_DWARF','LM_MACHEP','LM_SQRT_DWARF','LM_SQRT_GIANT','LM_USERTOL','Label','Lavender','LavenderBlush','LawnGreen','Left','LeftJustified','LeftSide','LemonChiffon','LightBlue','LightCoral','LightCyan','LightGoldenrodYellow',
'LightGreen','LightGrey','LightPink','LightSalmon','LightSeaGreen','LightSkyBlue','LightSlateGray','LightSteelBlue','LightYellow','Lime','LimeGreen','Linear','Linen','Log','Logarithmic','Magenta','Mahogany','Mark','MarkFill','Maroon','Max','MediumAquamarine','MediumBlue','MediumOrchid','MediumPurple','MediumSeaGreen','MediumSlateBlue','MediumSpringGreen','MediumTurquoise','MediumVioletRed','Melon','MidPoint','MidnightBlue','Min','MintCream','MistyRose','Moccasin','Move','MoveQuiet','Mulberry','N','NE','NNE','NNW','NW','NavajoWhite','Navy','NavyBlue','NoAlign','NoCrop','NoFill','NoSide','OldLace','Olive','OliveDrab','OliveGreen','Orange','OrangeRed','Orchid','Ox','Oy','PC','PaleGoldenrod','PaleGreen','PaleTurquoise','PaleVioletRed','PapayaWhip','Peach','PeachPuff','Periwinkle','Peru','PineGreen','Pink','Plum','PowderBlue','ProcessBlue','Purple','RK2','RK3','RK3BS','RK4','RK5','RK5DP','RK5F','RawSienna','Red','RedOrange','RedViolet','Rhodamine','Right','RightJustified','RightSide','RosyBrown','RoyalBlue','RoyalPurple','RubineRed','S','SE','SSE','SSW','SW','SaddleBrown','Salmon','SandyBrown','SeaGreen','Seashell','Sepia','Sienna','Silver','SimpleHead','SkyBlue','SlateBlue','SlateGray','Snow','SpringGreen','SteelBlue','Suppress','SuppressQuiet','Tan','TeXHead','Teal','TealBlue','Thistle','Ticksize','Tomato',
'Turquoise','UnFill','Up','VERSION','Value','Vertical','Violet','VioletRed','W','WNW','WSW','Wheat','White','WhiteSmoke','WildStrawberry','XYAlign','YAlign','Yellow','YellowGreen','YellowOrange','addpenarc','addpenline','align','allowstepping','angularsystem','animationdelay','appendsuffix','arcarrowangle','arcarrowfactor','arrow2sizelimit','arrowangle','arrowbarb','arrowdir','arrowfactor','arrowhookfactor','arrowlength','arrowsizelimit','arrowtexfactor','authorpen','axis','axiscoverage','axislabelfactor','background','backgroundcolor','backgroundpen','barfactor','barmarksizefactor','basealign','baselinetemplate','beveljoin','bigvertexpen','bigvertexsize','black','blue','bm','bottom','bp','brown','bullet','byfoci','byvertices','camerafactor','chartreuse','circlemarkradiusfactor','circlenodesnumberfactor','circleprecision','circlescale','cm','codefile','codepen','codeskip','colorPen','coloredNodes','coloredSegments',
'conditionlength','conicnodesfactor','count','cputimeformat','crossmarksizefactor','currentcoordsys','currentlight','currentpatterns','currentpen','currentpicture','currentposition','currentprojection','curvilinearsystem','cuttings','cyan','darkblue','darkbrown','darkcyan','darkgray','darkgreen','darkgrey','darkmagenta','darkolive','darkred','dashdotted','dashed','datepen','dateskip','debuggerlines','debugging','deepblue','deepcyan','deepgray','deepgreen','deepgrey','deepmagenta','deepred','default','defaultControl','defaultS','defaultbackpen','defaultcoordsys','defaultexcursion','defaultfilename','defaultformat','defaultmassformat','defaultpen','diagnostics','differentlengths','dot','dotfactor','dotframe','dotted','doublelinepen','doublelinespacing','down','duplicateFuzz','edge','ellipsenodesnumberfactor','eps','epsgeo','epsilon','evenodd','expansionfactor','extendcap','exterior','fermionpen','figureborder','figuremattpen','file3','firstnode','firststep','foregroundcolor','fuchsia','fuzz','gapfactor','ghostpen','gluonamplitude','gluonpen','gluonratio','gray','green','grey','hatchepsilon','havepagenumber','heavyblue','heavycyan','heavygray','heavygreen','heavygrey','heavymagenta','heavyred','hline','hwratio','hyperbola','hyperbolanodesnumberfactor','identity4','ignore','inXasyMode','inch','inches','includegraphicscommand','inf','infinity','institutionpen','intMax','intMin','interior','invert','invisible','itempen','itemskip','itemstep','labelmargin','landscape','lastnode','left','legendhskip','legendlinelength',
'legendmargin','legendmarkersize','legendmaxrelativewidth','legendvskip','lightblue','lightcyan','lightgray','lightgreen','lightgrey','lightmagenta','lightolive','lightred','lightyellow','line','linemargin','lm_infmsg','lm_shortmsg','longdashdotted','longdashed','magenta','magneticRadius','mantissaBits','markangleradius','markangleradiusfactor','markanglespace','markanglespacefactor','mediumblue','mediumcyan','mediumgray','mediumgreen','mediumgrey','mediummagenta','mediumred','mediumyellow','middle','minDistDefault','minblockheight','minblockwidth','mincirclediameter','minipagemargin','minipagewidth','minvertexangle','miterjoin','mm','momarrowfactor','momarrowlength','momarrowmargin','momarrowoffset','momarrowpen','monoPen','morepoints','nCircle','newbulletcolor','ngraph','nil','nmesh','nobasealign','nodeMarginDefault','nodesystem','nomarker','nopoint','noprimary','nullpath','nullpen','numarray','ocgindex','oldbulletcolor','olive','orange','origin','overpaint','page','pageheight','pagemargin','pagenumberalign','pagenumberpen','pagenumberposition','pagewidth','paleblue','palecyan','palegray','palegreen','palegrey',
'palemagenta','palered','paleyellow','parabolanodesnumberfactor','perpfactor','phi','photonamplitude','photonpen','photonratio','pi','pink','plain','plain_bounds','plain_scaling','plus','preamblenodes','pt','purple','r3','r4a','r4b','randMax','realDigits','realEpsilon','realMax','realMin','red','relativesystem','reverse','right','roundcap','roundjoin','royalblue','salmon','saveFunctions','scalarpen','sequencereal','settings','shipped','signedtrailingzero','solid','springgreen','sqrtEpsilon','squarecap','squarepen','startposition','stdin','stdout','stepfactor','stepfraction','steppagenumberpen','stepping','stickframe','stickmarksizefactor','stickmarkspacefactor','swap','textpen','ticksize','tildeframe','tildemarksizefactor','tinv','titlealign','titlepagepen','titlepageposition','titlepen','titleskip','top','trailingzero','treeLevelStep','treeMinNodeWidth','treeNodeStep','trembleAngle','trembleFrequency','trembleRandom','undefined','unitcircle','unitsquare','up','urlpen','urlskip','version','vertexpen','vertexsize','viewportmargin','viewportsize','vline','white','wye','xformStack','yellow','ylabelwidth','zerotickfuzz','zerowinding'
)
),
'SYMBOLS' => array(
0 => array(
'(', ')', '{', '}', '[', ']'
),
1 => array('<', '>','='),
2 => array('+', '-', '*', '/', '%'),
3 => array('!', '^', '&', '|'),
4 => array('?', ':', ';'),
5 => array('..')
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #990000;',
4 => 'color: #009900; font-weight: bold;'
),
'COMMENTS' => array(
1 => 'color: #666666;',
2 => 'color: #339900;',
'MULTI' => 'color: #ff0000; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
1 => 'color: #000099; font-weight: bold;',
2 => 'color: #660099; font-weight: bold;',
3 => 'color: #660099; font-weight: bold;',
4 => 'color: #660099; font-weight: bold;',
5 => 'color: #006699; font-weight: bold;',
'HARD' => '',
),
'BRACKETS' => array(
0 => 'color: #008000;'
),
'STRINGS' => array(
0 => 'color: #FF0000;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;',
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;',
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;',
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
),
'METHODS' => array(
1 => 'color: #007788;',
2 => 'color: #007788;'
),
'SYMBOLS' => array(
0 => 'color: #008000;',
1 => 'color: #000080;',
2 => 'color: #000040;',
3 => 'color: #000040;',
4 => 'color: #008080;',
5 => 'color: #009080;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#])",
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_\|%\\-])"
)
)
);
?>

512
Sources/geshi/autoconf.php Normal file
View File

@ -0,0 +1,512 @@
<?php
/*************************************************************************************
* autoconf.php
* -----
* Author: Mihai Vasilian (grayasm@gmail.com)
* Copyright: (c) 2010 Mihai Vasilian
* Release Version: 1.0.8.11
* Date Started: 2010/01/25
*
* autoconf language file for GeSHi.
*
***********************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Autoconf',
'COMMENT_SINGLE' => array(2 => '#'),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(
//Multiline-continued single-line comments
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m',
//Multiline-continued preprocessor define
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m',
//Single Line comment started by dnl
3 => '/(?<!\$)\bdnl\b.*$/m',
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array(
'AC_ACT_IFELSE',
'AC_AIX',
'AC_ALLOCA',
'AC_ARG_ARRAY',
'AC_ARG_ENABLE',
'AC_ARG_PROGRAM',
'AC_ARG_VAR',
'AC_ARG_WITH',
'AC_AUTOCONF_VERSION',
'AC_BEFORE',
'AC_C_BACKSLASH_A',
'AC_C_BIGENDIAN',
'AC_C_CHAR_UNSIGNED',
'AC_C_CONST',
'AC_C_CROSS',
'AC_C_FLEXIBLE_ARRAY_MEMBER',
'AC_C_INLINE',
'AC_C_LONG_DOUBLE',
'AC_C_PROTOTYPES',
'AC_C_RESTRICT',
'AC_C_STRINGIZE',
'AC_C_TYPEOF',
'AC_C_VARARRAYS',
'AC_C_VOLATILE',
'AC_CACHE_CHECK',
'AC_CACHE_LOAD',
'AC_CACHE_SAVE',
'AC_CACHE_VAL',
'AC_CANONICAL_BUILD',
'AC_CANONICAL_HOST',
'AC_CANONICAL_SYSTEM',
'AC_CANONICAL_TARGET',
'AC_CHAR_UNSIGNED',
'AC_CHECK_ALIGNOF',
'AC_CHECK_DECL',
'AC_CHECK_DECLS',
'AC_CHECK_DECLS_ONCE',
'AC_CHECK_FILE',
'AC_CHECK_FILES',
'AC_CHECK_FUNC',
'AC_CHECK_FUNCS',
'AC_CHECK_FUNCS_ONCE',
'AC_CHECK_HEADER',
'AC_CHECK_HEADERS',
'AC_CHECK_HEADERS_ONCE',
'AC_CHECK_LIB',
'AC_CHECK_MEMBER',
'AC_CHECK_MEMBERS',
'AC_CHECK_PROG',
'AC_CHECK_PROGS',
'AC_CHECK_SIZEOF',
'AC_CHECK_TARGET_TOOL',
'AC_CHECK_TARGET_TOOLS',
'AC_CHECK_TOOL',
'AC_CHECK_TOOLS',
'AC_CHECK_TYPE',
'AC_CHECK_TYPES',
'AC_CHECKING',
'AC_COMPILE_CHECK',
'AC_COMPILE_IFELSE',
'AC_COMPUTE_INT',
'AC_CONFIG_AUX_DIR',
'AC_CONFIG_COMMANDS',
'AC_CONFIG_COMMANDS_POST',
'AC_CONFIG_COMMANDS_PRE',
'AC_CONFIG_FILES',
'AC_CONFIG_HEADERS',
'AC_CONFIG_ITEMS',
'AC_CONFIG_LIBOBJ_DIR',
'AC_CONFIG_LINKS',
'AC_CONFIG_MACRO_DIR',
'AC_CONFIG_SRCDIR',
'AC_CONFIG_SUBDIRS',
'AC_CONFIG_TESTDIR',
'AC_CONST',
'AC_COPYRIGHT',
'AC_CROSS_CHECK',
'AC_CYGWIN',
'AC_DATAROOTDIR_CHECKED',
'AC_DECL_SYS_SIGLIST',
'AC_DECL_YYTEXT',
'AC_DEFINE',
'AC_DEFINE_UNQUOTED',
'AC_DEFUN',
'AC_DEFUN_ONCE',
'AC_DIAGNOSE',
'AC_DIR_HEADER',
'AC_DISABLE_OPTION_CHECKING',
'AC_DYNIX_SEQ',
'AC_EGREP_CPP',
'AC_EGREP_HEADER',
'AC_EMXOS2',
'AC_ENABLE',
'AC_ERLANG_CHECK_LIB',
'AC_ERLANG_NEED_ERL',
'AC_ERLANG_NEED_ERLC',
'AC_ERLANG_PATH_ERL',
'AC_ERLANG_PATH_ERLC',
'AC_ERLANG_SUBST_ERTS_VER',
'AC_ERLANG_SUBST_INSTALL_LIB_DIR',
'AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR',
'AC_ERLANG_SUBST_LIB_DIR',
'AC_ERLANG_SUBST_ROOT_DIR',
'AC_ERROR',
'AC_EXEEXT',
'AC_F77_DUMMY_MAIN',
'AC_F77_FUNC',
'AC_F77_LIBRARY_LDFLAGS',
'AC_F77_MAIN',
'AC_F77_WRAPPERS',
'AC_FATAL',
'AC_FC_FREEFORM',
'AC_FC_FUNC',
'AC_FC_LIBRARY_LDFLAGS',
'AC_FC_MAIN',
'AC_FC_SRCEXT',
'AC_FC_WRAPPERS',
'AC_FIND_X',
'AC_FIND_XTRA',
'AC_FOREACH',
'AC_FUNC_ALLOCA',
'AC_FUNC_CHECK',
'AC_FUNC_CHOWN',
'AC_FUNC_CLOSEDIR_VOID',
'AC_FUNC_ERROR_AT_LINE',
'AC_FUNC_FNMATCH',
'AC_FUNC_FNMATCH_GNU',
'AC_FUNC_FORK',
'AC_FUNC_FSEEKO',
'AC_FUNC_GETGROUPS',
'AC_FUNC_GETLOADAVG',
'AC_FUNC_GETMNTENT',
'AC_FUNC_GETPGRP',
'AC_FUNC_LSTAT',
'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK',
'AC_FUNC_MALLOC',
'AC_FUNC_MBRTOWC',
'AC_FUNC_MEMCMP',
'AC_FUNC_MKTIME',
'AC_FUNC_MMAP',
'AC_FUNC_OBSTACK',
'AC_FUNC_REALLOC',
'AC_FUNC_SELECT_ARGTYPES',
'AC_FUNC_SETPGRP',
'AC_FUNC_SETVBUF_REVERSED',
'AC_FUNC_STAT',
'AC_FUNC_STRCOLL',
'AC_FUNC_STRERROR_R',
'AC_FUNC_STRFTIME',
'AC_FUNC_STRNLEN',
'AC_FUNC_STRTOD',
'AC_FUNC_STRTOLD',
'AC_FUNC_UTIME_NULL',
'AC_FUNC_VPRINTF',
'AC_FUNC_WAIT3',
'AC_GCC_TRADITIONAL',
'AC_GETGROUPS_T',
'AC_GETLOADAVG',
'AC_GNU_SOURCE',
'AC_HAVE_FUNCS',
'AC_HAVE_HEADERS',
'AC_HAVE_LIBRARY',
'AC_HAVE_POUNDBANG',
'AC_HEADER_ASSERT',
'AC_HEADER_CHECK',
'AC_HEADER_DIRENT',
'AC_HEADER_EGREP',
'AC_HEADER_MAJOR',
'AC_HEADER_RESOLV',
'AC_HEADER_STAT',
'AC_HEADER_STDBOOL',
'AC_HEADER_STDC',
'AC_HEADER_SYS_WAIT',
'AC_HEADER_TIME',
'AC_HEADER_TIOCGWINSZ',
'AC_HELP_STRING',
'AC_INCLUDES_DEFAULT',
'AC_INIT',
'AC_INLINE',
'AC_INT_16_BITS',
'AC_IRIX_SUN',
'AC_ISC_POSIX',
'AC_LANG_ASSERT',
'AC_LANG_C',
'AC_LANG_CALL',
'AC_LANG_CONFTEST',
'AC_LANG_CPLUSPLUS',
'AC_LANG_FORTRAN77',
'AC_LANG_FUNC_LINK_TRY',
'AC_LANG_POP',
'AC_LANG_PROGRAM',
'AC_LANG_PUSH',
'AC_LANG_RESTORE',
'AC_LANG_SAVE',
'AC_LANG_SOURCE',
'AC_LANG_WERROR',
'AC_LIBOBJ',
'AC_LIBSOURCE',
'AC_LIBSOURCES',
'AC_LINK_FILES',
'AC_LINK_IFELSE',
'AC_LN_S',
'AC_LONG_64_BITS',
'AC_LONG_DOUBLE',
'AC_LONG_FILE_NAMES',
'AC_MAJOR_HEADER',
'AC_MEMORY_H',
'AC_MINGW32',
'AC_MINIX',
'AC_MINUS_C_MINUS_O',
'AC_MMAP',
'AC_MODE_T',
'AC_MSG_CHECKING',
'AC_MSG_ERROR',
'AC_MSG_FAILURE',
'AC_MSG_NOTICE',
'AC_MSG_RESULT',
'AC_MSG_WARN',
'AC_OBJEXT',
'AC_OBSOLETE',
'AC_OFF_T',
'AC_OPENMP',
'AC_OUTPUT',
'AC_OUTPUT_COMMANDS',
'AC_PACKAGE_BUGREPORT',
'AC_PACKAGE_NAME',
'AC_PACKAGE_STRING',
'AC_PACKAGE_TARNAME',
'AC_PACKAGE_URL',
'AC_PACKAGE_VERSION',
'AC_PATH_PROG',
'AC_PATH_PROGS',
'AC_PATH_PROGS_FEATURE_CHECK',
'AC_PATH_TARGET_TOOL',
'AC_PATH_TOOL',
'AC_PATH_X',
'AC_PATH_XTRA',
'AC_PID_T',
'AC_PREFIX',
'AC_PREFIX_DEFAULT',
'AC_PREFIX_PROGRAM',
'AC_PREPROC_IFELSE',
'AC_PREREQ',
'AC_PRESERVE_HELP_ORDER',
'AC_PROG_AWK',
'AC_PROG_CC',
'AC_PROG_CC_C89',
'AC_PROG_CC_C99',
'AC_PROG_CC_C_O',
'AC_PROG_CC_STDC',
'AC_PROG_CPP',
'AC_PROG_CPP_WERROR',
'AC_PROG_CXX',
'AC_PROG_CXX_C_O',
'AC_PROG_CXXCPP',
'AC_PROG_EGREP',
'AC_PROG_F77',
'AC_PROG_F77_C_O',
'AC_PROG_FC',
'AC_PROG_FC_C_O',
'AC_PROG_FGREP',
'AC_PROG_GCC_TRADITIONAL',
'AC_PROG_GREP',
'AC_PROG_INSTALL',
'AC_PROG_LEX',
'AC_PROG_LN_S',
'AC_PROG_MAKE_SET',
'AC_PROG_MKDIR_P',
'AC_PROG_OBJC',
'AC_PROG_OBJCPP',
'AC_PROG_OBJCXX',
'AC_PROG_OBJCXXCPP',
'AC_PROG_RANLIB',
'AC_PROG_SED',
'AC_PROG_YACC',
'AC_PROGRAM_CHECK',
'AC_PROGRAM_EGREP',
'AC_PROGRAM_PATH',
'AC_PROGRAMS_CHECK',
'AC_PROGRAMS_PATH',
'AC_REMOTE_TAPE',
'AC_REPLACE_FNMATCH',
'AC_REPLACE_FUNCS',
'AC_REQUIRE',
'AC_REQUIRE_AUX_FILE',
'AC_REQUIRE_CPP',
'AC_RESTARTABLE_SYSCALLS',
'AC_RETSIGTYPE',
'AC_REVISION',
'AC_RSH',
'AC_RUN_IFELSE',
'AC_SCO_INTL',
'AC_SEARCH_LIBS',
'AC_SET_MAKE',
'AC_SETVBUF_REVERSED',
'AC_SIZE_T',
'AC_SIZEOF_TYPE',
'AC_ST_BLKSIZE',
'AC_ST_BLOCKS',
'AC_ST_RDEV',
'AC_STAT_MACROS_BROKEN',
'AC_STDC_HEADERS',
'AC_STRCOLL',
'AC_STRUCT_DIRENT_D_INO',
'AC_STRUCT_DIRENT_D_TYPE',
'AC_STRUCT_ST_BLKSIZE',
'AC_STRUCT_ST_BLOCKS',
'AC_STRUCT_ST_RDEV',
'AC_STRUCT_TIMEZONE',
'AC_STRUCT_TM',
'AC_SUBST',
'AC_SUBST_FILE',
'AC_SYS_INTERPRETER',
'AC_SYS_LARGEFILE',
'AC_SYS_LONG_FILE_NAMES',
'AC_SYS_POSIX_TERMIOS',
'AC_SYS_RESTARTABLE_SYSCALLS',
'AC_SYS_SIGLIST_DECLARED',
'AC_TEST_CPP',
'AC_TEST_PROGRAM',
'AC_TIME_WITH_SYS_TIME',
'AC_TIMEZONE',
'AC_TRY_ACT',
'AC_TRY_COMPILE',
'AC_TRY_CPP',
'AC_TRY_LINK',
'AC_TRY_LINK_FUNC',
'AC_TRY_RUN',
'AC_TYPE_GETGROUPS',
'AC_TYPE_INT16_T',
'AC_TYPE_INT32_T',
'AC_TYPE_INT64_T',
'AC_TYPE_INT8_T',
'AC_TYPE_INTMAX_T',
'AC_TYPE_INTPTR_T',
'AC_TYPE_LONG_DOUBLE',
'AC_TYPE_LONG_DOUBLE_WIDER',
'AC_TYPE_LONG_LONG_INT',
'AC_TYPE_MBSTATE_T',
'AC_TYPE_MODE_T',
'AC_TYPE_OFF_T',
'AC_TYPE_PID_T',
'AC_TYPE_SIGNAL',
'AC_TYPE_SIZE_T',
'AC_TYPE_SSIZE_T',
'AC_TYPE_UID_T',
'AC_TYPE_UINT16_T',
'AC_TYPE_UINT32_T',
'AC_TYPE_UINT64_T',
'AC_TYPE_UINT8_T',
'AC_TYPE_UINTMAX_T',
'AC_TYPE_UINTPTR_T',
'AC_TYPE_UNSIGNED_LONG_LONG_INT',
'AC_UID_T',
'AC_UNISTD_H',
'AC_USE_SYSTEM_EXTENSIONS',
'AC_USG',
'AC_UTIME_NULL',
'AC_VALIDATE_CACHED_SYSTEM_TUPLE',
'AC_VERBOSE',
'AC_VFORK',
'AC_VPRINTF',
'AC_WAIT3',
'AC_WARN',
'AC_WARNING',
'AC_WITH',
'AC_WORDS_BIGENDIAN',
'AC_XENIX_DIR',
'AC_YYTEXT_POINTER',
'AH_BOTTOM',
'AH_HEADER',
'AH_TEMPLATE',
'AH_TOP',
'AH_VERBATIM',
'AU_ALIAS',
'AU_DEFUN'),
),
'SYMBOLS' => array('(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>', ';;', '`'),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00ffff;',
),
'COMMENTS' => array(
1 => 'color: #666666;',
2 => 'color: #339900;',
3 => 'color: #666666;',
'MULTI' => 'color: #ff0000; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099;',
1 => 'color: #000099;',
2 => 'color: #660099;',
3 => 'color: #660099;',
4 => 'color: #660099;',
5 => 'color: #006699;',
'HARD' => '',
),
'BRACKETS' => array(
0 => 'color: #008000;'
),
'STRINGS' => array(
0 => 'color: #996600;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;',
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;',
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;',
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
),
'METHODS' => array(
1 => 'color: #202020;',
2 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #008000;',
1 => 'color: #000080;',
2 => 'color: #000040;',
3 => 'color: #000040;',
4 => 'color: #008080;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'COMMENTS' => array(
'DISALLOWED_BEFORE' => '$'
),
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![\.\-a-zA-Z0-9_\$\#])",
'DISALLOWED_AFTER' => "(?![\.\-a-zA-Z0-9_%\\/])"
)
)
);
?>

View File

@ -0,0 +1,373 @@
<?php
/*************************************************************************************
* autohotkey.php
* --------
* Author: Naveen Garg (naveen.garg@gmail.com)
* Copyright: (c) 2009 Naveen Garg and GeSHi
* Release Version: 1.0.8.11
* Date Started: 2009/06/11
*
* Autohotkey language file for GeSHi.
*
* CHANGES
* -------
* Release 1.0.8.5 (2009/06/11)
* - First Release
*
* TODO
* ----
* Reference: http://www.autohotkey.com/docs/
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Autohotkey',
'COMMENT_SINGLE' => array(
1 => ';'
),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'while','if','and','or','else','return'
),
2 => array(
// built in variables
'A_AhkPath','A_AhkVersion','A_AppData','A_AppDataCommon',
'A_AutoTrim','A_BatchLines','A_CaretX','A_CaretY',
'A_ComputerName','A_ControlDelay','A_Cursor','A_DD',
'A_DDD','A_DDDD','A_DefaultMouseSpeed','A_Desktop',
'A_DesktopCommon','A_DetectHiddenText','A_DetectHiddenWindows','A_EndChar',
'A_EventInfo','A_ExitReason','A_FormatFloat','A_FormatInteger',
'A_Gui','A_GuiEvent','A_GuiControl','A_GuiControlEvent',
'A_GuiHeight','A_GuiWidth','A_GuiX','A_GuiY',
'A_Hour','A_IconFile','A_IconHidden','A_IconNumber',
'A_IconTip','A_Index','A_IPAddress1','A_IPAddress2',
'A_IPAddress3','A_IPAddress4','A_ISAdmin','A_IsCompiled',
'A_IsCritical','A_IsPaused','A_IsSuspended','A_KeyDelay',
'A_Language','A_LastError','A_LineFile','A_LineNumber',
'A_LoopField','A_LoopFileAttrib','A_LoopFileDir','A_LoopFileExt',
'A_LoopFileFullPath','A_LoopFileLongPath','A_LoopFileName','A_LoopFileShortName',
'A_LoopFileShortPath','A_LoopFileSize','A_LoopFileSizeKB','A_LoopFileSizeMB',
'A_LoopFileTimeAccessed','A_LoopFileTimeCreated','A_LoopFileTimeModified','A_LoopReadLine',
'A_LoopRegKey','A_LoopRegName','A_LoopRegSubkey','A_LoopRegTimeModified',
'A_LoopRegType','A_MDAY','A_Min','A_MM',
'A_MMM','A_MMMM','A_Mon','A_MouseDelay',
'A_MSec','A_MyDocuments','A_Now','A_NowUTC',
'A_NumBatchLines','A_OSType','A_OSVersion','A_PriorHotkey',
'A_ProgramFiles','A_Programs','A_ProgramsCommon','A_ScreenHeight',
'A_ScreenWidth','A_ScriptDir','A_ScriptFullPath','A_ScriptName',
'A_Sec','A_Space','A_StartMenu','A_StartMenuCommon',
'A_Startup','A_StartupCommon','A_StringCaseSense','A_Tab',
'A_Temp','A_ThisFunc','A_ThisHotkey','A_ThisLabel',
'A_ThisMenu','A_ThisMenuItem','A_ThisMenuItemPos','A_TickCount',
'A_TimeIdle','A_TimeIdlePhysical','A_TimeSincePriorHotkey','A_TimeSinceThisHotkey',
'A_TitleMatchMode','A_TitleMatchModeSpeed','A_UserName','A_WDay',
'A_WinDelay','A_WinDir','A_WorkingDir','A_YDay',
'A_YEAR','A_YWeek','A_YYYY','Clipboard',
'ClipboardAll','ComSpec','ErrorLevel','ProgramFiles',
),
3 => array(
'AutoTrim',
'BlockInput','Break','Click',
'ClipWait','Continue','Control',
'ControlClick','ControlFocus','ControlGet',
'ControlGetFocus','ControlGetPos','ControlGetText',
'ControlMove','ControlSend','ControlSendRaw',
'ControlSetText','CoordMode','Critical',
'DetectHiddenText','DetectHiddenWindows','DllCall','Drive',
'DriveGet','DriveSpaceFree',
'Else','EnvAdd','EnvDiv',
'EnvGet','EnvMult','EnvSet',
'EnvSub','EnvUpdate','Exit',
'ExitApp','FileAppend','FileCopy',
'FileCopyDir','FileCreateDir','FileCreateShortcut',
'FileDelete','FileGetAttrib','FileGetShortcut',
'FileGetSize','FileGetTime','FileGetVersion',
'FileInstall','FileMove','FileMoveDir',
'FileRead','FileReadLine','FileRecycle',
'FileRecycleEmpty','FileRemoveDir','FileSelectFile',
'FileSelectFolder','FileSetAttrib','FileSetTime',
'FormatTime','Gosub',
'Goto','GroupActivate','GroupAdd',
'GroupClose','GroupDeactivate','Gui',
'GuiControl','GuiControlGet','Hotkey',
'IfExist','IfGreater','IfGreaterOrEqual',
'IfInString','IfLess','IfLessOrEqual',
'IfMsgBox','IfNotEqual','IfNotExist',
'IfNotInString','IfWinActive','IfWinExist',
'IfWinNotActive','IfWinNotExist','ImageSearch',
'IniDelete','IniRead','IniWrite',
'Input','InputBox','KeyHistory',
'KeyWait','ListHotkeys','ListLines',
'ListVars','Loop',
'Menu','MouseClick','MouseClickDrag',
'MouseGetPos','MouseMove','MsgBox',
'OnMessage','OnExit','OutputDebug',
'PixelGetColor','PixelSearch','PostMessage',
'Process','Progress','Random',
'RegExMatch','RegExReplace','RegisterCallback',
'RegDelete','RegRead','RegWrite',
'Reload','Repeat','Return',
'Run','RunAs','RunWait',
'Send','SendEvent','SendInput',
'SendMessage','SendMode','SendPlay',
'SendRaw','SetBatchLines','SetCapslockState',
'SetControlDelay','SetDefaultMouseSpeed','SetEnv',
'SetFormat','SetKeyDelay','SetMouseDelay',
'SetNumlockState','SetScrollLockState','SetStoreCapslockMode',
'SetTimer','SetTitleMatchMode','SetWinDelay',
'SetWorkingDir','Shutdown','Sleep',
'Sort','SoundBeep','SoundGet',
'SoundGetWaveVolume','SoundPlay','SoundSet',
'SoundSetWaveVolume','SplashImage','SplashTextOff',
'SplashTextOn','SplitPath','StatusBarGetText',
'StatusBarWait','StringCaseSense','StringGetPos',
'StringLeft','StringLen','StringLower',
'StringMid','StringReplace','StringRight',
'StringSplit','StringTrimLeft','StringTrimRight',
'StringUpper','Suspend','SysGet',
'Thread','ToolTip','Transform',
'TrayTip','URLDownloadToFile','While',
'VarSetCapacity',
'WinActivate','WinActivateBottom','WinClose',
'WinGet','WinGetActiveStats','WinGetActiveTitle',
'WinGetClass','WinGetPos','WinGetText',
'WinGetTitle','WinHide','WinKill',
'WinMaximize','WinMenuSelectItem','WinMinimize',
'WinMinimizeAll','WinMinimizeAllUndo','WinMove',
'WinRestore','WinSet','WinSetTitle',
'WinShow','WinWait','WinWaitActive',
'WinWaitClose','WinWaitNotActive'
),
4 => array(
'Abs','ACos','Asc','ASin',
'ATan','Ceil','Chr','Cos',
'Exp','FileExist','Floor',
'GetKeyState','IL_Add','IL_Create','IL_Destroy',
'InStr','IsFunc','IsLabel','Ln',
'Log','LV_Add','LV_Delete','LV_DeleteCol',
'LV_GetCount','LV_GetNext','LV_GetText','LV_Insert',
'LV_InsertCol','LV_Modify','LV_ModifyCol','LV_SetImageList',
'Mod','NumGet','NumPut',
'Round',
'SB_SetIcon','SB_SetParts','SB_SetText','Sin',
'Sqrt','StrLen','SubStr','Tan',
'TV_Add','TV_Delete','TV_GetChild','TV_GetCount',
'TV_GetNext','TV_Get','TV_GetParent','TV_GetPrev',
'TV_GetSelection','TV_GetText','TV_Modify',
'WinActive','WinExist'
),
5 => array(
// #Directives
'AllowSameLineComments','ClipboardTimeout','CommentFlag',
'ErrorStdOut','EscapeChar','HotkeyInterval',
'HotkeyModifierTimeout','Hotstring','IfWinActive',
'IfWinExist','IfWinNotActive','IfWinNotExist',
'Include','IncludeAgain','InstallKeybdHook',
'InstallMouseHook','KeyHistory','LTrim',
'MaxHotkeysPerInterval','MaxMem','MaxThreads',
'MaxThreadsBuffer','MaxThreadsPerHotkey','NoEnv',
'NoTrayIcon','Persistent','SingleInstance',
'UseHook','WinActivateForce'
),
6 => array(
'Shift','LShift','RShift',
'Alt','LAlt','RAlt',
'LControl','RControl',
'Ctrl','LCtrl','RCtrl',
'LWin','RWin','AppsKey',
'AltDown','AltUp','ShiftDown',
'ShiftUp','CtrlDown','CtrlUp',
'LWinDown','LWinUp','RWinDown',
'RWinUp','LButton','RButton',
'MButton','WheelUp','WheelDown',
'WheelLeft','WheelRight','XButton1',
'XButton2','Joy1','Joy2',
'Joy3','Joy4','Joy5',
'Joy6','Joy7','Joy8',
'Joy9','Joy10','Joy11',
'Joy12','Joy13','Joy14',
'Joy15','Joy16','Joy17',
'Joy18','Joy19','Joy20',
'Joy21','Joy22','Joy23',
'Joy24','Joy25','Joy26',
'Joy27','Joy28','Joy29',
'Joy30','Joy31','Joy32',
'JoyX','JoyY','JoyZ',
'JoyR','JoyU','JoyV',
'JoyPOV','JoyName','JoyButtons',
'JoyAxes','JoyInfo','Space',
'Tab','Enter',
'Escape','Esc','BackSpace',
'BS','Delete','Del',
'Insert','Ins','PGUP',
'PGDN','Home','End',
'Up','Down','Left',
'Right','PrintScreen','CtrlBreak',
'Pause','ScrollLock','CapsLock',
'NumLock','Numpad0','Numpad1',
'Numpad2','Numpad3','Numpad4',
'Numpad5','Numpad6','Numpad7',
'Numpad8','Numpad9','NumpadMult',
'NumpadAdd','NumpadSub','NumpadDiv',
'NumpadDot','NumpadDel','NumpadIns',
'NumpadClear','NumpadUp','NumpadDown',
'NumpadLeft','NumpadRight','NumpadHome',
'NumpadEnd','NumpadPgup','NumpadPgdn',
'NumpadEnter','F1','F2',
'F3','F4','F5',
'F6','F7','F8',
'F9','F10','F11',
'F12','F13','F14',
'F15','F16','F17',
'F18','F19','F20',
'F21','F22','F23',
'F24','Browser_Back','Browser_Forward',
'Browser_Refresh','Browser_Stop','Browser_Search',
'Browser_Favorites','Browser_Home','Volume_Mute',
'Volume_Down','Volume_Up','Media_Next',
'Media_Prev','Media_Stop','Media_Play_Pause',
'Launch_Mail','Launch_Media','Launch_App1',
'Launch_App2'
),
7 => array(
// Gui commands
'Add',
'Show', 'Submit', 'Cancel', 'Destroy',
'Font', 'Color', 'Margin', 'Flash', 'Default',
'GuiEscape','GuiClose','GuiSize','GuiContextMenu','GuiDropFilesTabStop',
),
8 => array(
// Gui Controls
'Button',
'Checkbox','Radio','DropDownList','DDL',
'ComboBox','ListBox','ListView',
'Text', 'Edit', 'UpDown', 'Picture',
'TreeView','DateTime', 'MonthCal',
'Slider'
)
),
'SYMBOLS' => array(
'(',')','[',']',
'+','-','*','/','&','^',
'=','+=','-=','*=','/=','&=',
'==','<','<=','>','>=',':=',
',','.'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
7 => false,
8 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #AAAAFF; font-weight: bold;', // reserved #blue
2 => 'color: #88FF88;', // BIV yellow
3 => 'color: #FF00FF; font-style: italic;', // commands purple
4 => 'color: #888844; font-weight: bold;', // functions #0080FF
5 => 'color: #000000; font-style: italic;', // directives #black
6 => 'color: #FF0000; font-style: italic;', // hotkeys #red
7 => 'color: #000000; font-style: italic;', // gui commands #black
8 => 'color: #000000; font-style: italic;' // gui controls
),
'COMMENTS' => array(
'MULTI' => 'font-style: italic; color: #669900;',
1 => 'font-style: italic; color: #009933;'
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => 'color: #00FF00; font-weight: bold;'
),
'STRINGS' => array(
0 => 'font-weight: bold; color: #008080;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;'
),
'METHODS' => array(
1 => 'color: #0000FF; font-style: italic; font-weight: italic;'
),
'SYMBOLS' => array(
0 => 'color: #000000; font-weight: italic;'
),
'REGEXPS' => array(
0 => 'font-weight: italic; color: #A00A0;',
1 => 'color: #CC0000; font-style: italic;',
2 => 'color: #DD0000; font-style: italic;',
3 => 'color: #88FF88;'
),
'SCRIPT' => array(
)
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
1 => '_'
),
'REGEXPS' => array(
//Variables
0 => '%[a-zA-Z_][a-zA-Z0-9_]*%',
//hotstrings
1 => '::[\w\d]+::',
//labels
2 => '\w[\w\d]+:\s',
//Built-in Variables
3 => '\bA_\w+\b(?![^<]*>)'
),
'URLS' => array(
1 => '',
2 => 'http://www.autohotkey.com/docs/Variables.htm#{FNAME}',
3 => 'http://www.autohotkey.com/docs/commands/{FNAME}.htm',
4 => 'http://www.autohotkey.com/docs/Functions.htm#BuiltIn',
5 => 'http://www.autohotkey.com/docs/commands/_{FNAME}.htm',
6 => '',
7 => 'http://www.autohotkey.com/docs/commands/Gui.htm#{FNAME}',
8 => 'http://www.autohotkey.com/docs/commands/GuiControls.htm#{FNAME}'
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
1 => true,
2 => true,
3 => true
),
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
5 => array(
'DISALLOWED_BEFORE' => '(?<!\w)\#'
)
)
)
);
?>

1175
Sources/geshi/autoit.php Normal file

File diff suppressed because it is too large Load Diff

194
Sources/geshi/avisynth.php Normal file
View File

@ -0,0 +1,194 @@
<?php
/*************************************************************************************
* avisynth.php
* --------
* Author: Ryan Jones (sciguyryan@gmail.com)
* Copyright: (c) 2008 Ryan Jones
* Release Version: 1.0.8.11
* Date Started: 2008/10/08
*
* AviSynth language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/08 (1.0.8.1)
* - First Release
*
* TODO (updated 2008/10/08)
* -------------------------
* * There are also some special words that can't currently be specified directly in GeSHi as they may
* also be used as variables which would really mess things up.
* * Also there is an issue with the escape character as this language uses a muti-character escape system. Escape char should be """ but has been left
* as empty due to this restiction.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'AviSynth',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array('/*' => '*/', '[*' => '*]'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
// Reserved words.
1 => array(
'try', 'cache', 'function', 'global', 'return'
),
// Constants / special variables.
2 => array(
'true', 'yes', 'false', 'no', '__END__'
),
// Internal Filters.
3 => array(
'AviSource', 'AviFileSource', 'AddBorders', 'AlignedSplice', 'AssumeFPS', 'AssumeScaledFPS',
'AssumeFrameBased', 'AssumeFieldBased', 'AssumeBFF', 'AssumeTFF', 'Amplify', 'AmplifydB',
'AssumeSampleRate', 'AudioDub', 'AudioDubEx', 'Animate', 'ApplyRange',
'BicubicResize', 'BilinearResize', 'BlackmanResize', 'Blur', 'Bob', 'BlankClip', 'Blackness',
'ColorYUV', 'ConvertBackToYUY2', 'ConvertToRGB', 'ConvertToRGB24', 'ConvertToRGB32',
'ConvertToYUY2', 'ConvertToY8', 'ConvertToYV411', 'ConvertToYV12', 'ConvertToYV16', 'ConvertToYV24',
'ColorKeyMask', 'Crop', 'CropBottom', 'ChangeFPS', 'ConvertFPS', 'ComplementParity', 'ConvertAudioTo8bit',
'ConvertAudioTo16bit', 'ConvertAudioTo24bit', 'ConvertAudioTo32bit', 'ConvertAudioToFloat', 'ConvertToMono',
'ConditionalFilter', 'ConditionalReader', 'ColorBars', 'Compare',
'DirectShowSource', 'DeleteFrame', 'Dissolve', 'DuplicateFrame', 'DoubleWeave', 'DelayAudio',
'EnsureVBRMP3Sync',
'FixLuminance', 'FlipHorizontal', 'FlipVertical', 'FixBrokenChromaUpsampling', 'FadeIn0', 'FadeIn',
'FadeIn2', 'FadeOut0', 'FadeOut', 'FadeOut2', 'FadeIO0', 'FadeIO', 'FadeIO2', 'FreezeFrame', 'FrameEvaluate',
'GreyScale', 'GaussResize', 'GeneralConvolution', 'GetChannel', 'GetLeftChannel', 'GetRightChannel',
'HorizontalReduceBy2', 'Histogram',
'ImageReader', 'ImageSource', 'ImageWriter', 'Invert', 'Interleave', 'Info',
'KillAudio', 'KillVideo',
'Levels', 'Limiter', 'Layer', 'Letterbox', 'LanczosResize', 'Lanczos4Resize', 'Loop',
'MergeARGB', 'MergeRGB', 'MergeChroma', 'MergeLuma', 'Merge', 'Mask', 'MaskHS', 'MergeChannels', 'MixAudio',
'MonoToStereo', 'MessageClip',
'Normalize',
'OpenDMLSource', 'Overlay',
'PointResize', 'PeculiarBlend', 'Pulldown',
'RGBAdjust', 'ResetMask', 'Reverse', 'ResampleAudio', 'ReduceBy2',
'SegmentedAviSource', 'SegmentedDirectShowSource', 'SoundOut', 'ShowAlpha', 'ShowRed', 'ShowGreen',
'ShowBlue', 'SwapUV', 'Subtract', 'SincResize', 'Spline16Resize', 'Spline36Resize', 'Spline64Resize',
'SelectEven', 'SelectOdd', 'SelectEvery', 'SelectRangeEvery', 'Sharpen', 'SpatialSoften', 'SeparateFields',
'ShowFiveVersions', 'ShowFrameNumber', 'ShowSMPTE', 'ShowTime', 'StackHorizontal', 'StackVertical', 'Subtitle',
'SwapFields', 'SuperEQ', 'SSRC', 'ScriptClip',
'Tweak', 'TurnLeft', 'TurnRight', 'Turn180', 'TemporalSoften', 'TimeStretch', 'TCPServer', 'TCPSource', 'Trim',
'Tone',
'UToY', 'UToY8', 'UnalignedSplice',
'VToY', 'VToY8', 'VerticalReduceBy2', 'Version',
'WavSource', 'Weave', 'WriteFile', 'WriteFileIf', 'WriteFileStart', 'WriteFileEnd',
'YToUV'
),
// Internal functions.
4 => array(
'Abs', 'Apply', 'Assert', 'AverageLuma', 'AverageChromaU', 'AverageChromaV',
'Ceil', 'Cos', 'Chr', 'ChromaUDifference', 'ChromaVDifference',
'Defined', 'Default',
'Exp', 'Exist', 'Eval',
'Floor', 'Frac', 'Float', 'Findstr', 'GetMTMode',
'HexValue',
'Int', 'IsBool', 'IsClip', 'IsFloat', 'IsInt', 'IsString', 'Import',
'LoadPlugin', 'Log', 'LCase', 'LeftStr', 'LumaDifference', 'LoadVirtualDubPlugin', 'LoadVFAPIPlugin',
'LoadCPlugin', 'Load_Stdcall_Plugin',
'Max', 'MulDiv', 'MidStr',
'NOP',
'OPT_AllowFloatAudio', 'OPT_UseWaveExtensible',
'Pi', 'Pow',
'Round', 'Rand', 'RevStr', 'RightStr', 'RGBDifference', 'RGBDifferenceFromPrevious', 'RGBDifferenceToNext',
'Sin', 'Sqrt', 'Sign', 'Spline', 'StrLen', 'String', 'Select', 'SetMemoryMax', 'SetWorkingDir', 'SetMTMode',
'SetPlanarLegacyAlignment',
'Time',
'UCase', 'UDifferenceFromPrevious', 'UDifferenceToNext', 'UPlaneMax', 'UPlaneMin', 'UPlaneMedian',
'UPlaneMinMaxDifference',
'Value', 'VersionNumber', 'VersionString', 'VDifferenceFromPrevious', 'VDifferenceToNext', 'VPlaneMax',
'VPlaneMin', 'VPlaneMedian', 'VPlaneMinMaxDifference',
'YDifferenceFromPrevious', 'YDifferenceToNext', 'YPlaneMax', 'YPlaneMin', 'YPlaneMedian',
'YPlaneMinMaxDifference'
)
),
'SYMBOLS' => array(
'+', '++', '-', '--', '/', '*', '%',
'=', '==', '<', '<=', '>', '>=', '<>', '!=',
'!', '?', ':',
'|', '||', '&&',
'\\',
'(', ')', '{', '}',
'.', ','
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color:#9966CC; font-weight:bold;',
2 => 'color:#0000FF; font-weight:bold;',
3 => 'color:#CC3300; font-weight:bold;',
4 => 'color:#660000; font-weight:bold;'
),
'COMMENTS' => array(
1 => 'color:#008000; font-style:italic;',
'MULTI' => 'color:#000080; font-style:italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color:#000099;'
),
'BRACKETS' => array(
0 => 'color:#006600; font-weight:bold;'
),
'STRINGS' => array(
0 => 'color:#996600;'
),
'NUMBERS' => array(
0 => 'color:#006666;'
),
'METHODS' => array(
1 => 'color:#9900CC;'
),
'SYMBOLS' => array(
0 => 'color:#006600; font-weight:bold;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://avisynth.org/mediawiki/{FNAME}',
4 => ''
),
'REGEXPS' => array(
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

158
Sources/geshi/awk.php Normal file
View File

@ -0,0 +1,158 @@
<?php
/************************************************
* awk.php
* -------
* Author: George Pollard (porges@porg.es)
* Copyright: (c) 2009 George Pollard
* Release Version: 1.0.8.11
* Date Started: 2009/01/28
*
* Awk language file for GeSHi.
*
* CHANGES
* -------
* 2009/01/28 (1.0.8.5)
* - First Release
*
* TODO (updated 2009/01/28)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'awk',
'COMMENT_SINGLE' => array(
1 => '#'
),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array (
1 => array(
'for', 'in', 'if', 'else', 'while', 'do', 'continue', 'break'
),
2 => array(
'BEGIN', 'END'
),
3 => array(
'ARGC', 'ARGV', 'CONVFMT', 'ENVIRON',
'FILENAME', 'FNR', 'FS', 'NF', 'NR', 'OFMT',
'OFS','ORS','RLENGTH','RS','RSTART','SUBSEP'
),
4 => array(
'gsub','index','length','match','split',
'sprintf','sub','substr','tolower','toupper',
'atan2','cos','exp','int','log','rand',
'sin','sqrt','srand'
),
5 => array(
'print','printf','getline','close','fflush','system'
),
6 => array(
'function', 'return'
)
),
'SYMBOLS' => array (
0 => array(
'(',')','[',']','{','}'
),
1 => array(
'!','||','&&'
),
2 => array(
'<','>','<=','>=','==','!='
),
3 => array(
'+','-','*','/','%','^','++','--'
),
4 => array(
'~','!~'
),
5 => array(
'?',':'
)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #C20CB9; font-weight: bold;',
3 => 'color: #4107D5; font-weight: bold;',
4 => 'color: #07D589; font-weight: bold;',
5 => 'color: #0BD507; font-weight: bold;',
6 => 'color: #078CD5; font-weight: bold;'
),
'COMMENTS' => array(
1 => 'color:#808080;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'SYMBOLS' => array(
0 => 'color:black;',
1 => 'color:black;',
2 => 'color:black;',
3 => 'color:black;',
4 => 'color:#C4C364;',
5 => 'color:black;font-weight:bold;'),
'SCRIPT' => array(),
'REGEXPS' => array(
0 => 'color:#000088;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #000000;'
),
'BRACKETS' => array(
0 => 'color: #7a0874; font-weight: bold;'
),
'METHODS' => array()
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array (),
'REGEXPS' => array(
0 => "\\$[a-zA-Z0-9_]+"
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array (),
'HIGHLIGHT_STRICT_BLOCK' => array()
);
?>

185
Sources/geshi/bascomavr.php Normal file
View File

@ -0,0 +1,185 @@
<?php
/*************************************************************************************
* bascomavr.php
* ---------------------------------
* Author: aquaticus.info
* Copyright: (c) 2008 aquaticus.info
* Release Version: 1.0.8.11
* Date Started: 2008/01/09
*
* BASCOM AVR language file for GeSHi.
*
* You can find the BASCOM AVR Website at (www.mcselec.com/bascom-avr.htm)
*
* CHANGES
* -------
* 2008/01/09 (1.0.8.10)
* - First Release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'BASCOM AVR',
'COMMENT_SINGLE' => array(1 => "'"),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
// Navy Blue Bold Keywords
'1WRESET' , '1WREAD' , '1WWRITE' , '1WSEARCHFIRST' , '1WSEARCHNEXT' ,'1WVERIFY' , '1WIRECOUNT',
'CONFIG' , 'ACI' , 'ADC' , 'BCCARD' , 'CLOCK' , 'COM1' ,
'COM2' , 'PS2EMU' , 'ATEMU' , 'I2CSLAVE' ,
'INPUT', 'OUTPUT', 'GRAPHLCD' , 'KEYBOARD' , 'TIMER0' , 'TIMER1' ,
'LCDBUS' , 'LCDMODE' , '1WIRE' , 'LCD' , 'SERIALOUT' ,
'SERIALIN' , 'SPI' , 'LCDPIN' , 'SDA' , 'SCL' ,
'WATCHDOG' , 'PORT' , 'COUNTER0', 'COUNTER1' , 'TCPIP' , 'TWISLAVE' ,
'X10' , 'XRAM' , 'USB',
'BCD' , 'GRAY2BIN' , 'BIN2GRAY' , 'BIN' , 'MAKEBCD' , 'MAKEDEC' , 'MAKEINT' , 'FORMAT' , 'FUSING' , 'BINVAL' ,
'CRC8' , 'CRC16' , 'CRC16UNI' , 'CRC32' , 'HIGH' , 'HIGHW' , 'LOW',
'DATE' , 'TIME' , 'DATE$' , 'TIME$' , 'DAYOFWEEK' , 'DAYOFYEAR' , 'SECOFDAY' , 'SECELAPSED' , 'SYSDAY' , 'SYSSEC' , 'SYSSECELAPSED',
'WAIT' , 'WAITMS' , 'WAITUS' , 'DELAY',
'BSAVE' , 'BLOAD' , 'GET' , 'VER' , 'DISKFREE' , 'DIR' , 'DriveReset' , 'DriveInit' , 'LINE' , 'INITFILESYSTEM' ,
'EOF' , 'WRITE' , 'FLUSH' , 'FREEFILE' , 'FILEATTR' , 'FILEDATE' , 'FILETIME' , 'FILEDATETIME' , 'FILELEN' , 'SEEK' ,
'KILL' , 'DriveGetIdentity' , 'DriveWriteSector' , 'DriveReadSector' , 'LOC' , 'LOF' , 'PUT' , 'OPEN' , 'CLOSE',
'GLCDCMD' , 'GLCDDATA' , 'SETFONT' , 'PSET' , 'SHOWPIC' , 'SHOWPICE' , 'CIRCLE' , 'BOX',
'I2CINIT' , 'I2CRECEIVE' , 'I2CSEND' , 'I2CSTART','I2CSTOP','I2CRBYTE','I2CWBYTE',
'ALIAS' , 'BITWAIT' , 'TOGGLE' , 'RESET' , 'SET' , 'SHIFTIN' , 'SHIFTOUT' , 'DEBOUNCE' , 'PULSEIN' , 'PULSEOUT',
'IDLE' , 'POWERDOWN' , 'POWERSAVE' , 'ON', 'INTERRUPT' , 'ENABLE' , 'DISABLE' , 'START' , 'VERSION' , 'CLOCKDIVISION' , 'CRYSTAL' , 'STOP',
'ADR' , 'ADR2' , 'WRITEEEPROM' , 'CPEEK' , 'CPEEKH' , 'PEEK' , 'POKE' , 'OUT' , 'READEEPROM' , 'DATA' , 'INP' , 'READ' , 'RESTORE' , 'LOOKDOWN' , 'LOOKUP' , 'LOOKUPSTR' , 'LOAD' , 'LOADADR' , 'LOADLABEL' , 'LOADWORDADR' , 'MEMCOPY',
'RC5SEND' , 'RC6SEND' , 'GETRC5' , 'SONYSEND',
'BAUD' , 'BAUD1', 'BUFSPACE' , 'CLEAR', 'ECHO' , 'WAITKEY' , 'ISCHARWAITING' , 'INKEY' , 'INPUTBIN' , 'INPUTHEX' , 'PRINT', 'PRINT1','PRINT0', 'PRINTBIN' , 'SERIN' , 'SEROUT' , 'SPC' , 'MAKEMODBUS',
'SPIIN' , 'SPIINIT' , 'SPIMOVE' , 'SPIOUT', 'SINGLE',
'ASC' , 'UCASE' , 'LCASE' , 'TRIM' , 'SPLIT' , 'LTRIM' , 'INSTR' , 'SPACE' , 'RTRIM' , 'LEFT' , 'LEN' , 'MID' , 'RIGHT' , 'VAL' , 'STR' , 'CHR' , 'CHECKSUM' , 'HEX' , 'HEXVAL',
'BASE64DEC' , 'BASE64ENC' , 'IP2STR' , 'UDPREAD' , 'UDPWRITE' , 'UDPWRITESTR' , 'TCPWRITE' , 'TCPWRITESTR' , 'TCPREAD' , 'GETDSTIP' , 'GETDSTPORT' , 'SOCKETSTAT' , 'SOCKETCONNECT' , 'SOCKETLISTEN' , 'GETSOCKET' , 'CLOSESOCKET' ,
'SETTCP' , 'GETTCPREGS' , 'SETTCPREGS' , 'SETIPPROTOCOL' , 'TCPCHECKSUM',
'HOME' , 'CURSOR' , 'UPPERLINE' , 'THIRDLINE' , 'INITLCD' , 'LOWERLINE' , 'LCDAT' , 'FOURTHLINE' , 'DISPLAY' , 'LCDCONTRAST' , 'LOCATE' , 'SHIFTCURSOR' , 'DEFLCDCHAR' , 'SHIFTLCD' , 'CLS',
'ACOS' , 'ASIN' , 'ATN' , 'ATN2' , 'EXP' , 'RAD2DEG' , 'FRAC' , 'TAN' , 'TANH' , 'COS' , 'COSH' , 'LOG' , 'LOG10' , 'ROUND' , 'ABS' , 'INT' , 'MAX' , 'MIN' , 'SQR' , 'SGN' , 'POWER' , 'SIN' , 'SINH' , 'FIX' , 'INCR' , 'DECR' , 'DEG2RAD',
'DBG' , 'DEBUG', 'DTMFOUT' , 'ENCODER' , 'GETADC' , 'GETKBD' , 'GETATKBD' , 'GETRC' , 'VALUE' , 'POPALL' , 'PS2MOUSEXY' , 'PUSHALL' ,
'RETURN' , 'RND' , 'ROTATE' , 'SENDSCAN' , 'SENDSCANKBD' , 'SHIFT' , 'SOUND' , 'STCHECK' , 'SWAP' , 'VARPTR' , 'X10DETECT' , 'X10SEND' , 'READMAGCARD' , 'REM' , 'BITS' , 'BYVAL' , 'CALL' , 'READHITAG',
'Buffered', 'Size', 'Dummy', 'Parity', 'None', 'Stopbits', 'Databits', 'Clockpol', 'Synchrone', 'Prescaler', 'Reference', 'int0', 'int1', 'Interrupts',
'Auto', 'avcc', 'ack', 'nack', 'Pin', 'Db4', 'Db3', 'Db2', 'Db1', 'Db7', 'Db6', 'Db5', 'Db0', 'e', 'rs', 'twi',
),
2 => array(
// Red Lowercase Keywords
'$ASM' , '$BAUD' , '$BAUD1' , '$BGF' , '$BOOT' , '$CRYSTAL' , '$DATA' , '$DBG' , '$DEFAULT' , '$EEPLEAVE' , '$EEPROM' ,
'$EEPROMHEX' , '$EXTERNAL' , '$HWSTACK' , '$INC' , '$INCLUDE' , '$INITMICRO' , '$LCD' , '$LCDRS' , '$LCDPUTCTRL' ,
'$LCDPUTDATA' , '$LCDVFO' , '$LIB' , '$LOADER' , '$LOADERSIZE' , '$MAP' , '$NOCOMPILE' , '$NOINIT' , '$NORAMCLEAR' ,
'$PROG' , '$PROGRAMMER' , '$REGFILE' , '$RESOURCE' , '$ROMSTART', '$SERIALINPUT', '$SERIALINPUT1' , '$SERIALINPUT2LCD' ,
'$SERIALOUTPUT' , '$SERIALOUTPUT1' , '$SIM' , '$SWSTACK' , '$TIMEOUT' , '$TINY' , '$WAITSTATE' , '$XRAMSIZE' , '$XRAMSTART', '$XA',
'#IF' , '#ELSE' , '#ENDIF', '$framesize'
),
3 => array(
// Blue Lowercase Keywords
'IF', 'THEN', 'ELSE', 'END', 'WHILE', 'WEND', 'DO', 'LOOP', 'SELECT', 'CASE', 'FOR', 'NEXT',
'GOSUB' , 'GOTO' , 'LOCAL' , 'SUB' , 'DEFBIT', 'DEFBYTE', 'DEFINT', 'DEFWORD', 'DEFLNG', 'DEFSNG', 'DEFDBL',
'CONST', 'DECLARE', 'FUNCTION', 'DIM', 'EXIT', 'LONG', 'INTEGER', 'BYTE', 'AS', 'STRING', 'WORD'
),
4 => array(
//light blue
'PINA.0', 'PINA.1', 'PINA.2', 'PINA.3', 'PINA.4', 'PINA.5', 'PINA.6', 'PINA.7',
'PINB.0', 'PINB.1', 'PINB.2', 'PINB.3', 'PINB.4', 'PINB.5', 'PINB.6', 'PINB.7',
'PINC.0', 'PINC.1', 'PINC.2', 'PINC.3', 'PINC.4', 'PINC.5', 'PINC.6', 'PINC.7',
'PIND.0', 'PIND.1', 'PIND.2', 'PIND.3', 'PIND.4', 'PIND.5', 'PIND.6', 'PIND.7',
'PINE.0', 'PINE.1', 'PINE.2', 'PINE.3', 'PINE.4', 'PINE.5', 'PINE.6', 'PINE.7',
'PINF.0', 'PINF.1', 'PINF.2', 'PINF.3', 'PINF.4', 'PINF.5', 'PINF.6', 'PINF.7',
'PORTA.0', 'PORTA.1', 'PORTA.2', 'PORTA.3', 'PORTA.4', 'PORTA.5', 'PORTA.6', 'PORTA.7',
'PORTB.0', 'PORTB.1', 'PORTB.2', 'PORTB.3', 'PORTB.4', 'PORTB.5', 'PORTB.6', 'PORTB.7',
'PORTC.0', 'PORTC.1', 'PORTC.2', 'PORTC.3', 'PORTC.4', 'PORTC.5', 'PORTC.6', 'PORTC.7',
'PORTD.0', 'PORTD.1', 'PORTD.2', 'PORTD.3', 'PORTD.4', 'PORTD.5', 'PORTD.6', 'PORTD.7',
'PORTE.0', 'PORTE.1', 'PORTE.2', 'PORTE.3', 'PORTE.4', 'PORTE.5', 'PORTE.6', 'PORTE.7',
'PORTF.0', 'PORTF.1', 'PORTF.2', 'PORTF.3', 'PORTF.4', 'PORTF.5', 'PORTF.6', 'PORTF.7',
'DDRA.0', 'DDRA.1', 'DDRA.2', 'DDRA.3', 'DDRA.4', 'DDRA.5', 'DDRA.6', 'DDRA.7',
'DDRB.0', 'DDRB.1', 'DDRB.2', 'DDRB.3', 'DDRB.4', 'DDRB.5', 'DDRB.6', 'DDRB.7',
'DDRC.0', 'DDRC.1', 'DDRC.2', 'DDRC.3', 'DDRC.4', 'DDRC.5', 'DDRC.6', 'DDRC.7',
'DDRD.0', 'DDRD.1', 'DDRD.2', 'DDRD.3', 'DDRD.4', 'DDRD.5', 'DDRD.6', 'DDRD.7',
'DDRE.0', 'DDRE.1', 'DDRE.2', 'DDRE.3', 'DDRE.4', 'DDRE.5', 'DDRE.6', 'DDRE.7',
'DDRF.0', 'DDRF.1', 'DDRF.2', 'DDRF.3', 'DDRF.4', 'DDRF.5', 'DDRF.6', 'DDRF.7',
'DDRA','DDRB','DDRC','DDRD','DDRE','DDRF',
'PORTA','PORTB','PORTC','PORTD','PORTE','PORTF',
'PINA','PINB','PINC','PIND','PINE','PINF',
)
),
'SYMBOLS' => array(
'=', '<', '>', '>=', '<=', '+', '-', '*', '/', '%', '(', ')', '{', '}', '[', ']', ';', ':', '$', '&H'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000080; font-weight: bold;',
2 => 'color: #FF0000;',
3 => 'color: #0000FF;',
4 => 'color: #0080FF;',
),
'COMMENTS' => array(
1 => 'color: #657CC4; font-style: italic;'
),
'BRACKETS' => array(
0 => 'color: #000080;'
),
'STRINGS' => array(
0 => 'color: #008000;'
),
'NUMBERS' => array(
0 => 'color: #000080; font-weight: bold;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #0000FF;'
),
'ESCAPE_CHAR' => array(
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

440
Sources/geshi/bash.php Normal file
View File

@ -0,0 +1,440 @@
<?php
/*************************************************************************************
* bash.php
* --------
* Author: Andreas Gohr (andi@splitbrain.org)
* Copyright: (c) 2004 Andreas Gohr, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2004/08/20
*
* BASH language file for GeSHi.
*
* CHANGES
* -------
* 2008/06/21 (1.0.8)
* - Added loads of keywords and commands of GNU/Linux
* - Added support for parameters starting with a dash
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
* 2007/09/05 (1.0.7.21)
* - PARSER_CONTROL patch using SF #1788408 (BenBE)
* 2007/06/11 (1.0.7.20)
* - Added a lot of keywords (BenBE / Jan G)
* 2004/11/27 (1.0.2)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.1)
* - Added support for URLs
* 2004/08/20 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
* * Get symbols working
* * Highlight builtin vars
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Bash',
// Bash DOES have single line comments with # markers. But bash also has
// the $# variable, so comments need special handling (see sf.net
// 1564839)
'COMMENT_SINGLE' => array('#'),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(
//Variables
1 => "/\\$\\{[^\\n\\}]*?\\}/i",
//BASH-style Heredoc
2 => '/<<-?\s*?(\'?)([a-zA-Z0-9]+)\1\\n.*\\n\\2(?![a-zA-Z0-9])/siU',
//Escaped String Starters
3 => "/\\\\['\"]/siU",
// Single-Line Shell usage: Hide the prompt at the beginning
/* 4 => "/\A(?!#!)\s*(?>[\w:@\\/\\-\\._~]*[$#]\s?)?(?=[^\n]+\n?\Z)|^(?!#!)(\w+@)?[\w\\-\\.]+(:~?)[\w\\/\\-\\._]*?[$#]\s?/ms" */
4 => "/\A(?!#!)(?:(?>[\w:@\\/\\-\\._~]*)[$#]\s?)(?=(?>[^\n]+)\n?\Z)|^(?!#!)(?:\w+@)?(?>[\w\\-\\.]+)(?>:~?[\w\\/\\-\\._]*?)?[$#]\s?/sm"
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'HARDQUOTE' => array("'", "'"),
'HARDESCAPE' => array("\'"),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
//Simple Single Char Escapes
1 => "#\\\\[nfrtv\\$\\\"\n]#i",
// $var
2 => "#\\$[a-z_][a-z0-9_]*#i",
// ${...}
3 => "/\\$\\{[^\\n\\}]*?\\}/i",
// $(...)
4 => "/\\$\\([^\\n\\)]*?\\)/i",
// `...`
5 => "/`[^`]*`/"
),
'KEYWORDS' => array(
1 => array(
'case', 'do', 'done', 'elif', 'else', 'esac', 'fi', 'for', 'function',
'if', 'in', 'select', 'set', 'then', 'until', 'while', 'time'
),
2 => array(
'aclocal', 'aconnect', 'apachectl', 'apache2ctl', 'aplay', 'apm',
'apmsleep', 'apropos', 'apt-cache', 'apt-cdrom', 'apt-config',
'apt-file', 'apt-ftparchive', 'apt-get', 'apt-key', 'apt-listbugs',
'apt-listchanges', 'apt-mark', 'apt-mirror', 'apt-sortpkgs',
'apt-src', 'apticron', 'aptitude', 'aptsh', 'apxs', 'apxs2', 'ar',
'arch', 'arecord', 'as', 'as86', 'ash', 'autoconf', 'autoheader',
'automake', 'awk',
'apachectl start', 'apachectl stop', 'apachectl restart',
'apachectl graceful', 'apachectl graceful-stop',
'apachectl configtest', 'apachectl status', 'apachectl fullstatus',
'apachectl help', 'apache2ctl start', 'apache2ctl stop',
'apache2ctl restart', 'apache2ctl graceful',
'apache2ctl graceful-stop', 'apache2ctl configtest',
'apache2ctl status', 'apache2ctl fullstatus', 'apache2ctl help',
'apt-cache add', 'apt-cache depends', 'apt-cache dotty',
'apt-cache dump', 'apt-cache dumpavail', 'apt-cache gencaches',
'apt-cache pkgnames', 'apt-cache policy', 'apt-cache rdepends',
'apt-cache search', 'apt-cache show', 'apt-cache showauto',
'apt-cache showpkg', 'apt-cache showsrc', 'apt-cache stats',
'apt-cache unmet', 'apt-cache xvcg', 'apt-cdrom add',
'apt-cdrom ident', 'apt-config dump', 'apt-config shell',
'apt-file find', 'apt-file list', 'apt-file purge',
'apt-file search', 'apt-file shot', 'apt-file update',
'apt-get autoclean', 'apt-get autoremove', 'apt-get build-dep',
'apt-get check', 'apt-get clean', 'apt-get dist-upgrade',
'apt-get dselect-upgrade', 'apt-get install', 'apt-get markauto',
'apt-get purge', 'apt-get remove', 'apt-get source',
'apt-get unmarkauto', 'apt-get update', 'apt-get upgrade',
'apt-key add', 'apt-key adv', 'apt-key del', 'apt-key export',
'apt-key exportall', 'apt-key finger', 'apt-key list',
'apt-key net-update', 'apt-key update', 'apt-listbugs apt',
'apt-listbugs list', 'apt-listbugs rss', 'apt-src build',
'apt-src clean', 'apt-src import', 'apt-src install',
'apt-src list', 'apt-src location', 'apt-src name',
'apt-src remove', 'apt-src update', 'apt-src upgrade',
'apt-src version',
'basename', 'bash', 'bc', 'bison', 'bunzip2', 'bzcat',
'bzcmp', 'bzdiff', 'bzegrep', 'bzfgrep', 'bzgrep',
'bzip2', 'bzip2recover', 'bzless', 'bzmore',
'c++', 'cal', 'cat', 'chattr', 'cc', 'cdda2wav', 'cdparanoia',
'cdrdao', 'cd-read', 'cdrecord', 'chfn', 'chgrp', 'chmod',
'chown', 'chroot', 'chsh', 'chvt', 'clear', 'cmp', 'comm', 'co',
'col', 'cp', 'cpio', 'cpp', 'csh', 'cut', 'cvs', 'cvs-pserver',
'cvs add', 'cvs admin', 'cvs annotate', 'cvs checkout',
'cvs commit', 'cvs diff', 'cvs edit', 'cvs editors', 'cvs export',
'cvs history', 'cvs import', 'cvs init', 'cvs log', 'cvs login',
'cvs logout', 'cvs ls', 'cvs pserver', 'cvs rannotate',
'cvs rdiff', 'cvs release', 'cvs remove', 'cvs rlog', 'cvs rls',
'cvs rtag', 'cvs server', 'cvs status', 'cvs tag', 'cvs unedit',
'cvs update', 'cvs version', 'cvs watch', 'cvs watchers',
'dash', 'date', 'dc', 'dch', 'dcop', 'dd', 'ddate', 'ddd',
'deallocvt', 'debconf', 'defoma', 'depmod', 'df', 'dh',
'dialog', 'diff', 'diff3', 'dig', 'dir', 'dircolors', 'directomatic',
'dirname', 'dmesg', 'dnsdomainname', 'domainname', 'dpkg',
'dselect', 'du', 'dumpkeys',
'ed', 'egrep', 'env', 'expr',
'false', 'fbset', 'fdisk', 'ffmpeg', 'fgconsole','fgrep', 'file',
'find', 'flex', 'flex++', 'fmt', 'free', 'ftp', 'funzip', 'fuser',
'g++', 'gawk', 'gc','gcc', 'gdb', 'getent', 'getkeycodes',
'getopt', 'gettext', 'gettextize', 'gimp', 'gimp-remote',
'gimptool', 'gmake', 'gocr', 'grep', 'groups', 'gs', 'gunzip',
'gzexe', 'gzip',
'git', 'git add', 'git add--interactive', 'git am', 'git annotate',
'git apply', 'git archive', 'git bisect', 'git bisect--helper',
'git blame', 'git branch', 'git bundle', 'git cat-file',
'git check-attr', 'git checkout', 'git checkout-index',
'git check-ref-format', 'git cherry', 'git cherry-pick',
'git clean', 'git clone', 'git commit', 'git commit-tree',
'git config', 'git count-objects', 'git daemon', 'git describe',
'git diff', 'git diff-files', 'git diff-index', 'git difftool',
'git difftool--helper', 'git diff-tree', 'git fast-export',
'git fast-import', 'git fetch', 'git fetch-pack',
'git filter-branch', 'git fmt-merge-msg', 'git for-each-ref',
'git format-patch', 'git fsck', 'git fsck-objects', 'git gc',
'git get-tar-commit-id', 'git grep', 'git hash-object', 'git help',
'git http-backend', 'git http-fetch', 'git http-push',
'git imap-send', 'git index-pack', 'git init', 'git init-db',
'git instaweb', 'git log', 'git lost-found', 'git ls-files',
'git ls-remote', 'git ls-tree', 'git mailinfo', 'git mailsplit',
'git merge', 'git merge-base', 'git merge-file', 'git merge-index',
'git merge-octopus', 'git merge-one-file', 'git merge-ours',
'git merge-recursive', 'git merge-resolve', 'git merge-subtree',
'git mergetool', 'git merge-tree', 'git mktag', 'git mktree',
'git mv', 'git name-rev', 'git notes', 'git pack-objects',
'git pack-redundant', 'git pack-refs', 'git patch-id',
'git peek-remote', 'git prune', 'git prune-packed', 'git pull',
'git push', 'git quiltimport', 'git read-tree', 'git rebase',
'git rebase--interactive', 'git receive-pack', 'git reflog',
'git relink', 'git remote', 'git remote-ftp', 'git remote-ftps',
'git remote-http', 'git remote-https', 'git remote-testgit',
'git repack', 'git replace', 'git repo-config', 'git request-pull',
'git rerere', 'git reset', 'git revert', 'git rev-list',
'git rev-parse', 'git rm', 'git send-pack', 'git shell',
'git shortlog', 'git show', 'git show-branch', 'git show-index',
'git show-ref', 'git stage', 'git stash', 'git status',
'git stripspace', 'git submodule', 'git symbolic-ref', 'git tag',
'git tar-tree', 'git unpack-file', 'git unpack-objects',
'git update-index', 'git update-ref', 'git update-server-info',
'git upload-archive', 'git upload-pack', 'git var',
'git verify-pack', 'git verify-tag', 'git web--browse',
'git whatchanged', 'git write-tree',
'gitaction', 'git-add', 'git-add--interactive', 'git-am',
'git-annotate', 'git-apply', 'git-archive', 'git-bisect',
'git-bisect--helper', 'git-blame', 'git-branch', 'git-bundle',
'git-cat-file', 'git-check-attr', 'git-checkout',
'git-checkout-index', 'git-check-ref-format', 'git-cherry',
'git-cherry-pick', 'git-clean', 'git-clone', 'git-commit',
'git-commit-tree', 'git-config', 'git-count-objects', 'git-daemon',
'git-describe', 'git-diff', 'git-diff-files', 'git-diff-index',
'git-difftool', 'git-difftool--helper', 'git-diff-tree',
'gitdpkgname', 'git-fast-export', 'git-fast-import', 'git-fetch',
'git-fetch-pack', 'git-fetch--tool', 'git-filter-branch', 'gitfm',
'git-fmt-merge-msg', 'git-for-each-ref', 'git-format-patch',
'git-fsck', 'git-fsck-objects', 'git-gc', 'git-get-tar-commit-id',
'git-grep', 'git-hash-object', 'git-help', 'git-http-fetch',
'git-http-push', 'git-imap-send', 'git-index-pack', 'git-init',
'git-init-db', 'git-instaweb', 'gitkeys', 'git-log',
'git-lost-found', 'git-ls-files', 'git-ls-remote', 'git-ls-tree',
'git-mailinfo', 'git-mailsplit', 'git-merge', 'git-merge-base',
'git-merge-file', 'git-merge-index', 'git-merge-octopus',
'git-merge-one-file', 'git-merge-ours', 'git-merge-recursive',
'git-merge-resolve', 'git-merge-subtree', 'git-mergetool',
'git-mergetool--lib', 'git-merge-tree', 'gitmkdirs', 'git-mktag',
'git-mktree', 'gitmount', 'git-mv', 'git-name-rev',
'git-pack-objects', 'git-pack-redundant', 'git-pack-refs',
'git-parse-remote', 'git-patch-id', 'git-peek-remote', 'git-prune',
'git-prune-packed', 'gitps', 'git-pull', 'git-push',
'git-quiltimport', 'git-read-tree', 'git-rebase',
'git-rebase--interactive', 'git-receive-pack', 'git-reflog',
'gitregrep', 'git-relink', 'git-remote', 'git-repack',
'git-repo-config', 'git-request-pull', 'git-rerere', 'git-reset',
'git-revert', 'git-rev-list', 'git-rev-parse', 'gitrfgrep',
'gitrgrep', 'git-rm', 'git-send-pack', 'git-shell', 'git-shortlog',
'git-show', 'git-show-branch', 'git-show-index', 'git-show-ref',
'git-sh-setup', 'git-stage', 'git-stash', 'git-status',
'git-stripspace', 'git-submodule', 'git-svn', 'git-symbolic-ref',
'git-tag', 'git-tar-tree', 'gitunpack', 'git-unpack-file',
'git-unpack-objects', 'git-update-index', 'git-update-ref',
'git-update-server-info', 'git-upload-archive', 'git-upload-pack',
'git-var', 'git-verify-pack', 'git-verify-tag', 'gitview',
'git-web--browse', 'git-whatchanged', 'gitwhich', 'gitwipe',
'git-write-tree', 'gitxgrep',
'head', 'hexdump', 'hostname',
'id', 'ifconfig', 'ifdown', 'ifup', 'igawk', 'install',
'ip', 'ip addr', 'ip addrlabel', 'ip link', 'ip maddr', 'ip mroute',
'ip neigh', 'ip route', 'ip rule', 'ip tunnel', 'ip xfrm',
'join',
'kbd_mode','kbdrate', 'kdialog', 'kfile', 'kill', 'killall',
'lame', 'last', 'lastb', 'ld', 'ld86', 'ldd', 'less', 'lex', 'link',
'ln', 'loadkeys', 'loadunimap', 'locate', 'lockfile', 'login',
'logname', 'lp', 'lpr', 'ls', 'lsattr', 'lsmod', 'lsmod.old',
'lspci', 'ltrace', 'lynx',
'm4', 'make', 'man', 'mapscrn', 'mesg', 'mkdir', 'mkfifo',
'mknod', 'mktemp', 'more', 'mount', 'mplayer', 'msgfmt', 'mv',
'namei', 'nano', 'nasm', 'nawk', 'netstat', 'nice',
'nisdomainname', 'nl', 'nm', 'nm86', 'nmap', 'nohup', 'nop',
'od', 'openvt',
'passwd', 'patch', 'pcregrep', 'pcretest', 'perl', 'perror',
'pgawk', 'pidof', 'ping', 'pr', 'procmail', 'prune', 'ps', 'pstree',
'ps2ascii', 'ps2epsi', 'ps2frag', 'ps2pdf', 'ps2ps', 'psbook',
'psmerge', 'psnup', 'psresize', 'psselect', 'pstops',
'rbash', 'rcs', 'rcs2log', 'read', 'readlink', 'red', 'resizecons',
'rev', 'rm', 'rmdir', 'rsh', 'run-parts',
'sash', 'scp', 'screen', 'sed', 'seq', 'sendmail', 'setfont',
'setkeycodes', 'setleds', 'setmetamode', 'setserial', 'setterm',
'sh', 'showkey', 'shred', 'size', 'size86', 'skill', 'sleep',
'slogin', 'snice', 'sort', 'sox', 'split', 'ssed', 'ssh', 'ssh-add',
'ssh-agent', 'ssh-keygen', 'ssh-keyscan', 'stat', 'strace',
'strings', 'strip', 'stty', 'su', 'sudo', 'suidperl', 'sum', 'svn',
'svnadmin', 'svndumpfilter', 'svnlook', 'svnmerge', 'svnmucc',
'svnserve', 'svnshell', 'svnsync', 'svnversion', 'svnwrap', 'sync',
'svn add', 'svn ann', 'svn annotate', 'svn blame', 'svn cat',
'svn changelist', 'svn checkout', 'svn ci', 'svn cl', 'svn cleanup',
'svn co', 'svn commit', 'svn copy', 'svn cp', 'svn del',
'svn delete', 'svn di', 'svn diff', 'svn export', 'svn h',
'svn help', 'svn import', 'svn info', 'svn list', 'svn lock',
'svn log', 'svn ls', 'svn merge', 'svn mergeinfo', 'svn mkdir',
'svn move', 'svn mv', 'svn pd', 'svn pdel', 'svn pe', 'svn pedit',
'svn pg', 'svn pget', 'svn pl', 'svn plist', 'svn praise',
'svn propdel', 'svn propedit', 'svn propget', 'svn proplist',
'svn propset', 'svn ps', 'svn pset', 'svn remove', 'svn ren',
'svn rename', 'svn resolve', 'svn resolved', 'svn revert', 'svn rm',
'svn st', 'svn stat', 'svn status', 'svn sw', 'svn switch',
'svn unlock', 'svn up', 'svn update',
'tac', 'tail', 'tar', 'tee', 'tempfile', 'touch', 'tr', 'tree',
'true',
'umount', 'uname', 'unicode_start', 'unicode_stop', 'uniq',
'unlink', 'unzip', 'updatedb', 'updmap', 'uptime', 'users',
'utmpdump', 'uuidgen',
'valgrind', 'vdir', 'vi', 'vim', 'vmstat',
'w', 'wall', 'watch', 'wc', 'wget', 'whatis', 'whereis',
'which', 'whiptail', 'who', 'whoami', 'whois', 'wine', 'wineboot',
'winebuild', 'winecfg', 'wineconsole', 'winedbg', 'winedump',
'winefile', 'wodim', 'write',
'xargs', 'xhost', 'xmodmap', 'xset',
'yacc', 'yes', 'ypdomainname', 'yum',
'yum check-update', 'yum clean', 'yum deplist', 'yum erase',
'yum groupinfo', 'yum groupinstall', 'yum grouplist',
'yum groupremove', 'yum groupupdate', 'yum info', 'yum install',
'yum list', 'yum localinstall', 'yum localupdate', 'yum makecache',
'yum provides', 'yum remove', 'yum resolvedep', 'yum search',
'yum shell', 'yum update', 'yum upgrade', 'yum whatprovides',
'zcat', 'zcmp', 'zdiff', 'zdump', 'zegrep', 'zfgrep', 'zforce',
'zgrep', 'zip', 'zipgrep', 'zipinfo', 'zless', 'zmore', 'znew',
'zsh', 'zsoelim'
),
3 => array(
'alias', 'bg', 'bind', 'break', 'builtin', 'cd', 'command',
'compgen', 'complete', 'continue', 'declare', 'dirs', 'disown',
'echo', 'enable', 'eval', 'exec', 'exit', 'export', 'fc',
'fg', 'getopts', 'hash', 'help', 'history', 'jobs', 'let',
'local', 'logout', 'popd', 'printf', 'pushd', 'pwd', 'readonly',
'return', 'shift', 'shopt', 'source', 'suspend', 'test', 'times',
'trap', 'type', 'typeset', 'ulimit', 'umask', 'unalias', 'unset',
'wait'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>', ';;', '`'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #c20cb9; font-weight: bold;',
3 => 'color: #7a0874; font-weight: bold;'
),
'COMMENTS' => array(
0 => 'color: #666666; font-style: italic;',
1 => 'color: #800000;',
2 => 'color: #cc0000; font-style: italic;',
3 => 'color: #000000; font-weight: bold;',
4 => 'color: #666666;'
),
'ESCAPE_CHAR' => array(
1 => 'color: #000099; font-weight: bold;',
2 => 'color: #007800;',
3 => 'color: #007800;',
4 => 'color: #007800;',
5 => 'color: #780078;',
'HARD' => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #7a0874; font-weight: bold;'
),
'STRINGS' => array(
0 => 'color: #ff0000;',
'HARD' => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #000000;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #000000; font-weight: bold;'
),
'REGEXPS' => array(
0 => 'color: #007800;',
1 => 'color: #007800;',
2 => 'color: #007800;',
4 => 'color: #007800;',
5 => 'color: #660033;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
//Variables (will be handled by comment_regexps)
0 => "\\$\\{[a-zA-Z_][a-zA-Z0-9_]*?\\}",
//Variables without braces
1 => "\\$[a-zA-Z_][a-zA-Z0-9_]*",
//Variable assignment
2 => "(?<![\.a-zA-Z_\-])([a-zA-Z_][a-zA-Z0-9_]*?)(?==)",
//Shorthand shell variables
4 => "\\$[*#\$\\-\\?!\d]",
//Parameters of commands
5 => "(?<=\s)--?[0-9a-zA-Z\-]+(?=[\s=]|<(?:SEMI|PIPE)>|$)"
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'COMMENTS' => array(
'DISALLOWED_BEFORE' => '$'
),
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![\.\-a-zA-Z0-9_\$\#:])",
'DISALLOWED_AFTER' => "(?![\.\-a-zA-Z0-9_%=\\/:])",
2 => array(
'SPACE_AS_WHITESPACE' => false
)
)
)
);
?>

341
Sources/geshi/basic4gl.php Normal file
View File

@ -0,0 +1,341 @@
<?php
/*************************************************************************************
* basic4gl.php
* ---------------------------------
* Author: Matthew Webb (bmatthew1@blueyonder.co.uk)
* Copyright: (c) 2004 Matthew Webb (http://matthew-4gl.wikispaces.com)
* Release Version: 1.0.8.11
* Date Started: 2007/09/15
*
* Basic4GL language file for GeSHi.
*
* You can find the Basic4GL Website at (http://www.basic4gl.net/)
*
* CHANGES
* -------
* 2007/09/17 (1.0.0)
* - First Release
*
* TODO (updated 2007/09/17)
* -------------------------
* Make sure all the OpenGL and Basic4GL commands have been added and are complete.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Basic4GL',
'COMMENT_SINGLE' => array(1 => "'"),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
// Navy Blue Bold Keywords
'true','rnd_max','m_pi','m_e','false','VK_ZOOM','VK_UP','VK_TAB','VK_SUBTRACT','VK_SPACE','VK_SNAPSHOT',
'VK_SHIFT','VK_SEPARATOR','VK_SELECT','VK_SCROLL','VK_RWIN','VK_RSHIFT','VK_RMENU','VK_RIGHT','VK_RETURN',
'VK_RCONTROL','VK_RBUTTON','VK_PROCESSKEY','VK_PRIOR','VK_PRINT','VK_PLAY','VK_PAUSE','VK_NUMPAD9','VK_NUMPAD8',
'VK_NUMPAD7','VK_NUMPAD6','VK_NUMPAD5','VK_NUMPAD4','VK_NUMPAD3','VK_NUMPAD2','VK_NUMPAD1','VK_NUMPAD0',
'VK_NUMLOCK','VK_NONCONVERT','VK_NEXT','VK_MULTIPLY','VK_MODECHANGE','VK_MENU','VK_MBUTTON','VK_LWIN',
'VK_LSHIFT','VK_LMENU','VK_LEFT','VK_LCONTROL','VK_LBUTTON','VK_KANJI','VK_KANA','VK_JUNJA','VK_INSERT',
'VK_HOME','VK_HELP','VK_HANJA','VK_HANGUL','VK_HANGEUL','VK_FINAL','VK_F9','VK_F8','VK_F7','VK_F6','VK_F5',
'VK_F4','VK_F3','VK_F24','VK_F23','VK_F22','VK_F21','VK_F20','VK_F2','VK_F19','VK_F18','VK_F17','VK_F16',
'VK_F15','VK_F14','VK_F13','VK_F12','VK_F11','VK_F10','VK_F1','VK_EXSEL','VK_EXECUTE','VK_ESCAPE','VK_EREOF',
'VK_END','VK_DOWN','VK_DIVIDE','VK_DELETE','VK_DECIMAL','VK_CRSEL','VK_CONVERT','VK_CONTROL','VK_CLEAR',
'VK_CAPITAL','VK_CANCEL','VK_BACK','VK_ATTN','VK_APPS','VK_ADD','VK_ACCEPT','TEXT_SIMPLE','TEXT_OVERLAID',
'TEXT_BUFFERED','SPR_TILEMAP','SPR_SPRITE','SPR_INVALID','MOUSE_RBUTTON','MOUSE_MBUTTON','MOUSE_LBUTTON',
'GL_ZOOM_Y','GL_ZOOM_X','GL_ZERO','GL_XOR','GL_WIN_swap_hint','GL_WIN_draw_range_elements','GL_VIEWPORT_BIT',
'GL_VIEWPORT','GL_VERTEX_ARRAY_TYPE_EXT','GL_VERTEX_ARRAY_TYPE','GL_VERTEX_ARRAY_STRIDE_EXT','GL_VERTEX_ARRAY_STRIDE',
'GL_VERTEX_ARRAY_SIZE_EXT','GL_VERTEX_ARRAY_SIZE','GL_VERTEX_ARRAY_POINTER_EXT','GL_VERTEX_ARRAY_POINTER',
'GL_VERTEX_ARRAY_EXT','GL_VERTEX_ARRAY_COUNT_EXT','GL_VERTEX_ARRAY','GL_VERSION_1_1','GL_VERSION','GL_VENDOR',
'GL_V3F','GL_V2F','GL_UNSIGNED_SHORT','GL_UNSIGNED_INT','GL_UNSIGNED_BYTE','GL_UNPACK_SWAP_BYTES','GL_UNPACK_SKIP_ROWS',
'GL_UNPACK_SKIP_PIXELS','GL_UNPACK_ROW_LENGTH','GL_UNPACK_LSB_FIRST','GL_UNPACK_ALIGNMENT','GL_TRUE','GL_TRIANGLE_STRIP',
'GL_TRIANGLE_FAN','GL_TRIANGLES','GL_TRANSFORM_BIT','GL_TEXTURE_WRAP_T','GL_TEXTURE_WRAP_S','GL_TEXTURE_WIDTH',
'GL_TEXTURE_STACK_DEPTH','GL_TEXTURE_RESIDENT','GL_TEXTURE_RED_SIZE','GL_TEXTURE_PRIORITY','GL_TEXTURE_MIN_FILTER',
'GL_TEXTURE_MATRIX','GL_TEXTURE_MAG_FILTER','GL_TEXTURE_LUMINANCE_SIZE','GL_TEXTURE_INTERNAL_FORMAT','GL_TEXTURE_INTENSITY_SIZE',
'GL_TEXTURE_HEIGHT','GL_TEXTURE_GREEN_SIZE','GL_TEXTURE_GEN_T','GL_TEXTURE_GEN_S','GL_TEXTURE_GEN_R','GL_TEXTURE_GEN_Q',
'GL_TEXTURE_GEN_MODE','GL_TEXTURE_ENV_MODE','GL_TEXTURE_ENV_COLOR','GL_TEXTURE_ENV','GL_TEXTURE_COORD_ARRAY_TYPE_EXT',
'GL_TEXTURE_COORD_ARRAY_TYPE','GL_TEXTURE_COORD_ARRAY_STRIDE_EXT','GL_TEXTURE_COORD_ARRAY_STRIDE','GL_TEXTURE_COORD_ARRAY_SIZE_EXT',
'GL_TEXTURE_COORD_ARRAY_SIZE','GL_TEXTURE_COORD_ARRAY_POINTER_EXT','GL_TEXTURE_COORD_ARRAY_POINTER','GL_TEXTURE_COORD_ARRAY_EXT',
'GL_TEXTURE_COORD_ARRAY_COUNT_EXT','GL_TEXTURE_COORD_ARRAY','GL_TEXTURE_COMPONENTS','GL_TEXTURE_BORDER_COLOR','GL_TEXTURE_BORDER',
'GL_TEXTURE_BLUE_SIZE','GL_TEXTURE_BIT','GL_TEXTURE_BINDING_2D','GL_TEXTURE_BINDING_1D','GL_TEXTURE_ALPHA_SIZE',
'GL_TEXTURE_2D','GL_TEXTURE_1D','GL_TEXTURE9_ARB','GL_TEXTURE9','GL_TEXTURE8_ARB','GL_TEXTURE8','GL_TEXTURE7_ARB',
'GL_TEXTURE7','GL_TEXTURE6_ARB','GL_TEXTURE6','GL_TEXTURE5_ARB','GL_TEXTURE5','GL_TEXTURE4_ARB','GL_TEXTURE4',
'GL_TEXTURE3_ARB','GL_TEXTURE31_ARB','GL_TEXTURE31','GL_TEXTURE30_ARB','GL_TEXTURE30','GL_TEXTURE3','GL_TEXTURE2_ARB',
'GL_TEXTURE29_ARB','GL_TEXTURE29','GL_TEXTURE28_ARB','GL_TEXTURE28','GL_TEXTURE27_ARB','GL_TEXTURE27','GL_TEXTURE26_ARB',
'GL_TEXTURE26','GL_TEXTURE25_ARB','GL_TEXTURE25','GL_TEXTURE24_ARB','GL_TEXTURE24','GL_TEXTURE23_ARB','GL_TEXTURE23',
'GL_TEXTURE22_ARB','GL_TEXTURE22','GL_TEXTURE21_ARB','GL_TEXTURE21','GL_TEXTURE20_ARB','GL_TEXTURE20','GL_TEXTURE2',
'GL_TEXTURE1_ARB','GL_TEXTURE19_ARB','GL_TEXTURE19','GL_TEXTURE18_ARB','GL_TEXTURE18','GL_TEXTURE17_ARB',
'GL_TEXTURE17','GL_TEXTURE16_ARB','GL_TEXTURE16','GL_TEXTURE15_ARB','GL_TEXTURE15','GL_TEXTURE14_ARB','GL_TEXTURE14',
'GL_TEXTURE13_ARB','GL_TEXTURE13','GL_TEXTURE12_ARB','GL_TEXTURE12','GL_TEXTURE11_ARB','GL_TEXTURE11','GL_TEXTURE10_ARB',
'GL_TEXTURE10','GL_TEXTURE1','GL_TEXTURE0_ARB','GL_TEXTURE0','GL_TEXTURE','GL_T4F_V4F','GL_T4F_C4F_N3F_V4F','GL_T2F_V3F',
'GL_T2F_N3F_V3F','GL_T2F_C4UB_V3F','GL_T2F_C4F_N3F_V3F','GL_T2F_C3F_V3F','GL_T','GL_SUBPIXEL_BITS','GL_STEREO',
'GL_STENCIL_WRITEMASK','GL_STENCIL_VALUE_MASK','GL_STENCIL_TEST','GL_STENCIL_REF','GL_STENCIL_PASS_DEPTH_PASS',
'GL_STENCIL_PASS_DEPTH_FAIL','GL_STENCIL_INDEX','GL_STENCIL_FUNC','GL_STENCIL_FAIL','GL_STENCIL_CLEAR_VALUE',
'GL_STENCIL_BUFFER_BIT','GL_STENCIL_BITS','GL_STENCIL','GL_STACK_UNDERFLOW','GL_STACK_OVERFLOW','GL_SRC_COLOR',
'GL_SRC_ALPHA_SATURATE','GL_SRC_ALPHA','GL_SPOT_EXPONENT','GL_SPOT_DIRECTION','GL_SPOT_CUTOFF','GL_SPHERE_MAP',
'GL_SPECULAR','GL_SOURCE2_RGB_EXT','GL_SOURCE2_RGB','GL_SOURCE2_ALPHA_EXT','GL_SOURCE2_ALPHA','GL_SOURCE1_RGB_EXT',
'GL_SOURCE1_RGB','GL_SOURCE1_ALPHA_EXT','GL_SOURCE1_ALPHA','GL_SOURCE0_RGB_EXT','GL_SOURCE0_RGB','GL_SOURCE0_ALPHA_EXT',
'GL_SOURCE0_ALPHA','GL_SMOOTH','GL_SHORT','GL_SHININESS','GL_SHADE_MODEL','GL_SET','GL_SELECTION_BUFFER_SIZE',
'GL_SELECTION_BUFFER_POINTER','GL_SELECT','GL_SCISSOR_TEST','GL_SCISSOR_BOX','GL_SCISSOR_BIT','GL_S','GL_RIGHT',
'GL_RGB_SCALE_EXT','GL_RGB_SCALE','GL_RGBA_MODE','GL_RGBA8','GL_RGBA4','GL_RGBA2','GL_RGBA16','GL_RGBA12','GL_RGBA',
'GL_RGB8','GL_RGB5_A1','GL_RGB5','GL_RGB4','GL_RGB16','GL_RGB12','GL_RGB10_A2','GL_RGB10','GL_RGB','GL_RETURN',
'GL_REPLACE','GL_REPEAT','GL_RENDER_MODE','GL_RENDERER','GL_RENDER','GL_RED_SCALE','GL_RED_BITS','GL_RED_BIAS',
'GL_RED','GL_READ_BUFFER','GL_R3_G3_B2','GL_R','GL_QUAD_STRIP','GL_QUADS','GL_QUADRATIC_ATTENUATION','GL_Q',
'GL_PROXY_TEXTURE_2D','GL_PROXY_TEXTURE_1D','GL_PROJECTION_STACK_DEPTH','GL_PROJECTION_MATRIX','GL_PROJECTION',
'GL_PRIMARY_COLOR_EXT','GL_PRIMARY_COLOR','GL_PREVIOUS_EXT','GL_PREVIOUS','GL_POSITION','GL_POLYGON_TOKEN',
'GL_POLYGON_STIPPLE_BIT','GL_POLYGON_STIPPLE','GL_POLYGON_SMOOTH_HINT','GL_POLYGON_SMOOTH','GL_POLYGON_OFFSET_UNITS',
'GL_POLYGON_OFFSET_POINT','GL_POLYGON_OFFSET_LINE','GL_POLYGON_OFFSET_FILL','GL_POLYGON_OFFSET_FACTOR','GL_POLYGON_MODE',
'GL_POLYGON_BIT','GL_POLYGON','GL_POINT_TOKEN','GL_POINT_SMOOTH_HINT','GL_POINT_SMOOTH','GL_POINT_SIZE_RANGE',
'GL_POINT_SIZE_GRANULARITY','GL_POINT_SIZE','GL_POINT_BIT','GL_POINTS','GL_POINT','GL_PIXEL_MODE_BIT',
'GL_PIXEL_MAP_S_TO_S_SIZE','GL_PIXEL_MAP_S_TO_S','GL_PIXEL_MAP_R_TO_R_SIZE','GL_PIXEL_MAP_R_TO_R','GL_PIXEL_MAP_I_TO_R_SIZE',
'GL_PIXEL_MAP_I_TO_R','GL_PIXEL_MAP_I_TO_I_SIZE','GL_PIXEL_MAP_I_TO_I','GL_PIXEL_MAP_I_TO_G_SIZE','GL_PIXEL_MAP_I_TO_G',
'GL_PIXEL_MAP_I_TO_B_SIZE','GL_PIXEL_MAP_I_TO_B','GL_PIXEL_MAP_I_TO_A_SIZE','GL_PIXEL_MAP_I_TO_A','GL_PIXEL_MAP_G_TO_G_SIZE',
'GL_PIXEL_MAP_G_TO_G','GL_PIXEL_MAP_B_TO_B_SIZE','GL_PIXEL_MAP_B_TO_B','GL_PIXEL_MAP_A_TO_A_SIZE','GL_PIXEL_MAP_A_TO_A',
'GL_PHONG_WIN','GL_PHONG_HINT_WIN','GL_PERSPECTIVE_CORRECTION_HINT','GL_PASS_THROUGH_TOKEN','GL_PACK_SWAP_BYTES',
'GL_PACK_SKIP_ROWS','GL_PACK_SKIP_PIXELS','GL_PACK_ROW_LENGTH','GL_PACK_LSB_FIRST','GL_PACK_ALIGNMENT','GL_OUT_OF_MEMORY',
'GL_OR_REVERSE','GL_OR_INVERTED','GL_ORDER','GL_OR','GL_OPERAND2_RGB_EXT','GL_OPERAND2_RGB','GL_OPERAND2_ALPHA_EXT',
'GL_OPERAND2_ALPHA','GL_OPERAND1_RGB_EXT','GL_OPERAND1_RGB','GL_OPERAND1_ALPHA_EXT','GL_OPERAND1_ALPHA','GL_OPERAND0_RGB_EXT',
'GL_OPERAND0_RGB','GL_OPERAND0_ALPHA_EXT','GL_OPERAND0_ALPHA','GL_ONE_MINUS_SRC_COLOR','GL_ONE_MINUS_SRC_ALPHA',
'GL_ONE_MINUS_DST_COLOR','GL_ONE_MINUS_DST_ALPHA','GL_ONE','GL_OBJECT_PLANE','GL_OBJECT_LINEAR','GL_NO_ERROR',
'GL_NOTEQUAL','GL_NORMAL_ARRAY_TYPE_EXT','GL_NORMAL_ARRAY_TYPE','GL_NORMAL_ARRAY_STRIDE_EXT','GL_NORMAL_ARRAY_STRIDE',
'GL_NORMAL_ARRAY_POINTER_EXT','GL_NORMAL_ARRAY_POINTER','GL_NORMAL_ARRAY_EXT','GL_NORMAL_ARRAY_COUNT_EXT',
'GL_NORMAL_ARRAY','GL_NORMALIZE','GL_NOR','GL_NOOP','GL_NONE','GL_NICEST','GL_NEVER','GL_NEAREST_MIPMAP_NEAREST','GL_NEAREST_MIPMAP_LINEAR',
'GL_NEAREST','GL_NAND','GL_NAME_STACK_DEPTH','GL_N3F_V3F','GL_MULT','GL_MODULATE','GL_MODELVIEW_STACK_DEPTH','GL_MODELVIEW_MATRIX',
'GL_MODELVIEW','GL_MAX_VIEWPORT_DIMS','GL_MAX_TEXTURE_UNITS_ARB','GL_MAX_TEXTURE_UNITS','GL_MAX_TEXTURE_STACK_DEPTH',
'GL_MAX_TEXTURE_SIZE','GL_MAX_PROJECTION_STACK_DEPTH','GL_MAX_PIXEL_MAP_TABLE','GL_MAX_NAME_STACK_DEPTH','GL_MAX_MODELVIEW_STACK_DEPTH',
'GL_MAX_LIST_NESTING','GL_MAX_LIGHTS','GL_MAX_EVAL_ORDER','GL_MAX_ELEMENTS_VERTICES_WIN','GL_MAX_ELEMENTS_INDICES_WIN',
'GL_MAX_CLIP_PLANES','GL_MAX_CLIENT_ATTRIB_STACK_DEPTH','GL_MAX_ATTRIB_STACK_DEPTH','GL_MATRIX_MODE','GL_MAP_STENCIL',
'GL_MAP_COLOR','GL_MAP2_VERTEX_4','GL_MAP2_VERTEX_3','GL_MAP2_TEXTURE_COORD_4','GL_MAP2_TEXTURE_COORD_3','GL_MAP2_TEXTURE_COORD_2',
'GL_MAP2_TEXTURE_COORD_1','GL_MAP2_NORMAL','GL_MAP2_INDEX','GL_MAP2_GRID_SEGMENTS','GL_MAP2_GRID_DOMAIN','GL_MAP2_COLOR_4',
'GL_MAP1_VERTEX_4','GL_MAP1_VERTEX_3','GL_MAP1_TEXTURE_COORD_4','GL_MAP1_TEXTURE_COORD_3','GL_MAP1_TEXTURE_COORD_2',
'GL_MAP1_TEXTURE_COORD_1','GL_MAP1_NORMAL','GL_MAP1_INDEX','GL_MAP1_GRID_SEGMENTS','GL_MAP1_GRID_DOMAIN',
'GL_MAP1_COLOR_4','GL_LUMINANCE_ALPHA','GL_LUMINANCE8_ALPHA8','GL_LUMINANCE8','GL_LUMINANCE6_ALPHA2','GL_LUMINANCE4_ALPHA4',
'GL_LUMINANCE4','GL_LUMINANCE16_ALPHA16','GL_LUMINANCE16','GL_LUMINANCE12_ALPHA4','GL_LUMINANCE12_ALPHA12','GL_LUMINANCE12',
'GL_LUMINANCE','GL_LOGIC_OP_MODE','GL_LOGIC_OP','GL_LOAD','GL_LIST_MODE','GL_LIST_INDEX','GL_LIST_BIT',
'GL_LIST_BASE','GL_LINE_WIDTH_RANGE','GL_LINE_WIDTH_GRANULARITY','GL_LINE_WIDTH','GL_LINE_TOKEN','GL_LINE_STRIP','GL_LINE_STIPPLE_REPEAT',
'GL_LINE_STIPPLE_PATTERN','GL_LINE_STIPPLE','GL_LINE_SMOOTH_HINT','GL_LINE_SMOOTH','GL_LINE_RESET_TOKEN','GL_LINE_LOOP',
'GL_LINE_BIT','GL_LINES','GL_LINEAR_MIPMAP_NEAREST','GL_LINEAR_MIPMAP_LINEAR','GL_LINEAR_ATTENUATION','GL_LINEAR',
'GL_LINE','GL_LIGHT_MODEL_TWO_SIDE','GL_LIGHT_MODEL_LOCAL_VIEWER','GL_LIGHT_MODEL_AMBIENT','GL_LIGHTING_BIT',
'GL_LIGHTING','GL_LIGHT7','GL_LIGHT6','GL_LIGHT5','GL_LIGHT4','GL_LIGHT3','GL_LIGHT2','GL_LIGHT1','GL_LIGHT0',
'GL_LESS','GL_LEQUAL','GL_LEFT','GL_KEEP','GL_INVERT','GL_INVALID_VALUE','GL_INVALID_OPERATION','GL_INVALID_ENUM','GL_INTERPOLATE_EXT',
'GL_INTERPOLATE','GL_INTENSITY8','GL_INTENSITY4','GL_INTENSITY16','GL_INTENSITY12','GL_INTENSITY','GL_INT',
'GL_INDEX_WRITEMASK','GL_INDEX_SHIFT','GL_INDEX_OFFSET','GL_INDEX_MODE','GL_INDEX_LOGIC_OP','GL_INDEX_CLEAR_VALUE','GL_INDEX_BITS',
'GL_INDEX_ARRAY_TYPE_EXT','GL_INDEX_ARRAY_TYPE','GL_INDEX_ARRAY_STRIDE_EXT','GL_INDEX_ARRAY_STRIDE','GL_INDEX_ARRAY_POINTER_EXT',
'GL_INDEX_ARRAY_POINTER','GL_INDEX_ARRAY_EXT','GL_INDEX_ARRAY_COUNT_EXT','GL_INDEX_ARRAY','GL_INCR','GL_HINT_BIT',
'GL_GREEN_SCALE','GL_GREEN_BITS','GL_GREEN_BIAS','GL_GREEN','GL_GREATER','GL_GEQUAL','GL_FRONT_RIGHT','GL_FRONT_LEFT',
'GL_FRONT_FACE','GL_FRONT_AND_BACK','GL_FRONT','GL_FOG_START','GL_FOG_SPECULAR_TEXTURE_WIN','GL_FOG_MODE','GL_FOG_INDEX',
'GL_FOG_HINT','GL_FOG_END','GL_FOG_DENSITY','GL_FOG_COLOR','GL_FOG_BIT','GL_FOG','GL_FLOAT','GL_FLAT','GL_FILL',
'GL_FEEDBACK_BUFFER_TYPE','GL_FEEDBACK_BUFFER_SIZE','GL_FEEDBACK_BUFFER_POINTER','GL_FEEDBACK','GL_FASTEST','GL_FALSE',
'GL_EYE_PLANE','GL_EYE_LINEAR','GL_EXT_vertex_array','GL_EXT_paletted_texture','GL_EXT_bgra','GL_EXTENSIONS','GL_EXP2',
'GL_EXP','GL_EVAL_BIT','GL_EQUIV','GL_EQUAL','GL_ENABLE_BIT','GL_EMISSION','GL_EDGE_FLAG_ARRAY_STRIDE_EXT','GL_EDGE_FLAG_ARRAY_STRIDE',
'GL_EDGE_FLAG_ARRAY_POINTER_EXT','GL_EDGE_FLAG_ARRAY_POINTER','GL_EDGE_FLAG_ARRAY_EXT','GL_EDGE_FLAG_ARRAY_COUNT_EXT','GL_EDGE_FLAG_ARRAY',
'GL_EDGE_FLAG','GL_DST_COLOR','GL_DST_ALPHA','GL_DRAW_PIXEL_TOKEN','GL_DRAW_BUFFER','GL_DOUBLE_EXT','GL_DOUBLEBUFFER',
'GL_DOUBLE','GL_DONT_CARE','GL_DOMAIN','GL_DITHER','GL_DIFFUSE','GL_DEPTH_WRITEMASK','GL_DEPTH_TEST','GL_DEPTH_SCALE',
'GL_DEPTH_RANGE','GL_DEPTH_FUNC','GL_DEPTH_COMPONENT','GL_DEPTH_CLEAR_VALUE','GL_DEPTH_BUFFER_BIT','GL_DEPTH_BITS',
'GL_DEPTH_BIAS','GL_DEPTH','GL_DECR','GL_DECAL','GL_CW','GL_CURRENT_TEXTURE_COORDS','GL_CURRENT_RASTER_TEXTURE_COORDS','GL_CURRENT_RASTER_POSITION_VALID',
'GL_CURRENT_RASTER_POSITION','GL_CURRENT_RASTER_INDEX','GL_CURRENT_RASTER_DISTANCE','GL_CURRENT_RASTER_COLOR','GL_CURRENT_NORMAL',
'GL_CURRENT_INDEX','GL_CURRENT_COLOR','GL_CURRENT_BIT','GL_CULL_FACE_MODE','GL_CULL_FACE','GL_COPY_PIXEL_TOKEN',
'GL_COPY_INVERTED','GL_COPY','GL_CONSTANT_EXT','GL_CONSTANT_ATTENUATION','GL_CONSTANT','GL_COMPILE_AND_EXECUTE','GL_COMPILE','GL_COMBINE_RGB_EXT',
'GL_COMBINE_RGB','GL_COMBINE_EXT','GL_COMBINE_ALPHA_EXT','GL_COMBINE_ALPHA','GL_COMBINE','GL_COLOR_WRITEMASK',
'GL_COLOR_TABLE_WIDTH_EXT','GL_COLOR_TABLE_RED_SIZE_EXT','GL_COLOR_TABLE_LUMINANCE_SIZE_EXT','GL_COLOR_TABLE_INTENSITY_SIZE_EXT',
'GL_COLOR_TABLE_GREEN_SIZE_EXT','GL_COLOR_TABLE_FORMAT_EXT','GL_COLOR_TABLE_BLUE_SIZE_EXT','GL_COLOR_TABLE_ALPHA_SIZE_EXT',
'GL_COLOR_MATERIAL_PARAMETER','GL_COLOR_MATERIAL_FACE','GL_COLOR_MATERIAL','GL_COLOR_LOGIC_OP','GL_COLOR_INDEXES',
'GL_COLOR_INDEX8_EXT','GL_COLOR_INDEX4_EXT','GL_COLOR_INDEX2_EXT','GL_COLOR_INDEX1_EXT','GL_COLOR_INDEX16_EXT',
'GL_COLOR_INDEX12_EXT','GL_COLOR_INDEX','GL_COLOR_CLEAR_VALUE','GL_COLOR_BUFFER_BIT','GL_COLOR_ARRAY_TYPE_EXT',
'GL_COLOR_ARRAY_TYPE','GL_COLOR_ARRAY_STRIDE_EXT','GL_COLOR_ARRAY_STRIDE','GL_COLOR_ARRAY_SIZE_EXT','GL_COLOR_ARRAY_SIZE',
'GL_COLOR_ARRAY_POINTER_EXT','GL_COLOR_ARRAY_POINTER','GL_COLOR_ARRAY_EXT','GL_COLOR_ARRAY_COUNT_EXT','GL_COLOR_ARRAY',
'GL_COLOR','GL_COEFF','GL_CLIP_PLANE5','GL_CLIP_PLANE4','GL_CLIP_PLANE3','GL_CLIP_PLANE2','GL_CLIP_PLANE1','GL_CLIP_PLANE0',
'GL_CLIENT_VERTEX_ARRAY_BIT','GL_CLIENT_PIXEL_STORE_BIT','GL_CLIENT_ATTRIB_STACK_DEPTH','GL_CLIENT_ALL_ATTRIB_BITS',
'GL_CLIENT_ACTIVE_TEXTURE_ARB','GL_CLIENT_ACTIVE_TEXTURE','GL_CLEAR','GL_CLAMP','GL_CCW','GL_C4UB_V3F','GL_C4UB_V2F',
'GL_C4F_N3F_V3F','GL_C3F_V3F','GL_BYTE','GL_BLUE_SCALE','GL_BLUE_BITS','GL_BLUE_BIAS','GL_BLUE','GL_BLEND_SRC','GL_BLEND_DST',
'GL_BLEND','GL_BITMAP_TOKEN','GL_BITMAP','GL_BGR_EXT','GL_BGRA_EXT','GL_BACK_RIGHT','GL_BACK_LEFT','GL_BACK',
'GL_AUX_BUFFERS','GL_AUX3','GL_AUX2','GL_AUX1','GL_AUX0','GL_AUTO_NORMAL','GL_ATTRIB_STACK_DEPTH','GL_AND_REVERSE',
'GL_AND_INVERTED','GL_AND','GL_AMBIENT_AND_DIFFUSE','GL_AMBIENT','GL_ALWAYS','GL_ALPHA_TEST_REF','GL_ALPHA_TEST_FUNC',
'GL_ALPHA_TEST','GL_ALPHA_SCALE','GL_ALPHA_BITS','GL_ALPHA_BIAS','GL_ALPHA8','GL_ALPHA4','GL_ALPHA16','GL_ALPHA12',
'GL_ALPHA','GL_ALL_ATTRIB_BITS','GL_ADD_SIGNED_EXT','GL_ADD_SIGNED','GL_ADD','GL_ACTIVE_TEXTURE_ARB','GL_ACTIVE_TEXTURE',
'GL_ACCUM_RED_BITS','GL_ACCUM_GREEN_BITS','GL_ACCUM_CLEAR_VALUE','GL_ACCUM_BUFFER_BIT','GL_ACCUM_BLUE_BITS','GL_ACCUM_ALPHA_BITS',
'GL_ACCUM','GL_4_BYTES','GL_4D_COLOR_TEXTURE','GL_3_BYTES','GL_3D_COLOR_TEXTURE','GL_3D_COLOR','GL_3D','GL_2_BYTES',
'GL_2D','GLU_V_STEP','GLU_VERTEX','GLU_VERSION_1_2','GLU_VERSION_1_1','GLU_VERSION','GLU_U_STEP','GLU_UNKNOWN','GLU_TRUE',
'GLU_TESS_WINDING_RULE','GLU_TESS_WINDING_POSITIVE','GLU_TESS_WINDING_ODD','GLU_TESS_WINDING_NONZERO','GLU_TESS_WINDING_NEGATIVE',
'GLU_TESS_WINDING_ABS_GEQ_TWO','GLU_TESS_VERTEX_DATA','GLU_TESS_VERTEX','GLU_TESS_TOLERANCE','GLU_TESS_NEED_COMBINE_CALLBACK','GLU_TESS_MISSING_END_POLYGON',
'GLU_TESS_MISSING_END_CONTOUR','GLU_TESS_MISSING_BEGIN_POLYGON','GLU_TESS_MISSING_BEGIN_CONTOUR','GLU_TESS_ERROR_DATA',
'GLU_TESS_ERROR8','GLU_TESS_ERROR7','GLU_TESS_ERROR6','GLU_TESS_ERROR5','GLU_TESS_ERROR4','GLU_TESS_ERROR3','GLU_TESS_ERROR2',
'GLU_TESS_ERROR1','GLU_TESS_ERROR','GLU_TESS_END_DATA','GLU_TESS_END','GLU_TESS_EDGE_FLAG_DATA','GLU_TESS_EDGE_FLAG',
'GLU_TESS_COORD_TOO_LARGE','GLU_TESS_COMBINE_DATA','GLU_TESS_COMBINE','GLU_TESS_BOUNDARY_ONLY','GLU_TESS_BEGIN_DATA',
'GLU_TESS_BEGIN','GLU_SMOOTH','GLU_SILHOUETTE','GLU_SAMPLING_TOLERANCE','GLU_SAMPLING_METHOD','GLU_POINT','GLU_PATH_LENGTH',
'GLU_PARAMETRIC_TOLERANCE','GLU_PARAMETRIC_ERROR','GLU_OUT_OF_MEMORY','GLU_OUTSIDE','GLU_OUTLINE_POLYGON','GLU_OUTLINE_PATCH',
'GLU_NURBS_ERROR9','GLU_NURBS_ERROR8','GLU_NURBS_ERROR7','GLU_NURBS_ERROR6','GLU_NURBS_ERROR5','GLU_NURBS_ERROR4',
'GLU_NURBS_ERROR37','GLU_NURBS_ERROR36','GLU_NURBS_ERROR35','GLU_NURBS_ERROR34','GLU_NURBS_ERROR33','GLU_NURBS_ERROR32',
'GLU_NURBS_ERROR31','GLU_NURBS_ERROR30','GLU_NURBS_ERROR3','GLU_NURBS_ERROR29','GLU_NURBS_ERROR28','GLU_NURBS_ERROR27','GLU_NURBS_ERROR26',
'GLU_NURBS_ERROR25','GLU_NURBS_ERROR24','GLU_NURBS_ERROR23','GLU_NURBS_ERROR22','GLU_NURBS_ERROR21','GLU_NURBS_ERROR20',
'GLU_NURBS_ERROR2','GLU_NURBS_ERROR19','GLU_NURBS_ERROR18','GLU_NURBS_ERROR17','GLU_NURBS_ERROR16','GLU_NURBS_ERROR15','GLU_NURBS_ERROR14',
'GLU_NURBS_ERROR13','GLU_NURBS_ERROR12','GLU_NURBS_ERROR11','GLU_NURBS_ERROR10','GLU_NURBS_ERROR1','GLU_NONE',
'GLU_MAP1_TRIM_3','GLU_MAP1_TRIM_2','GLU_LINE','GLU_INVALID_VALUE','GLU_INVALID_ENUM','GLU_INTERIOR','GLU_INSIDE','GLU_INCOMPATIBLE_GL_VERSION',
'GLU_FLAT','GLU_FILL','GLU_FALSE','GLU_EXTERIOR','GLU_EXTENSIONS','GLU_ERROR','GLU_END','GLU_EDGE_FLAG','GLU_DOMAIN_DISTANCE',
'GLU_DISPLAY_MODE','GLU_CW','GLU_CULLING','GLU_CCW','GLU_BEGIN','GLU_AUTO_LOAD_MATRIX','CHANNEL_UNORDERED','CHANNEL_ORDERED',
'CHANNEL_MAX'
),
2 => array(
// Red Lowercase Keywords
'WriteWord','WriteString','WriteReal','WriteLine','WriteInt','WriteFloat','WriteDouble','WriteChar','WriteByte',
'windowwidth','windowheight','waittimer','Vec4','Vec3','Vec2','val','UpdateJoystick','ucase$','Transpose','tickcount',
'textscroll','textrows','textmode','textcols','tanh','tand','tan','synctimercatchup','synctimer','swapbuffers',
'str$','stopsoundvoice','stopsounds','stopmusic','sqrt','sqr','sprzorder','spryvel','sprytiles','sprysize','spryrepeat',
'spryflip','sprycentre','spry','sprxvel','sprxtiles','sprxsize','sprxrepeat','sprxflip','sprxcentre','sprx',
'sprvisible','sprvel','sprtype','sprtop','sprspin','sprsolid','sprsetzorder','sprsetyvel','sprsetysize','sprsetyrepeat',
'sprsetyflip','sprsetycentre','sprsety','sprsetxvel','sprsetxsize','sprsetxrepeat','sprsetxflip','sprsetxcentre',
'sprsetx','sprsetvisible','sprsetvel','sprsettiles','sprsettextures','sprsettexture','sprsetspin','sprsetsolid',
'sprsetsize','sprsetscale','sprsetpos','sprsetparallax','sprsetframe','sprsetcolor','sprsetanimspeed','sprsetanimloop',
'sprsetangle','sprsetalpha','sprscale','sprright','sprpos','sprparallax','sprleft','spriteareawidth','spriteareaheight',
'sprframe','sprcolor','sprcameraz','sprcameray','sprcamerax','sprcamerasetz','sprcamerasety','sprcamerasetx',
'sprcamerasetpos','sprcamerasetfov','sprcamerasetangle','sprcamerapos','sprcamerafov','sprcameraangle',
'sprbottom','spranimspeed','spranimloop','spranimdone','sprangle','spralpha','spraddtextures','spraddtexture',
'sounderror','sleep','sind','sin','showcursor','sgn','settextscroll','setmusicvolume','SendMessage','Seek',
'scankeydown','RTInvert','rnd','right$','resizetext','resizespritearea','RejectConnection','ReceiveMessage','ReadWord',
'ReadText','ReadReal','ReadLine','ReadInt','ReadFloat','ReadDouble','ReadChar','ReadByte','randomize','printr',
'print','pow','playsound','playmusic','performancecounter','Orthonormalize','OpenFileWrite','OpenFileRead','Normalize',
'newtilemap','newsprite','NewServer','NewConnection','musicplaying','mouse_yd','mouse_y','mouse_xd','mouse_x',
'mouse_wheel','mouse_button','mid$','MessageSmoothed','MessageReliable','MessagePending','MessageChannel','maxtextureunits',
'MatrixZero','MatrixTranslate','MatrixScale','MatrixRotateZ','MatrixRotateY','MatrixRotateX','MatrixRotate','MatrixIdentity',
'MatrixCrossProduct','MatrixBasis','log','locate','loadtexture','loadsound','loadmipmaptexture','loadmipmapimagestrip',
'loadimagestrip','loadimage','Length','len','left$','lcase$','keydown','Joy_Y','Joy_X','Joy_Up','Joy_Right','Joy_Left',
'Joy_Keys','Joy_Down','Joy_Button','Joy_3','Joy_2','Joy_1','Joy_0','int','inscankey','input$','inkey$','inittimer',
'imagewidth','imagestripframes','imageheight','imageformat','imagedatatype','hidecursor','glViewport','glVertex4sv',
'glVertex4s','glVertex4iv','glVertex4i','glVertex4fv','glVertex4f','glVertex4dv','glVertex4d','glVertex3sv','glVertex3s',
'glVertex3iv','glVertex3i','glVertex3fv','glVertex3f','glVertex3dv','glVertex3d','glVertex2sv','glVertex2s','glVertex2iv',
'glVertex2i','glVertex2fv','glVertex2f','glVertex2dv','glVertex2d','gluPerspective','gluOrtho2D','gluLookAt',
'glubuild2dmipmaps','glTranslatef','glTranslated','gltexsubimage2d','glTexParameteriv','glTexParameteri',
'glTexParameterfv','glTexParameterf','glteximage2d','glTexGeniv','glTexGeni','glTexGenfv','glTexGenf','glTexGendv',
'glTexGend','glTexEnviv','glTexEnvi','glTexEnvfv','glTexEnvf','glTexCoord4sv','glTexCoord4s','glTexCoord4iv','glTexCoord4i',
'glTexCoord4fv','glTexCoord4f','glTexCoord4dv','glTexCoord4d','glTexCoord3sv','glTexCoord3s','glTexCoord3iv','glTexCoord3i',
'glTexCoord3fv','glTexCoord3f','glTexCoord3dv','glTexCoord3d','glTexCoord2sv','glTexCoord2s','glTexCoord2iv','glTexCoord2i',
'glTexCoord2fv','glTexCoord2f','glTexCoord2dv','glTexCoord2d','glTexCoord1sv','glTexCoord1s','glTexCoord1iv','glTexCoord1i','glTexCoord1fv',
'glTexCoord1f','glTexCoord1dv','glTexCoord1d','glStencilOp','glStencilMask','glStencilFunc','glShadeModel','glSelectBuffer',
'glScissor','glScalef','glScaled','glRotatef','glRotated','glRenderMode','glRectsv','glRects','glRectiv','glRecti',
'glRectfv','glRectf','glRectdv','glRectd','glReadBuffer','glRasterPos4sv','glRasterPos4s','glRasterPos4iv',
'glRasterPos4i','glRasterPos4fv','glRasterPos4f','glRasterPos4dv','glRasterPos4d','glRasterPos3sv','glRasterPos3s',
'glRasterPos3iv','glRasterPos3i','glRasterPos3fv','glRasterPos3f','glRasterPos3dv','glRasterPos3d','glRasterPos2sv',
'glRasterPos2s','glRasterPos2iv','glRasterPos2i','glRasterPos2fv','glRasterPos2f','glRasterPos2dv','glRasterPos2d',
'glPushName','glPushMatrix','glPushClientAttrib','glPushAttrib','glPrioritizeTextures','glPopName','glPopMatrix',
'glPopClientAttrib','glPopAttrib','glpolygonstipple','glPolygonOffset','glPolygonMode','glPointSize','glPixelZoom',
'glPixelTransferi','glPixelTransferf','glPixelStorei','glPixelStoref','glPassThrough','glOrtho','glNormal3sv','glNormal3s',
'glNormal3iv','glNormal3i','glNormal3fv','glNormal3f','glNormal3dv','glNormal3d','glNormal3bv','glNormal3b','glNewList',
'glMultMatrixf','glMultMatrixd','glmultitexcoord2f','glmultitexcoord2d','glMatrixMode','glMaterialiv','glMateriali',
'glMaterialfv','glMaterialf','glMapGrid2f','glMapGrid2d','glMapGrid1f','glMapGrid1d','glLogicOp','glLoadName','glLoadMatrixf',
'glLoadMatrixd','glLoadIdentity','glListBase','glLineWidth','glLineStipple','glLightModeliv','glLightModeli','glLightModelfv',
'glLightModelf','glLightiv','glLighti','glLightfv','glLightf','glIsTexture','glIsList','glIsEnabled','glInitNames',
'glIndexubv','glIndexub','glIndexsv','glIndexs','glIndexMask','glIndexiv','glIndexi','glIndexfv','glIndexf','glIndexdv',
'glIndexd','glHint','glGetTexParameteriv','glGetTexParameterfv','glGetTexLevelParameteriv','glGetTexLevelParameterfv',
'glGetTexGeniv','glGetTexGenfv','glGetTexGendv','glGetTexEnviv','glGetTexEnvfv','glgetstring','glgetpolygonstipple','glGetPixelMapuiv',
'glGetMaterialiv','glGetMaterialfv','glGetLightiv','glGetLightfv','glGetIntegerv','glGetFloatv',
'glGetError','glGetDoublev','glGetClipPlane','glGetBooleanv','glgentextures','glgentexture',
'glgenlists','glFrustum','glFrontFace','glFogiv','glFogi','glFogfv','glFogf','glFlush','glFinish','glFeedbackBuffer',
'glEvalPoint2','glEvalPoint1','glEvalMesh2','glEvalMesh1','glEvalCoord2fv','glEvalCoord2f','glEvalCoord2dv','glEvalCoord2d',
'glEvalCoord1fv','glEvalCoord1f','glEvalCoord1dv','glEvalCoord1d','glEndList','glEnd','glEnableClientState','glEnable',
'glEdgeFlagv','glEdgeFlag','glDrawBuffer','glDrawArrays','glDisableClientState','glDisable','glDepthRange','glDepthMask',
'glDepthFunc','gldeletetextures','gldeletetexture','gldeletelists','glCullFace','glCopyTexSubImage2D','glCopyTexSubImage1D',
'glCopyTexImage2D','glCopyTexImage1D','glColorMaterial','glColorMask','glColor4usv','glColor4us','glColor4uiv','glColor4ui',
'glColor4ubv','glColor4ub','glColor4sv','glColor4s','glColor4iv','glColor4i','glColor4fv','glColor4f','glColor4dv',
'glColor4d','glColor4bv','glColor4b','glColor3usv','glColor3us','glColor3uiv','glColor3ui','glColor3ubv','glColor3ub',
'glColor3sv','glColor3s','glColor3iv','glColor3i','glColor3fv','glColor3f','glColor3dv','glColor3d','glColor3bv',
'glColor3b','glClipPlane','glClearStencil','glClearIndex','glClearDepth','glClearColor','glClearAccum','glClear',
'glcalllists','glCallList','glBlendFunc','glBindTexture','glBegin','glArrayElement','glAreTexturesResident',
'glAlphaFunc','glactivetexture','glAccum','font','FindNextFile','FindFirstFile','FindClose','FileError',
'extensionsupported','exp','execute','EndOfFile','drawtext','divbyzero','Determinant','deletesprite','deletesound',
'DeleteServer','deleteimage','DeleteConnection','defaultfont','CrossProduct','cosd','cos','copysprite','ConnectionPending',
'ConnectionHandShaking','ConnectionConnected','ConnectionAddress','compilererrorline','compilererrorcol','compilererror',
'compilefile','compile','color','cls','CloseFile','clearregion','clearline','clearkeys','chr$','charat$','bindsprite',
'beep','atnd','atn2d','atn2','atn','atand','asc','argcount','arg','animatesprites','AcceptConnection','abs'
),
3 => array(
// Blue Lowercase Keywords
'xor','while','wend','until','type','traditional_print','traditional','to','then','struc','string','step','single',
'run','return','reset','read','or','null','not','next','lor','loop','language','land','integer','input','if',
'goto','gosub','for','endstruc','endif','end','elseif','else','double','do','dim','data','const','basic4gl','as',
'and','alloc'
)
),
'SYMBOLS' => array(
'=', '<', '>', '>=', '<=', '+', '-', '*', '/', '%', '(', ')', '{', '}', '[', ']', '&', ';', ':', '$'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000080; font-weight: bold;',
2 => 'color: #FF0000;',
3 => 'color: #0000FF;'
),
'COMMENTS' => array(
1 => 'color: #657CC4; font-style: italic;'
),
'BRACKETS' => array(
0 => 'color: #000080;'
),
'STRINGS' => array(
0 => 'color: #008000;'
),
'NUMBERS' => array(
0 => 'color: #000080; font-weight: bold;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #0000FF;'
),
'ESCAPE_CHAR' => array(
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

115
Sources/geshi/bf.php Normal file
View File

@ -0,0 +1,115 @@
<?php
/*************************************************************************************
* bf.php
* ----------
* Author: Benny Baumann (BenBE@geshi.org)
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2009/10/31
*
* Brainfuck language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/31 (1.0.8.1)
* - First Release
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Brainfuck',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(1 => '/[^\n+\-<>\[\]\.\,Y]+/s'),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
),
'SYMBOLS' => array(
0 => array('+', '-'),
1 => array('[', ']'),
2 => array('<', '>'),
3 => array('.', ','),
4 => array('Y') //Brainfork Extension ;-)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
),
'STYLES' => array(
'KEYWORDS' => array(
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;'
),
'BRACKETS' => array(
0 => 'color: #660000;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #006600;',
1 => 'color: #660000;',
2 => 'color: #000066;',
3 => 'color: #666600;',
4 => 'color: #660066;'
),
'ESCAPE_CHAR' => array(
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'STRINGS' => GESHI_NEVER,
'NUMBERS' => GESHI_NEVER,
'BRACKETS' => GESHI_NEVER
),
'KEYWORDS' => array(
'DISALLOW_BEFORE' => '',
'DISALLOW_AFTER' => ''
)
)
);
?>

183
Sources/geshi/bibtex.php Normal file
View File

@ -0,0 +1,183 @@
<?php
/********************************************************************************
* bibtex.php
* -----
* Author: Quinn Taylor (quinntaylor@mac.com)
* Copyright: (c) 2009 Quinn Taylor (quinntaylor@mac.com), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2009/04/29
*
* BibTeX language file for GeSHi.
*
* CHANGES
* -------
* 2009/04/29 (1.0.8.4)
* - First Release
*
* TODO
* -------------------------
* - Add regex for matching and replacing URLs with corresponding hyperlinks
* - Add regex for matching more LaTeX commands that may be embedded in BibTeX
* (Someone who understands regex better than I should borrow from latex.php)
********************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
*******************************************************************************/
// http://en.wikipedia.org/wiki/BibTeX
// http://www.fb10.uni-bremen.de/anglistik/langpro/bibliographies/jacobsen-bibtex.html
$language_data = array (
'LANG_NAME' => 'BibTeX',
'OOLANG' => false,
'COMMENT_SINGLE' => array(
1 => '%%'
),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
0 => array(
'@comment','@preamble','@string'
),
// Standard entry types
1 => array(
'@article','@book','@booklet','@conference','@inbook',
'@incollection','@inproceedings','@manual','@mastersthesis',
'@misc','@phdthesis','@proceedings','@techreport','@unpublished'
),
// Custom entry types
2 => array(
'@collection','@patent','@webpage'
),
// Standard entry field names
3 => array(
'address','annote','author','booktitle','chapter','crossref',
'edition','editor','howpublished','institution','journal','key',
'month','note','number','organization','pages','publisher','school',
'series','title','type','volume','year'
),
// Custom entry field names
4 => array(
'abstract','affiliation','chaptername','cited-by','cites',
'contents','copyright','date-added','date-modified','doi','eprint',
'isbn','issn','keywords','language','lccn','lib-congress',
'location','price','rating','read','size','source','url'
)
),
'URLS' => array(
0 => '',
1 => '',
2 => '',
3 => '',
4 => ''
),
'SYMBOLS' => array(
'{', '}', '#', '=', ','
),
'CASE_SENSITIVE' => array(
1 => false,
2 => false,
3 => false,
4 => false,
GESHI_COMMENTS => false,
),
// Define the colors for the groups listed above
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #C02020;', // Standard entry types
2 => 'color: #C02020;', // Custom entry types
3 => 'color: #C08020;', // Standard entry field names
4 => 'color: #C08020;' // Custom entry field names
),
'COMMENTS' => array(
1 => 'color: #2C922C; font-style: italic;'
),
'STRINGS' => array(
0 => 'color: #2020C0;'
),
'SYMBOLS' => array(
0 => 'color: #E02020;'
),
'REGEXPS' => array(
1 => 'color: #2020C0;', // {...}
2 => 'color: #C08020;', // BibDesk fields
3 => 'color: #800000;' // LaTeX commands
),
'ESCAPE_CHAR' => array(
0 => 'color: #000000; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #E02020;'
),
'NUMBERS' => array(
),
'METHODS' => array(
),
'SCRIPT' => array(
)
),
'REGEXPS' => array(
// {parameters}
1 => array(
GESHI_SEARCH => "(?<=\\{)(?:\\{(?R)\\}|[^\\{\\}])*(?=\\})",
GESHI_REPLACE => '\0',
GESHI_MODIFIERS => 's',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
2 => array(
GESHI_SEARCH => "\bBdsk-(File|Url)-\d+",
GESHI_REPLACE => '\0',
GESHI_MODIFIERS => 'Us',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
3 => array(
GESHI_SEARCH => "\\\\[A-Za-z0-9]*+",
GESHI_REPLACE => '\0',
GESHI_MODIFIERS => 'Us',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'OBJECT_SPLITTERS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'NUMBERS' => GESHI_NEVER
),
'KEYWORDS' => array(
3 => array(
'DISALLOWED_AFTER' => '(?=\s*=)'
),
4 => array(
'DISALLOWED_AFTER' => '(?=\s*=)'
),
)
)
);
?>

View File

@ -0,0 +1,185 @@
<?php
/*************************************************************************************
* blitzbasic.php
* --------------
* Author: P<EFBFBD>draig O`Connel (info@moonsword.info)
* Copyright: (c) 2005 P<EFBFBD>draig O`Connel (http://moonsword.info)
* Release Version: 1.0.8.11
* Date Started: 16.10.2005
*
* BlitzBasic language file for GeSHi.
*
* It is a simple Basic dialect. Released for Games and Network Connections.
* In this Language File are all functions included (2D BB and 3D BB)
*
*
* CHANGES
* -------
* 2005/12/28 (1.0.1)
* - Remove unnecessary style index for regexps
* 2005/10/22 (1.0.0)
* - First Release
*
* TODO (updated 2005/10/22)
* -------------------------
* * Sort out the Basic commands for splitting up.
* * To set up the right colors.
* (the colors are ok, but not the correct ones)
* * Split to BlitzBasic 2D and BlitzBasic 3D.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'BlitzBasic',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'If','EndIf','ElseIf','Else','While','Wend','Return','Next','Include','End Type','End Select','End If','End Function','End','Select',
'Type','Forever','For','Or','And','AppTitle','Case','Goto','Gosub','Step','Stop','Int','Last','False','Then','To','True','Until','Float',
'String','Before','Not'
),
2 => array(
// All Functions - 2D BB and 3D BB
'Xor','WriteString','WriteShort','WritePixelFast','WritePixel','WriteLine','WriteInt','WriteFloat','WriteFile','WriteBytes',
'WriteByte','Write','WaitTimer','WaitMouse','WaitKey','WaitJoy','VWait','Viewport',
'Upper','UpdateGamma','UnlockBuffer','UDPTimeouts','UDPStreamPort','UDPStreamIP','UDPMsgPort','UDPMsgIP',
'Trim','TotalVidMem','TileImage','TileBlock','TFormImage','TFormFilter','Text',
'TCPTimeouts','TCPStreamPort','TCPStreamIP','Tan','SystemProperty','StringWidth','StringHeight','Str','StopNetGame',
'StopChannel','StartNetGame','Sqr','SoundVolume','SoundPitch','SoundPan','Sin','Shr',
'ShowPointer','Shl','Sgn','SetGfxDriver','SetGamma','SetFont','SetEnv','SetBuffer','SendUDPMsg','SendNetMsg',
'SeekFile','SeedRnd','ScanLine','ScaleImage','SaveImage','SaveBuffer','Sar','RuntimeError','RSet',
'RotateImage','RndSeed','Rnd','Right','ResumeChannel','Restore','ResizeImage','ResizeBank','Replace',
'Repeat','RecvUDPMsg','RecvNetMsg','RectsOverlap','Rect','ReadString','ReadShort','ReadPixelFast','ReadPixel','ReadLine',
'ReadInt','ReadFloat','ReadFile','ReadDir','ReadBytes','ReadByte','ReadAvail','Read','Rand','Print',
'PokeShort','PokeInt','PokeFloat','PokeByte','Plot','PlaySound','PlayMusic','PlayCDTrack','Pi','PeekShort',
'PeekInt','PeekFloat','PeekByte','PauseChannel','Oval','Origin','OpenTCPStream','OpenMovie','OpenFile',
'Null','NextFile','New','NetPlayerName','NetPlayerLocal','NetMsgType','NetMsgTo','NetMsgFrom',
'NetMsgData','MovieWidth','MoviePlaying','MovieHeight','MoveMouse','MouseZSpeed','MouseZ','MouseYSpeed','MouseY','MouseXSpeed',
'MouseX','MouseHit','MouseDown','Mod','Millisecs','MidHandle','Mid','MaskImage','LSet','Lower',
'LoopSound','Log10','Log','LockBuffer','Locate','Local','LoadSound','LoadImage','LoadFont','LoadBuffer',
'LoadAnimImage','Line','Len','Left','KeyHit','KeyDown','JoyZDir','JoyZ','JoyYDir',
'JoyYaw','JoyY','JoyXDir','JoyX','JoyVDir','JoyV','JoyUDir','JoyU','JoyType','JoyRoll',
'JoyPitch','JoyHit','JoyHat','JoyDown','JoinNetGame','Instr','Insert','Input',
'ImageYHandle','ImageXHandle','ImageWidth','ImagesOverlap','ImagesCollide','ImageRectOverlap','ImageRectCollide','ImageHeight','ImageBuffer',
'HostNetGame','HostIP','HidePointer','Hex','HandleImage','GraphicsWidth','GraphicsHeight','GraphicsDepth','GraphicsBuffer','Graphics',
'GrabImage','Global','GFXModeWidth','GFXModeHeight','GfxModeExists','GFXModeDepth','GfxDriverName','GetMouse',
'GetKey','GetJoy','GetEnv','GetColor','GammaRed','GammaGreen','GammaBlue','Function','FrontBuffer','FreeTimer',
'FreeSound','FreeImage','FreeFont','FreeBank','FontWidth','FontHeight','FlushMouse','FlushKeys',
'FlushJoy','Floor','Flip','First','FileType','FileSize','FilePos','Field',
'Exp','Exit','ExecFile','Eof','EndGraphics','Each','DrawMovie','DrawImageRect','DrawImage','DrawBlockRect','DrawBlock',
'DottedIP','Dim','DeleteNetPlayer','DeleteFile','DeleteDir','Delete','Delay','Default','DebugLog','Data',
'CurrentTime','CurrentDir','CurrentDate','CreateUDPStream','CreateTimer','CreateTCPServer','CreateNetPlayer','CreateImage','CreateDir','CreateBank',
'CountHostIPs','CountGFXModes','CountGfxDrivers','Cos','CopyStream','CopyRect','CopyPixelFast','CopyPixel','CopyImage','CopyFile',
'CopyBank','Const','CommandLine','ColorRed','ColorGreen','ColorBlue','Color','ClsColor','Cls','CloseUDPStream',
'CloseTCPStream','CloseTCPServer','CloseMovie','CloseFile','CloseDir','Chr','ChannelVolume','ChannelPlaying','ChannelPitch','ChannelPan',
'ChangeDir','Ceil','CallDLL','Bin','BankSize','BackBuffer','AvailVidMem','AutoMidHandle',
'ATan2','ATan','ASin','Asc','After','ACos','AcceptTCPStream','Abs',
// 3D Commands
'Wireframe','Windowed3D','WBuffer','VertexZ','VertexY',
'VertexX','VertexW','VertexV','VertexU','VertexTexCoords','VertexRed','VertexNZ','VertexNY','VertexNX','VertexNormal',
'VertexGreen','VertexCoords','VertexColor','VertexBlue','VertexAlpha','VectorYaw','VectorPitch','UpdateWorld','UpdateNormals','TurnEntity',
'TrisRendered','TriangleVertex','TranslateEntity','TFormVector','TFormPoint','TFormNormal','TFormedZ','TFormedY','TFormedX','TextureWidth',
'TextureName','TextureHeight','TextureFilter','TextureCoords','TextureBuffer','TextureBlend','TerrainZ','TerrainY','TerrainX','TerrainSize',
'TerrainShading','TerrainHeight','TerrainDetail','SpriteViewMode','ShowEntity','SetCubeFace','SetAnimTime','SetAnimKey','ScaleTexture','ScaleSprite',
'ScaleMesh','ScaleEntity','RotateTexture','RotateSprite','RotateMesh','RotateEntity','ResetEntity','RenderWorld','ProjectedZ','ProjectedY',
'ProjectedX','PositionTexture','PositionMesh','PositionEntity','PointEntity','PickedZ','PickedY','PickedX','PickedTriangle','PickedTime',
'PickedSurface','PickedNZ','PickedNY','PickedNX','PickedEntity','PaintSurface','PaintMesh','PaintEntity','NameEntity','MoveEntity',
'ModifyTerrain','MeshWidth','MeshHeight','MeshesIntersect','MeshDepth','MD2AnimTime','MD2AnimLength','MD2Animating','LoadTexture','LoadTerrain',
'LoadSprite','LoadMesh','LoadMD2','LoaderMatrix','LoadBSP','LoadBrush','LoadAnimTexture','LoadAnimSeq','LoadAnimMesh','Load3DSound',
'LinePick','LightRange','LightMesh','LightConeAngles','LightColor','HWMultiTex','HideEntity','HandleSprite','Graphics3D','GfxMode3DExists',
'GfxMode3D','GfxDriverCaps3D','GfxDriver3D','GetSurfaceBrush','GetSurface','GetParent','GetMatElement','GetEntityType','GetEntityBrush','GetChild',
'GetBrushTexture','FreeTexture','FreeEntity','FreeBrush','FlipMesh','FitMesh','FindSurface','FindChild','ExtractAnimSeq','EntityZ',
'EntityYaw','EntityY','EntityX','EntityVisible','EntityType','EntityTexture','EntityShininess','EntityRoll','EntityRadius','EntityPitch',
'EntityPickMode','EntityPick','EntityParent','EntityOrder','EntityName','EntityInView','EntityFX','EntityDistance','EntityColor','EntityCollided',
'EntityBox','EntityBlend','EntityAutoFade','EntityAlpha','EmitSound','Dither','DeltaYaw','DeltaPitch','CreateTexture','CreateTerrain',
'CreateSurface','CreateSprite','CreateSphere','CreatePlane','CreatePivot','CreateMirror','CreateMesh','CreateListener','CreateLight','CreateCylinder',
'CreateCube','CreateCone','CreateCamera','CreateBrush','CountVertices','CountTriangles','CountSurfaces','CountGfxModes3D','CountCollisions','CountChildren',
'CopyMesh','CopyEntity','CollisionZ','CollisionY','CollisionX','CollisionTriangle','CollisionTime','CollisionSurface','Collisions','CollisionNZ',
'CollisionNY','CollisionNX','CollisionEntity','ClearWorld','ClearTextureFilters','ClearSurface','ClearCollisions','CaptureWorld','CameraZoom','CameraViewport',
'CameraRange','CameraProjMode','CameraProject','CameraPick','CameraFogRange','CameraFogMode','CameraFogColor','CameraClsMode','CameraClsColor','BSPLighting',
'BSPAmbientLight','BrushTexture','BrushShininess','BrushFX','BrushColor','BrushBlend','BrushAlpha','AntiAlias','AnimTime','AnimSeq',
'AnimLength','Animating','AnimateMD2','Animate','AmbientLight','AlignToVector','AddVertex','AddTriangle','AddMesh','AddAnimSeq',
)
),
'SYMBOLS' => array(
'(',')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000066; font-weight: bold;',
2 => 'color: #0000ff;'
),
'COMMENTS' => array(
1 => 'color: #D9D100; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000066;'
),
'STRINGS' => array(
0 => 'color: #009900;'
),
'NUMBERS' => array(
0 => 'color: #CC0000;'
),
'METHODS' => array(
1 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #000066;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
0 => '',
1 => '',
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
1 => '\\'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => false,
1 => false
)
);
?>

119
Sources/geshi/bnf.php Normal file
View File

@ -0,0 +1,119 @@
<?php
/*************************************************************************************
* bnf.php
* --------
* Author: Rowan Rodrik van der Molen (rowan@bigsmoke.us)
* Copyright: (c) 2006 Rowan Rodrik van der Molen (http://www.bigsmoke.us/)
* Release Version: 1.0.8.11
* Date Started: 2006/09/28
*
* BNF (Backus-Naur form) language file for GeSHi.
*
* See http://en.wikipedia.org/wiki/Backus-Naur_form for more info on BNF.
*
* CHANGES
* -------
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
* - Removed superflicious regexps
* 2006/09/18 (1.0.0)
* - First Release
*
* TODO (updated 2006/09/18)
* -------------------------
* * Nothing I can think of
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'bnf',
'COMMENT_SINGLE' => array(';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', "'"),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(),
'SYMBOLS' => array(
0 => array('(', ')'),
1 => array('<', '>'),
2 => array('[', ']'),
3 => array('{', '}'),
4 => array('=', '*', '/', '|', ':'),
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false
),
'STYLES' => array(
'KEYWORDS' => array(),
'COMMENTS' => array(
0 => 'color: #666666; font-style: italic;', // Single Line comments
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => ''
),
'STRINGS' => array(
0 => 'color: #a00;',
1 => 'color: #a00;'
),
'NUMBERS' => array(
0 => ''
),
'METHODS' => array(
0 => ''
),
'SYMBOLS' => array(
0 => 'color: #000066; font-weight: bold;', // Round brackets
1 => 'color: #000066; font-weight: bold;', // Angel Brackets
2 => 'color: #000066; font-weight: bold;', // Square Brackets
3 => 'color: #000066; font-weight: bold;', // BRaces
4 => 'color: #006600; font-weight: bold;', // Other operator symbols
),
'REGEXPS' => array(
0 => 'color: #007;',
),
'SCRIPT' => array(
0 => ''
)
),
'URLS' => array(),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(
//terminal symbols
0 => array(
GESHI_SEARCH => '(&lt;)([^&]+?)(&gt;)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
),
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

217
Sources/geshi/boo.php Normal file
View File

@ -0,0 +1,217 @@
<?php
/*************************************************************************************
* boo.php
* --------
* Author: Marcus Griep (neoeinstein+GeSHi@gmail.com)
* Copyright: (c) 2007 Marcus Griep (http://www.xpdm.us)
* Release Version: 1.0.8.11
* Date Started: 2007/09/10
*
* Boo language file for GeSHi.
*
* CHANGES
* -------
* 2004/09/10 (1.0.8)
* - First Release
*
* TODO (updated 2007/09/10)
* -------------------------
* Regular Expression Literal matching
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Boo',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'''", "'", '"""', '"'),
'HARDQUOTE' => array('"""', '"""'),
'HARDESCAPE' => array('\"""'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(//Namespace
'namespace', 'import', 'from'
),
2 => array(//Jump
'yield', 'return', 'goto', 'continue', 'break'
),
3 => array(//Conditional
'while', 'unless', 'then', 'in', 'if', 'for', 'else', 'elif'
),
4 => array(//Property
'set', 'get'
),
5 => array(//Exception
'try', 'raise', 'failure', 'except', 'ensure'
),
6 => array(//Visibility
'public', 'private', 'protected', 'internal'
),
7 => array(//Define
'struct', 'ref', 'of', 'interface', 'event', 'enum', 'do', 'destructor', 'def', 'constructor', 'class'
),
8 => array(//Cast
'typeof', 'cast', 'as'
),
9 => array(//BiMacro
'yieldAll', 'using', 'unchecked', 'rawArayIndexing', 'print', 'normalArrayIndexing', 'lock',
'debug', 'checked', 'assert'
),
10 => array(//BiAttr
'required', 'property', 'meta', 'getter', 'default'
),
11 => array(//BiFunc
'zip', 'shellp', 'shellm', 'shell', 'reversed', 'range', 'prompt',
'matrix', 'map', 'len', 'join', 'iterator', 'gets', 'enumerate', 'cat', 'array'
),
12 => array(//HiFunc
'__switch__', '__initobj__', '__eval__', '__addressof__', 'quack'
),
13 => array(//Primitive
'void', 'ushort', 'ulong', 'uint', 'true', 'timespan', 'string', 'single',
'short', 'sbyte', 'regex', 'object', 'null', 'long', 'int', 'false', 'duck',
'double', 'decimal', 'date', 'char', 'callable', 'byte', 'bool'
),
14 => array(//Operator
'not', 'or', 'and', 'is', 'isa',
),
15 => array(//Modifier
'virtual', 'transient', 'static', 'partial', 'override', 'final', 'abstract'
),
16 => array(//Access
'super', 'self'
),
17 => array(//Pass
'pass'
)
),
'SYMBOLS' => array(
'[|', '|]', '${', '(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>', '+', '-', ';'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true,
9 => true,
10 => true,
11 => true,
12 => true,
13 => true,
14 => true,
15 => true,
16 => true,
17 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color:green;font-weight:bold;',
2 => 'color:navy;',
3 => 'color:blue;font-weight:bold;',
4 => 'color:#8B4513;',
5 => 'color:teal;font-weight:bold;',
6 => 'color:blue;font-weight:bold;',
7 => 'color:blue;font-weight:bold;',
8 => 'color:blue;font-weight:bold;',
9 => 'color:maroon;',
10 => 'color:maroon;',
11 => 'color:purple;',
12 => 'color:#4B0082;',
13 => 'color:purple;font-weight:bold;',
14 => 'color:#008B8B;font-weight:bold;',
15 => 'color:brown;',
16 => 'color:black;font-weight:bold;',
17 => 'color:gray;'
),
'COMMENTS' => array(
1 => 'color: #999999; font-style: italic;',
2 => 'color: #999999; font-style: italic;',
'MULTI' => 'color: #008000; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #0000FF; font-weight: bold;',
'HARD' => 'color: #0000FF; font-weight: bold;',
),
'BRACKETS' => array(
0 => 'color: #006400;'
),
'STRINGS' => array(
0 => 'color: #008000;',
'HARD' => 'color: #008000;'
),
'NUMBERS' => array(
0 => 'color: #00008B;'
),
'METHODS' => array(
0 => 'color: 000000;',
1 => 'color: 000000;'
),
'SYMBOLS' => array(
0 => 'color: #006400;'
),
'REGEXPS' => array(
#0 => 'color: #0066ff;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => '',
9 => '',
10 => '',
11 => '',
12 => '',
13 => '',
14 => '',
15 => '',
16 => '',
17 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
0 => '.',
1 => '::'
),
'REGEXPS' => array(
#0 => '%(@)?\/(?:(?(1)[^\/\\\\\r\n]+|[^\/\\\\\r\n \t]+)|\\\\[\/\\\\\w+()|.*?$^[\]{}\d])+\/%'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

281
Sources/geshi/c.php Normal file
View File

@ -0,0 +1,281 @@
<?php
/*************************************************************************************
* c.php
* -----
* Author: Nigel McNie (nigel@geshi.org)
* Contributors:
* - Jack Lloyd (lloyd@randombit.net)
* - Michael Mol (mikemol@gmail.com)
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2004/06/04
*
* C language file for GeSHi.
*
* CHANGES
* -------
* 2009/01/22 (1.0.8.3)
* - Made keywords case-sensitive.
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
* 2004/XX/XX (1.0.4)
* - Added a couple of new keywords (Jack Lloyd)
* 2004/11/27 (1.0.3)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.2)
* - Added support for URLs
* 2004/08/05 (1.0.1)
* - Added support for symbols
* 2004/07/14 (1.0.0)
* - First Release
*
* TODO (updated 2009/02/08)
* -------------------------
* - Get a list of inbuilt functions to add (and explore C more
* to complete this rather bare language file
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'C',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
//Multiline-continued single-line comments
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m',
//Multiline-continued preprocessor define
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m'
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
//Simple Single Char Escapes
1 => "#\\\\[\\\\abfnrtv\'\"?\n]#i",
//Hexadecimal Char Specs
2 => "#\\\\x[\da-fA-F]{2}#",
//Hexadecimal Char Specs
3 => "#\\\\u[\da-fA-F]{4}#",
//Hexadecimal Char Specs
4 => "#\\\\U[\da-fA-F]{8}#",
//Octal Char Specs
5 => "#\\\\[0-7]{1,3}#"
),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array(
'if', 'return', 'while', 'case', 'continue', 'default',
'do', 'else', 'for', 'switch', 'goto'
),
2 => array(
'null', 'false', 'break', 'true', 'function', 'enum', 'extern', 'inline'
),
3 => array(
// assert.h
'assert',
//complex.h
'cabs', 'cacos', 'cacosh', 'carg', 'casin', 'casinh', 'catan',
'catanh', 'ccos', 'ccosh', 'cexp', 'cimag', 'cis', 'clog', 'conj',
'cpow', 'cproj', 'creal', 'csin', 'csinh', 'csqrt', 'ctan', 'ctanh',
//ctype.h
'digittoint', 'isalnum', 'isalpha', 'isascii', 'isblank', 'iscntrl',
'isdigit', 'isgraph', 'islower', 'isprint', 'ispunct', 'isspace',
'isupper', 'isxdigit', 'toascii', 'tolower', 'toupper',
//inttypes.h
'imaxabs', 'imaxdiv', 'strtoimax', 'strtoumax', 'wcstoimax',
'wcstoumax',
//locale.h
'localeconv', 'setlocale',
//math.h
'acos', 'asin', 'atan', 'atan2', 'ceil', 'cos', 'cosh', 'exp',
'fabs', 'floor', 'frexp', 'ldexp', 'log', 'log10', 'modf', 'pow',
'sin', 'sinh', 'sqrt', 'tan', 'tanh',
//setjmp.h
'longjmp', 'setjmp',
//signal.h
'raise',
//stdarg.h
'va_arg', 'va_copy', 'va_end', 'va_start',
//stddef.h
'offsetof',
//stdio.h
'clearerr', 'fclose', 'fdopen', 'feof', 'ferror', 'fflush', 'fgetc',
'fgetpos', 'fgets', 'fopen', 'fprintf', 'fputc', 'fputchar',
'fputs', 'fread', 'freopen', 'fscanf', 'fseek', 'fsetpos', 'ftell',
'fwrite', 'getc', 'getch', 'getchar', 'gets', 'perror', 'printf',
'putc', 'putchar', 'puts', 'remove', 'rename', 'rewind', 'scanf',
'setbuf', 'setvbuf', 'snprintf', 'sprintf', 'sscanf', 'tmpfile',
'tmpnam', 'ungetc', 'vfprintf', 'vfscanf', 'vprintf', 'vscanf',
'vsprintf', 'vsscanf',
//stdlib.h
'abort', 'abs', 'atexit', 'atof', 'atoi', 'atol', 'bsearch',
'calloc', 'div', 'exit', 'free', 'getenv', 'itoa', 'labs', 'ldiv',
'ltoa', 'malloc', 'qsort', 'rand', 'realloc', 'srand', 'strtod',
'strtol', 'strtoul', 'system',
//string.h
'memchr', 'memcmp', 'memcpy', 'memmove', 'memset', 'strcat',
'strchr', 'strcmp', 'strcoll', 'strcpy', 'strcspn', 'strerror',
'strlen', 'strncat', 'strncmp', 'strncpy', 'strpbrk', 'strrchr',
'strspn', 'strstr', 'strtok', 'strxfrm',
//time.h
'asctime', 'clock', 'ctime', 'difftime', 'gmtime', 'localtime',
'mktime', 'strftime', 'time',
//wchar.h
'btowc', 'fgetwc', 'fgetws', 'fputwc', 'fputws', 'fwide',
'fwprintf', 'fwscanf', 'getwc', 'getwchar', 'mbrlen', 'mbrtowc',
'mbsinit', 'mbsrtowcs', 'putwc', 'putwchar', 'swprintf', 'swscanf',
'ungetwc', 'vfwprintf', 'vswprintf', 'vwprintf', 'wcrtomb',
'wcscat', 'wcschr', 'wcscmp', 'wcscoll', 'wcscpy', 'wcscspn',
'wcsftime', 'wcslen', 'wcsncat', 'wcsncmp', 'wcsncpy', 'wcspbrk',
'wcsrchr', 'wcsrtombs', 'wcsspn', 'wcsstr', 'wcstod', 'wcstok',
'wcstol', 'wcstoul', 'wcsxfrm', 'wctob', 'wmemchr', 'wmemcmp',
'wmemcpy', 'wmemmove', 'wmemset', 'wprintf', 'wscanf',
//wctype.h
'iswalnum', 'iswalpha', 'iswcntrl', 'iswctype', 'iswdigit',
'iswgraph', 'iswlower', 'iswprint', 'iswpunct', 'iswspace',
'iswupper', 'iswxdigit', 'towctrans', 'towlower', 'towupper',
'wctrans', 'wctype'
),
4 => array(
'auto', 'char', 'const', 'double', 'float', 'int', 'long',
'register', 'short', 'signed', 'sizeof', 'static', 'struct',
'typedef', 'union', 'unsigned', 'void', 'volatile', 'wchar_t',
'int8', 'int16', 'int32', 'int64',
'uint8', 'uint16', 'uint32', 'uint64',
'int_fast8_t', 'int_fast16_t', 'int_fast32_t', 'int_fast64_t',
'uint_fast8_t', 'uint_fast16_t', 'uint_fast32_t', 'uint_fast64_t',
'int_least8_t', 'int_least16_t', 'int_least32_t', 'int_least64_t',
'uint_least8_t', 'uint_least16_t', 'uint_least32_t', 'uint_least64_t',
'int8_t', 'int16_t', 'int32_t', 'int64_t',
'uint8_t', 'uint16_t', 'uint32_t', 'uint64_t',
'intmax_t', 'uintmax_t', 'intptr_t', 'uintptr_t',
'size_t', 'off_t'
),
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']',
'+', '-', '*', '/', '%',
'=', '<', '>',
'!', '^', '&', '|',
'?', ':',
';', ','
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;',
4 => 'color: #993333;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
2 => 'color: #339933;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
1 => 'color: #000099; font-weight: bold;',
2 => 'color: #660099; font-weight: bold;',
3 => 'color: #660099; font-weight: bold;',
4 => 'color: #660099; font-weight: bold;',
5 => 'color: #006699; font-weight: bold;',
'HARD' => '',
),
'BRACKETS' => array(
0 => 'color: #009900;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;',
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;',
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;',
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
),
'METHODS' => array(
1 => 'color: #202020;',
2 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #339933;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAMEL}.html',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View File

@ -0,0 +1,323 @@
<?php
/*************************************************************************************
* c_loadrunner.php
* ---------------------------------
* Author: Stuart Moncrieff (stuart at myloadtest dot com)
* Copyright: (c) 2010 Stuart Moncrieff (http://www.myloadtest.com/loadrunner-syntax-highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2010-07-25
*
* C (for LoadRunner) language file for GeSHi.
*
* Based on LoadRunner 9.52.
*
* CHANGES
* -------
* 2010-08-01 (1.0.8.9)
* - Added highlighting support for LoadRunner {parameters}.
* 2010-07-25 (1.0.8.8)
* - First Release. Syntax highlighting support for lr_, web_, and sapgui_ functions only.
*
* TODO (updated 2010-07-25)
* -------------------------
* - Add support for other vuser types: MMS, FTP, etc.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ************************************************************************************/
$language_data = array (
// The First Indices
'LANG_NAME' => 'C (LoadRunner)',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
// Escape characters within strings (like \\) are not highlighted differently in LoadRunner, so
// I am using GeSHi escape characters (or regular expressions) to highlight LoadRunner {parameters}.
// LoadRunner {parameters} must begin with a letter and contain only alphanumeric characters and '_'
'ESCAPE_REGEXP' => array(
0 => "#\{[a-zA-Z]{1}[a-zA-Z_]{0,}\}#",
),
// Keywords
'KEYWORDS' => array(
// Keywords from http://en.wikipedia.org/wiki/C_syntax
1 => array(
'auto', 'break', 'case', 'char', 'const', 'continue', 'default',
'do', 'double', 'else', 'enum', 'extern', 'float', 'for', 'goto',
'if', 'inline', 'int', 'long', 'register', 'restrict', 'return',
'short', 'signed', 'sizeof', 'static', 'struct', 'switch',
'typedef', 'union', 'unsigned', 'void', 'volatile', 'while',
'_Bool', '_Complex', '_Imaginary'
),
// C preprocessor directives from http://en.wikipedia.org/wiki/C_preprocessor
2 => array(
'#define', '#if', '#ifdef', '#ifndef', '#include', '#else', '#elif', '#endif', '#pragma', '#undef'
),
// Functions from lrun.h
3 => array(
'lr_start_transaction', 'lr_start_sub_transaction', 'lr_start_transaction_instance', 'lr_end_transaction',
'lr_end_sub_transaction', 'lr_end_transaction_instance', 'lr_stop_transaction', 'lr_stop_transaction_instance',
'lr_resume_transaction', 'lr_resume_transaction_instance', 'lr_wasted_time', 'lr_set_transaction', 'lr_user_data_point',
'lr_user_data_point_instance', 'lr_user_data_point_ex', 'lr_user_data_point_instance_ex', 'lr_get_transaction_duration',
'lr_get_trans_instance_duration', 'lr_get_transaction_think_time', 'lr_get_trans_instance_think_time',
'lr_get_transaction_wasted_time', 'lr_get_trans_instance_wasted_time', 'lr_get_transaction_status',
'lr_get_trans_instance_status', 'lr_set_transaction_status', 'lr_set_transaction_status_by_name',
'lr_set_transaction_instance_status', 'lr_start_timer', 'lr_end_timer', 'lr_rendezvous', 'lr_rendezvous_ex',
'lr_get_vuser_ip', 'lr_whoami', 'lr_get_host_name', 'lr_get_master_host_name', 'lr_get_attrib_long',
'lr_get_attrib_string', 'lr_get_attrib_double', 'lr_paramarr_idx', 'lr_paramarr_random', 'lr_paramarr_len',
'lr_param_unique', 'lr_param_sprintf', 'lr_load_dll', 'lr_continue_on_error', 'lr_decrypt', 'lr_abort', 'lr_exit',
'lr_peek_events', 'lr_think_time', 'lr_debug_message', 'lr_log_message', 'lr_message', 'lr_error_message',
'lr_output_message', 'lr_vuser_status_message', 'lr_fail_trans_with_error', 'lr_next_row', 'lr_advance_param',
'lr_eval_string', 'lr_eval_string_ext', 'lr_eval_string_ext_free', 'lr_param_increment', 'lr_save_var',
'lr_save_string', 'lr_save_int', 'lr_save_datetime', 'lr_save_searched_string', 'lr_set_debug_message',
'lr_get_debug_message', 'lr_enable_ip_spoofing', 'lr_disable_ip_spoofing', 'lr_convert_string_encoding'
),
// Constants from lrun.h
4 => array(
'DP_FLAGS_NO_LOG', 'DP_FLAGS_STANDARD_LOG', 'DP_FLAGS_EXTENDED_LOG', 'merc_timer_handle_t', 'LR_EXIT_VUSER',
'LR_EXIT_ACTION_AND_CONTINUE', 'LR_EXIT_ITERATION_AND_CONTINUE', 'LR_EXIT_VUSER_AFTER_ITERATION',
'LR_EXIT_VUSER_AFTER_ACTION', 'LR_EXIT_MAIN_ITERATION_AND_CONTINUE', 'LR_MSG_CLASS_DISABLE_LOG',
'LR_MSG_CLASS_STANDARD_LOG', 'LR_MSG_CLASS_RETURNED_DATA', 'LR_MSG_CLASS_PARAMETERS', 'LR_MSG_CLASS_ADVANCED_TRACE',
'LR_MSG_CLASS_EXTENDED_LOG', 'LR_MSG_CLASS_SENT_DATA', 'LR_MSG_CLASS_JIT_LOG_ON_ERROR', 'LR_SWITCH_OFF', 'LR_SWITCH_ON',
'LR_SWITCH_DEFAULT', 'ONE_DAY', 'ONE_HOUR', 'ONE_MIN', 'DATE_NOW', 'TIME_NOW', 'LR_MSG_CLASS_BRIEF_LOG',
'LR_MSG_CLASS_RESULT_DATA', 'LR_MSG_CLASS_FULL_TRACE', 'LR_MSG_CLASS_AUTO_LOG', 'LR_MSG_OFF', 'LR_MSG_ON',
'LR_MSG_DEFAULT'
),
// Functions from web_api.h
5 => array(
'web_reg_add_cookie', 'web_report_data_point', 'web_text_link', 'web_element', 'web_image_link', 'web_static_image',
'web_image_submit', 'web_button', 'web_edit_field', 'web_radio_group', 'web_check_box', 'web_list', 'web_text_area',
'web_map_area', 'web_eval_java_script', 'web_reg_dialog', 'web_reg_cross_step_download', 'web_browser',
'web_set_rts_key', 'web_save_param_length', 'web_save_timestamp_param', 'web_load_cache', 'web_dump_cache',
'web_add_cookie_ex'
),
// Constants from web_api.h
6 => array(
'DESCRIPTION', 'ACTION', 'VERIFICATION', 'LR_NOT_FOUND', 'HTTP_INFO_TOTAL_REQUEST_STAT',
'HTTP_INFO_TOTAL_RESPONSE_STAT', 'LRW_OPT_STOP_VUSER_ON_ERROR', 'LRW_OPT_DISPLAY_IMAGE_BODY'
),
// Functions from as_web.h
7 => array(
'web_add_filter', 'web_add_auto_filter', 'web_add_auto_header', 'web_add_header', 'web_add_cookie',
'web_cleanup_auto_headers', 'web_cleanup_cookies', 'web_concurrent_end', 'web_concurrent_start', 'web_create_html_param',
'web_create_html_param_ex', 'web_custom_request', 'web_disable_keep_alive', 'web_enable_keep_alive', 'web_find',
'web_get_int_property', 'web_image', 'web_image_check', 'web_link', 'web_global_verification', 'web_reg_find',
'web_reg_save_param', 'web_convert_param', 'web_remove_auto_filter', 'web_remove_auto_header', 'web_revert_auto_header',
'web_remove_cookie', 'web_save_header', 'web_set_certificate', 'web_set_certificate_ex', 'web_set_connections_limit',
'web_set_max_html_param_len', 'web_set_max_retries', 'web_set_proxy', 'web_set_proxy_bypass', 'web_set_secure_proxy',
'web_set_sockets_option', 'web_set_option', 'web_set_timeout', 'web_set_user', 'web_sjis_to_euc_param',
'web_submit_data', 'web_submit_form', 'web_url', 'web_set_proxy_bypass_local', 'web_cache_cleanup',
'web_create_html_query', 'web_create_radio_button_param', 'web_switch_net_layer'
),
// Constants from as_web.h
8 => array(
'ENDFORM', 'LAST', 'ENDITEM', 'EXTRARES', 'ITEMDATA', 'STARTHIDDENS', 'ENDHIDDENS', 'CONNECT', 'RECEIVE', 'RESOLVE',
'STEP', 'REQUEST', 'RESPONSE', 'STARTQUERY', 'ENDQUERY', 'INPROPS', 'OUTPROPS', 'ENDPROPS', 'RAW_BODY_START',
'RAW_BODY_END', 'HTTP_INFO_RETURN_CODE', 'HTTP_INFO_DOWNLOAD_SIZE', 'HTTP_INFO_DOWNLOAD_TIME',
'LRW_NET_SOCKET_OPT_LOAD_VERIFY_FILE', 'LRW_NET_SOCKET_OPT_DEFAULT_VERIFY_PATH', 'LRW_NET_SOCKET_OPT_SSL_VERSION',
'LRW_NET_SOCKET_OPT_SSL_CIPHER_LIST', 'LRW_NET_SOCKET_OPT_SO_REUSE_ADDRESS', 'LRW_NET_SOCKET_OPT_USER_IP_ADDRESS',
'LRW_NET_SOCKET_OPT_IP_ADDRESS_BY_INDEX', 'LRW_NET_SOCKET_OPT_HELP', 'LRW_NET_SOCKET_OPT_PRINT_USER_IP_ADDRESS_LIST',
'LRW_OPT_HTML_CHAR_REF_BACKWARD_COMPATIBILITY', 'LRW_OPT_VALUE_YES', 'LRW_OPT_VALUE_NO'
),
// Functions from as_sapgui.h
9 => array(
'sapgui_open_connection', 'sapgui_open_connection_ex', 'sapgui_logon', 'sapgui_create_session',
'sapgui_create_new_session', 'sapgui_call_method', 'sapgui_call_method_ex', 'sapgui_set_property',
'sapgui_get_property', 'sapgui_set_collection_property', 'sapgui_active_object_from_parent_method',
'sapgui_active_object_from_parent_property', 'sapgui_call_method_of_active_object',
'sapgui_call_method_of_active_object_ex', 'sapgui_set_property_of_active_object', 'sapgui_get_property_of_active_object',
'sapgui_select_active_connection', 'sapgui_select_active_session', 'sapgui_select_active_window ',
'sapgui_status_bar_get_text', 'sapgui_status_bar_get_param', 'sapgui_status_bar_get_type', 'sapgui_get_status_bar_text',
'sapgui_get_active_window_title', 'sapgui_is_object_available', 'sapgui_is_tab_selected', 'sapgui_is_object_changeable',
'sapgui_set_ok_code', 'sapgui_send_vkey', 'sapgui_resize_window', 'sapgui_window_resize', 'sapgui_window_maximize',
'sapgui_window_close', 'sapgui_window_restore', 'sapgui_window_scroll_to_row', 'sapgui_press_button',
'sapgui_select_radio_button', 'sapgui_set_password', 'sapgui_set_text', 'sapgui_select_menu', 'sapgui_select_tab',
'sapgui_set_checkbox', 'sapgui_set_focus', 'sapgui_select_combobox_entry', 'sapgui_get_ok_code',
'sapgui_is_radio_button_selected', 'sapgui_get_text', 'sapgui_is_checkbox_selected', 'sapgui_table_set_focus',
'sapgui_table_press_button', 'sapgui_table_select_radio_button', 'sapgui_table_set_password', 'sapgui_table_set_text',
'sapgui_table_set_checkbox', 'sapgui_table_select_combobox_entry', 'sapgui_table_set_row_selected',
'sapgui_table_set_column_selected', 'sapgui_table_set_column_width', 'sapgui_table_reorder', 'sapgui_table_fill_data',
'sapgui_table_get_text', 'sapgui_table_is_radio_button_selected', 'sapgui_table_is_checkbox_selected',
'sapgui_table_is_row_selected', 'sapgui_table_is_column_selected', 'sapgui_table_get_column_width',
'sapgui_grid_clear_selection', 'sapgui_grid_select_all', 'sapgui_grid_selection_changed',
'sapgui_grid_press_column_header', 'sapgui_grid_select_cell', 'sapgui_grid_select_rows', 'sapgui_grid_select_column',
'sapgui_grid_deselect_column', 'sapgui_grid_select_columns', 'sapgui_grid_select_cells', 'sapgui_grid_select_cell_row',
'sapgui_grid_select_cell_column', 'sapgui_grid_set_column_order', 'sapgui_grid_set_column_width',
'sapgui_grid_scroll_to_row', 'sapgui_grid_double_click', 'sapgui_grid_click', 'sapgui_grid_press_button',
'sapgui_grid_press_total_row', 'sapgui_grid_set_cell_data', 'sapgui_grid_set_checkbox',
'sapgui_grid_double_click_current_cell', 'sapgui_grid_click_current_cell', 'sapgui_grid_press_button_current_cell',
'sapgui_grid_press_total_row_current_cell', 'sapgui_grid_press_F1', 'sapgui_grid_press_F4', 'sapgui_grid_press_ENTER',
'sapgui_grid_press_toolbar_button', 'sapgui_grid_press_toolbar_context_button', 'sapgui_grid_open_context_menu',
'sapgui_grid_select_context_menu', 'sapgui_grid_select_toolbar_menu', 'sapgui_grid_fill_data',
'sapgui_grid_get_current_cell_row', 'sapgui_grid_get_current_cell_column', 'sapgui_grid_get_rows_count',
'sapgui_grid_get_columns_count', 'sapgui_grid_get_cell_data', 'sapgui_grid_is_checkbox_selected',
'sapgui_tree_scroll_to_node', 'sapgui_tree_set_hierarchy_header_width', 'sapgui_tree_set_selected_node',
'sapgui_tree_double_click_node', 'sapgui_tree_press_key', 'sapgui_tree_press_button', 'sapgui_tree_set_checkbox',
'sapgui_tree_double_click_item', 'sapgui_tree_click_link', 'sapgui_tree_open_default_context_menu',
'sapgui_tree_open_node_context_menu', 'sapgui_tree_open_header_context_menu', 'sapgui_tree_open_item_context_menu',
'sapgui_tree_select_context_menu', 'sapgui_tree_select_item', 'sapgui_tree_select_node', 'sapgui_tree_unselect_node',
'sapgui_tree_unselect_all', 'sapgui_tree_select_column', 'sapgui_tree_unselect_column', 'sapgui_tree_set_column_order',
'sapgui_tree_collapse_node', 'sapgui_tree_expand_node', 'sapgui_tree_scroll_to_item', 'sapgui_tree_set_column_width',
'sapgui_tree_press_header', 'sapgui_tree_is_checkbox_selected', 'sapgui_tree_get_node_text', 'sapgui_tree_get_item_text',
'sapgui_calendar_scroll_to_date', 'sapgui_calendar_focus_date', 'sapgui_calendar_select_interval',
'sapgui_apogrid_select_all', 'sapgui_apogrid_clear_selection', 'sapgui_apogrid_select_cell',
'sapgui_apogrid_deselect_cell', 'sapgui_apogrid_select_row', 'sapgui_apogrid_deselect_row',
'sapgui_apogrid_select_column', 'sapgui_apogrid_deselect_column', 'sapgui_apogrid_scroll_to_row',
'sapgui_apogrid_scroll_to_column', 'sapgui_apogrid_double_click', 'sapgui_apogrid_set_cell_data',
'sapgui_apogrid_get_cell_data', 'sapgui_apogrid_is_cell_changeable', 'sapgui_apogrid_get_cell_format',
'sapgui_apogrid_get_cell_tooltip', 'sapgui_apogrid_press_ENTER', 'sapgui_apogrid_open_cell_context_menu',
'sapgui_apogrid_select_context_menu_item', 'sapgui_text_edit_scroll_to_line', 'sapgui_text_edit_set_selection_indexes',
'sapgui_text_edit_set_unprotected_text_part', 'sapgui_text_edit_get_first_visible_line',
'sapgui_text_edit_get_selection_index_start', 'sapgui_text_edit_get_selection_index_end',
'sapgui_text_edit_get_number_of_unprotected_text_parts', 'sapgui_text_edit_double_click',
'sapgui_text_edit_single_file_dropped', 'sapgui_text_edit_multiple_files_dropped', 'sapgui_text_edit_press_F1',
'sapgui_text_edit_press_F4', 'sapgui_text_edit_open_context_menu', 'sapgui_text_edit_select_context_menu',
'sapgui_text_edit_modified_status_changed', 'sapgui_htmlviewer_send_event', 'sapgui_htmlviewer_dom_get_property',
'sapgui_toolbar_press_button', 'sapgui_toolbar_press_context_button', 'sapgui_toolbar_select_menu_item',
'sapgui_toolbar_select_menu_item_by_text', 'sapgui_toolbar_select_context_menu_item',
'sapgui_toolbar_select_context_menu_item_by_text'
),
// Constants from as_sapgui.h
10 => array(
'BEGIN_OPTIONAL', 'END_OPTIONAL', 'al-keys', 'ENTER', 'HELP', 'F2', 'BACK', 'F4', 'F5', 'F6', 'F7', 'F8', 'F9',
'F10', 'F11', 'ESC', 'SHIFT_F1', 'SHIFT_F2', 'SHIFT_F3', 'SHIFT_F4', 'SHIFT_F5', 'SHIFT_F6', 'SHIFT_F7', 'SHIFT_F8',
'SHIFT_F9', 'SHIFT_F10', 'SHIFT_F11', 'SHIFT_F12', 'CTRL_F1', 'CTRL_F2', 'CTRL_F3', 'CTRL_F4', 'CTRL_F5', 'CTRL_F6',
'CTRL_F7', 'CTRL_F8', 'CTRL_F9', 'CTRL_F10', 'CTRL_F11', 'CTRL_F12', 'CTRL_SHIFT_F1', 'CTRL_SHIFT_F2', 'CTRL_SHIFT_F3',
'CTRL_SHIFT_F4', 'CTRL_SHIFT_F5', 'CTRL_SHIFT_F6', 'CTRL_SHIFT_F7', 'CTRL_SHIFT_F8', 'CTRL_SHIFT_F9', 'CTRL_SHIFT_F10',
'CTRL_SHIFT_F11', 'CTRL_SHIFT_F12', 'CANCEL', 'CTRL_F', 'CTRL_PAGE_UP', 'PAGE_UP', 'PAGE_DOWN', 'CTRL_PAGE_DOWN',
'CTRL_G', 'CTRL_P'
),
),
// Symbols and Case Sensitivity
// Symbols from: http://en.wikipedia.org/wiki/C_syntax
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']',
'+', '-', '*', '/', '%',
'=', '<', '>', '!', '^', '&', '|', '?', ':', ';', ','
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true, // Standard C reserved keywords
2 => true, // C preprocessor directives
3 => true, // Functions from lrun.h
4 => true, // Constants from lrun.h
5 => true, // Functions from web_api.h
6 => true, // Constants from web_api.h
7 => true, // Functions from as_web.h
8 => true, // Constants from as_web.h
9 => true, // Functions from as_sapgui.h
10 => true, // Constants from as_sapgui.h
),
// Styles
'STYLES' => array(
'KEYWORDS' => array(
// Functions are brown, constants and reserved words are blue
1 => 'color: #0000ff;', // Standard C reserved keywords
2 => 'color: #0000ff;', // C preprocessor directives
3 => 'color: #8a0000;', // Functions from lrun.h
4 => 'color: #0000ff;', // Constants from lrun.h
5 => 'color: #8a0000;', // Functions from web_api.h
6 => 'color: #0000ff;', // Constants from web_api.h
7 => 'color: #8a0000;', // Functions from as_web.h
8 => 'color: #0000ff;', // Constants from as_web.h
9 => 'color: #8a0000;', // Functions from as_sapgui.h
10 => 'color: #0000ff;', // Constants from as_sapgui.h
),
'COMMENTS' => array(
// Comments are grey
1 => 'color: #9b9b9b;',
'MULTI' => 'color: #9b9b9b;'
),
'ESCAPE_CHAR' => array(
// GeSHi cannot define a separate style for ESCAPE_REGEXP. The style for ESCAPE_CHAR also applies to ESCAPE_REGEXP.
// This is used for LoadRunner {parameters}
// {parameters} are pink
0 => 'color: #c000c0;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
// Strings are green
0 => 'color: #008080;'
),
'NUMBERS' => array(
// Numbers are green
0 => 'color: #008080;',
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #008080;',
GESHI_NUMBER_OCT_PREFIX => 'color: #008080;',
GESHI_NUMBER_HEX_PREFIX => 'color: #008080;',
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#008080;',
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#008080;',
GESHI_NUMBER_FLT_NONSCI_F => 'color:#008080;',
GESHI_NUMBER_FLT_NONSCI => 'color:#008080;'
),
'METHODS' => array(
1 => 'color: #000000;'
),
'SYMBOLS' => array(
0 => 'color: #000000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
// URLs for Functions
'URLS' => array(
1 => '', // Standard C reserved keywords
2 => '', // C preprocessor directives
3 => '', // Functions from lrun.h
4 => '', // Constants from lrun.h
5 => '', // Functions from web_api.h
6 => '', // Constants from web_api.h
7 => '', // Functions from as_web.h
8 => '', // Constants from as_web.h
9 => '', // Functions from as_sapgui.h
10 => '', // Constants from as_sapgui.h
),
// Object Orientation
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
// Regular Expressions
// Note that REGEXPS are not applied within strings.
'REGEXPS' => array(
),
// Contextual Highlighting and Strict Mode
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
// Tabs
// Note that if you are using <pre> tags for your code, then the browser chooses how many spaces your tabs will translate to.
'TAB_WIDTH' => 4
);
?>

227
Sources/geshi/c_mac.php Normal file
View File

@ -0,0 +1,227 @@
<?php
/*************************************************************************************
* c_mac.php
* ---------
* Author: M. Uli Kusterer (witness.of.teachtext@gmx.net)
* Copyright: (c) 2004 M. Uli Kusterer, Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2004/06/04
*
* C for Macs language file for GeSHi.
*
* CHANGES
* -------
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
* 2004/11/27
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'C (Mac)',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
//Multiline-continued single-line comments
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m',
//Multiline-continued preprocessor define
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m'
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
//Simple Single Char Escapes
1 => "#\\\\[\\\\abfnrtv\'\"?\n]#i",
//Hexadecimal Char Specs
2 => "#\\\\x[\da-fA-F]{2}#",
//Hexadecimal Char Specs
3 => "#\\\\u[\da-fA-F]{4}#",
//Hexadecimal Char Specs
4 => "#\\\\U[\da-fA-F]{8}#",
//Octal Char Specs
5 => "#\\\\[0-7]{1,3}#"
),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array(
'if', 'return', 'while', 'case', 'continue', 'default',
'do', 'else', 'for', 'switch', 'goto'
),
2 => array(
'NULL', 'false', 'break', 'true', 'enum', 'errno', 'EDOM',
'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam',
'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC',
// Mac-specific constants:
'kCFAllocatorDefault'
),
3 => array(
'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
'ispunct', 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper',
'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp',
'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
),
4 => array(
'auto', 'char', 'const', 'double', 'float', 'int', 'long',
'register', 'short', 'signed', 'static', 'struct',
'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm', 'wchar_t',
'int8', 'int16', 'int32', 'int64',
'uint8', 'uint16', 'uint32', 'uint64',
'int_fast8_t', 'int_fast16_t', 'int_fast32_t', 'int_fast64_t',
'uint_fast8_t', 'uint_fast16_t', 'uint_fast32_t', 'uint_fast64_t',
'int_least8_t', 'int_least16_t', 'int_least32_t', 'int_least64_t',
'uint_least8_t', 'uint_least16_t', 'uint_least32_t', 'uint_least64_t',
'int8_t', 'int16_t', 'int32_t', 'int64_t',
'uint8_t', 'uint16_t', 'uint32_t', 'uint64_t',
'intmax_t', 'uintmax_t', 'intptr_t', 'uintptr_t',
// Mac-specific types:
'CFArrayRef', 'CFDictionaryRef', 'CFMutableDictionaryRef', 'CFBundleRef', 'CFSetRef', 'CFStringRef',
'CFURLRef', 'CFLocaleRef', 'CFDateFormatterRef', 'CFNumberFormatterRef', 'CFPropertyListRef',
'CFTreeRef', 'CFWriteStreamRef', 'CFCharacterSetRef', 'CFMutableStringRef', 'CFNotificationRef',
'CFReadStreamRef', 'CFNull', 'CFAllocatorRef', 'CFBagRef', 'CFBinaryHeapRef',
'CFBitVectorRef', 'CFBooleanRef', 'CFDataRef', 'CFDateRef', 'CFMachPortRef', 'CFMessagePortRef',
'CFMutableArrayRef', 'CFMutableBagRef', 'CFMutableBitVectorRef', 'CFMutableCharacterSetRef',
'CFMutableDataRef', 'CFMutableSetRef', 'CFNumberRef', 'CFPlugInRef', 'CFPlugInInstanceRef',
'CFRunLoopRef', 'CFRunLoopObserverRef', 'CFRunLoopSourceRef', 'CFRunLoopTimerRef', 'CFSocketRef',
'CFTimeZoneRef', 'CFTypeRef', 'CFUserNotificationRef', 'CFUUIDRef', 'CFXMLNodeRef', 'CFXMLParserRef',
'CFXMLTreeRef'
),
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000ff;',
2 => 'color: #0000ff;',
3 => 'color: #0000dd;',
4 => 'color: #0000ff;'
),
'COMMENTS' => array(
1 => 'color: #ff0000;',
2 => 'color: #339900;',
'MULTI' => 'color: #ff0000; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
1 => 'color: #000099; font-weight: bold;',
2 => 'color: #660099; font-weight: bold;',
3 => 'color: #660099; font-weight: bold;',
4 => 'color: #660099; font-weight: bold;',
5 => 'color: #006699; font-weight: bold;',
'HARD' => '',
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #666666;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;',
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;',
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;',
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
),
'METHODS' => array(
1 => 'color: #00eeff;',
2 => 'color: #00eeff;'
),
'SYMBOLS' => array(
0 => 'color: #000000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAMEL}.html',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

126
Sources/geshi/caddcl.php Normal file
View File

@ -0,0 +1,126 @@
<?php
/*************************************************************************************
* caddcl.php
* ----------
* Author: Roberto Rossi (rsoftware@altervista.org)
* Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2004/08/30
*
* CAD DCL (Dialog Control Language) language file for GeSHi.
*
* DCL for AutoCAD 12 or later and IntelliCAD all versions.
*
* CHANGES
* -------
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/1!/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'CAD DCL',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'boxed_column','boxed_radio_column','boxed_radio_row','boxed_row',
'column','concatenation','button','dialog','edit_box','image','image_button',
'errtile','list_box','ok_cancel','ok_cancel_help','ok_cancel_help_errtile',
'ok_cancel_help_info','ok_only','paragraph','popup_list','radio_button',
'radio_column','radio_row','row','slider','spacer','spacer_0','spacer_1','text',
'text_part','toggle',
'action','alignment','allow_accept','aspect_ratio','big_increment',
'children_alignment','children_fixed_height',
'children_fixed_width','color',
'edit_limit','edit_width','fixed_height','fixed_width',
'height','initial_focus','is_cancel','is_default',
'is_enabled','is_tab_stop','is-bold','key','label','layout','list',
'max_value','min_value','mnemonic','multiple_select','password_char',
'small_increment','tabs','tab_truncate','value','width',
'false','true','left','right','centered','top','bottom',
'dialog_line','dialog_foreground','dialog_background',
'graphics_background','black','red','yellow','green','cyan',
'blue','magenta','whitegraphics_foreground',
'horizontal','vertical'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

186
Sources/geshi/cadlisp.php Normal file
View File

@ -0,0 +1,186 @@
<?php
/*************************************************************************************
* cadlisp.php
* -----------
* Author: Roberto Rossi (rsoftware@altervista.org)
* Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/blog)
* Release Version: 1.0.8.11
* Date Started: 2004/08/30
*
* AutoCAD/IntelliCAD Lisp language file for GeSHi.
*
* For AutoCAD V.12..2005 and IntelliCAD all versions.
*
* CHANGES
* -------
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'CAD Lisp',
'COMMENT_SINGLE' => array(1 => ";"),
'COMMENT_MULTI' => array(";|" => "|;"),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'abs','acad_colordlg','acad_helpdlg','acad_strlsort','action_tile',
'add_list','alert','alloc','and','angle','angtof','angtos','append','apply',
'arx','arxload','arxunload','ascii','assoc','atan','atof','atoi','atom',
'atoms-family','autoarxload','autoload','Boole','boundp','caddr',
'cadr','car','cdr','chr','client_data_tile','close','command','cond',
'cons','cos','cvunit','defun','defun-q','defun-q-list-ref',
'defun-q-list-set','dictadd','dictnext','dictremove','dictrename',
'dictsearch','dimx_tile','dimy_tile','distance','distof','done_dialog',
'end_image','end_list','entdel','entget','entlast','entmake',
'entmakex','entmod','entnext','entsel','entupd','eq','equal','eval','exit',
'exp','expand','expt','fill_image','findfile','fix','float','foreach','function',
'gc','gcd','get_attr','get_tile','getangle','getcfg','getcname','getcorner',
'getdist','getenv','getfiled','getint','getkword','getorient','getpoint',
'getreal','getstring','getvar','graphscr','grclear','grdraw','grread','grtext',
'grvecs','handent','help','if','initdia','initget','inters','itoa','lambda','last',
'layoutlist','length','list','listp','load','load_dialog','log','logand','logior',
'lsh','mapcar','max','mem','member','menucmd','menugroup','min','minusp','mode_tile',
'namedobjdict','nentsel','nentselp','new_dialog','nil','not','nth','null',
'numberp','open','or','osnap','polar','prin1','princ','print','progn','prompt',
'quit','quote','read','read-char','read-line','redraw','regapp','rem','repeat',
'reverse','rtos','set','set_tile','setcfg','setenv','setfunhelp','setq','setvar',
'setview','sin','slide_image','snvalid','sqrt','ssadd','ssdel','ssget','ssgetfirst',
'sslength','ssmemb','ssname','ssnamex','sssetfirst','start_dialog','start_image',
'start_list','startapp','strcase','strcat','strlen','subst','substr','t','tablet',
'tblnext','tblobjname','tblsearch','term_dialog','terpri','textbox','textpage',
'textscr','trace','trans','type','unload_dialog','untrace','vector_image','ver',
'vports','wcmatch','while','write-char','write-line','xdroom','xdsize','zerop',
'vl-acad-defun','vl-acad-undefun','vl-arx-import','vlax-3D-point',
'vlax-add-cmd','vlax-create-object','vlax-curve-getArea',
'vlax-curve-getClosestPointTo','vlax-curve-getClosestPointToProjection',
'vlax-curve-getDistAtParam','vlax-curve-getDistAtPoint',
'vlax-curve-getEndParam','vlax-curve-getEndPoint',
'vlax-curve-getFirstDeriv','vlax-curve-getParamAtDist',
'vlax-curve-getParamAtPoint','vlax-curve-getPointAtDist',
'vlax-curve-getPointAtParam','vlax-curve-getSecondDeriv',
'vlax-curve-getStartParam','vlax-curve-getStartPoint',
'vlax-curve-isClosed','vlax-curve-isPeriodic','vlax-curve-isPlanar',
'vlax-dump-object','vlax-erased-p','vlax-for','vlax-get-acad-object',
'vlax-get-object','vlax-get-or-create-object','vlax-get-property',
'vlax-import-type-library','vlax-invoke-method','vlax-ldata-delete',
'vlax-ldata-get','vlax-ldata-list','vlax-ldata-put','vlax-ldata-test',
'vlax-make-safearray','vlax-make-variant','vlax-map-collection',
'vlax-method-applicable-p','vlax-object-released-p','vlax-product-key',
'vlax-property-available-p','vlax-put-property','vlax-read-enabled-p',
'vlax-release-object','vlax-remove-cmd','vlax-safearray-fill',
'vlax-safearray-get-dim','vlax-safearray-get-element',
'vlax-safearray-get-l-bound','vlax-safearray-get-u-bound',
'vlax-safearray-put-element','vlax-safearray-type','vlax-tmatrix',
'vlax-typeinfo-available-p','vlax-variant-change-type',
'vlax-variant-type','vlax-variant-value','vlax-write-enabled-p',
'vl-bb-ref','vl-bb-set','vl-catch-all-apply','vl-catch-all-error-message',
'vl-catch-all-error-p','vl-cmdf','vl-consp','vl-directory-files','vl-doc-export',
'vl-doc-import','vl-doc-ref','vl-doc-set','vl-every','vl-exit-with-error',
'vl-exit-with-value','vl-file-copy','vl-file-delete','vl-file-directory-p',
'vl-filename-base','vl-filename-directory','vl-filename-extension',
'vl-filename-mktemp','vl-file-rename','vl-file-size','vl-file-systime',
'vl-get-resource','vlisp-compile','vl-list-exported-functions',
'vl-list-length','vl-list-loaded-vlx','vl-load-all','vl-load-com',
'vl-load-reactors','vl-member-if','vl-member-if-not','vl-position',
'vl-prin1-to-string','vl-princ-to-string','vl-propagate','vlr-acdb-reactor',
'vlr-add','vlr-added-p','vlr-beep-reaction','vlr-command-reactor',
'vlr-current-reaction-name','vlr-data','vlr-data-set',
'vlr-deepclone-reactor','vlr-docmanager-reactor','vlr-dwg-reactor',
'vlr-dxf-reactor','vlr-editor-reactor','vl-registry-delete',
'vl-registry-descendents','vl-registry-read','vl-registry-write',
'vl-remove','vl-remove-if','vl-remove-if-not','vlr-insert-reactor',
'vlr-linker-reactor','vlr-lisp-reactor','vlr-miscellaneous-reactor',
'vlr-mouse-reactor','vlr-notification','vlr-object-reactor',
'vlr-owner-add','vlr-owner-remove','vlr-owners','vlr-pers','vlr-pers-list',
'vlr-pers-p','vlr-pers-release','vlr-reaction-names','vlr-reactions',
'vlr-reaction-set','vlr-reactors','vlr-remove','vlr-remove-all',
'vlr-set-notification','vlr-sysvar-reactor','vlr-toolbar-reactor',
'vlr-trace-reaction','vlr-type','vlr-types','vlr-undo-reactor',
'vlr-wblock-reactor','vlr-window-reactor','vlr-xref-reactor',
'vl-some','vl-sort','vl-sort-i','vl-string-elt','vl-string-left-trim',
'vl-string-mismatch','vl-string-position','vl-string-right-trim',
'vl-string-search','vl-string-subst','vl-string-translate','vl-string-trim',
'vl-symbol-name','vl-symbolp','vl-symbol-value','vl-unload-vlx','vl-vbaload',
'vl-vbarun','vl-vlx-loaded-p'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '!', '%', '^', '&', '/','+','-','*','=','<','>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

124
Sources/geshi/cfdg.php Normal file
View File

@ -0,0 +1,124 @@
<?php
/*************************************************************************************
* cfdg.php
* --------
* Author: John Horigan <john@glyphic.com>
* Copyright: (c) 2006 John Horigan http://www.ozonehouse.com/john/
* Release Version: 1.0.8.11
* Date Started: 2006/03/11
*
* CFDG language file for GeSHi.
*
* CHANGES
* -------
* 2006/03/11 (1.0.0)
* - First Release
*
* TODO (updated 2006/03/11)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'CFDG',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'include', 'startshape', 'rule', 'background'
),
2 => array(
'SQUARE', 'CIRCLE', 'TRIANGLE',
),
3 => array(
'b','brightness','h','hue','sat','saturation',
'a','alpha','x','y','z','s','size',
'r','rotate','f','flip','skew','xml_set_object'
)
),
'SYMBOLS' => array(
'[', ']', '{', '}', '*', '|'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #717100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #006666;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
0 => '',
1 => '',
2 => '',
3 => ''
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

299
Sources/geshi/cfm.php Normal file
View File

@ -0,0 +1,299 @@
<?php
/*************************************************************************************
* cfm.php
* -------
* Author: Diego
* Copyright: (c) 2006 Diego
* Release Version: 1.0.8.11
* Date Started: 2006/02/25
*
* ColdFusion language file for GeSHi.
*
* CHANGES
* -------
* 2006/02/25 (1.0.0)
* - First Release
*
* TODO (updated 2006/02/25)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ColdFusion',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
/* CFM Tags */
1 => array(
'cfabort', 'cfapplet', 'cfapplication', 'cfargument', 'cfassociate',
'cfbreak', 'cfcache', 'cfcase', 'cfcatch', 'cfchart', 'cfchartdata',
'cfchartseries', 'cfcol', 'cfcollection', 'cfcomponent',
'cfcontent', 'cfcookie', 'cfdefaultcase', 'cfdirectory',
'cfdocument', 'cfdocumentitem', 'cfdocumentsection', 'cfdump',
'cfelse', 'cfelseif', 'cferror', 'cfexecute', 'cfexit', 'cffile',
'cfflush', 'cfform', 'cfformgroup', 'cfformitem', 'cfftp',
'cffunction', 'cfgrid', 'cfgridcolumn', 'cfgridrow', 'cfgridupdate',
'cfheader', 'cfhtmlhead', 'cfhttp', 'cfhttpparam', 'cfif',
'cfimport', 'cfinclude', 'cfindex', 'cfinput', 'cfinsert',
'cfinvoke', 'cfinvokeargument', 'cfldap', 'cflocation', 'cflock',
'cflog', 'cflogin', 'cfloginuser', 'cflogout', 'cfloop', 'cfmail',
'cfmailparam', 'cfmailpart', 'cfmodule', 'cfNTauthenticate',
'cfobject', 'cfobjectcache', 'cfoutput', 'cfparam', 'cfpop',
'cfprocessingdirective', 'cfprocparam',
'cfprocresult', 'cfproperty', 'cfquery', 'cfqueryparam',
'cfregistry', 'cfreport', 'cfreportparam', 'cfrethrow', 'cfreturn',
'cfsavecontent', 'cfschedule', 'cfscript', 'cfsearch', 'cfselect',
'cfset', 'cfsetting', 'cfsilent', 'cfstoredproc',
'cfswitch', 'cftable', 'cftextarea', 'cfthrow', 'cftimer',
'cftrace', 'cftransaction', 'cftree', 'cftreeitem', 'cftry',
'cfupdate', 'cfwddx'
),
/* HTML Tags */
2 => array(
'a', 'abbr', 'acronym', 'address', 'applet',
'base', 'basefont', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'b',
'caption', 'center', 'cite', 'code', 'colgroup', 'col',
'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt',
'em',
'fieldset', 'font', 'form', 'frame', 'frameset',
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html',
'iframe', 'ilayer', 'img', 'input', 'ins', 'isindex', 'i',
'kbd',
'label', 'legend', 'link', 'li',
'map', 'meta',
'noframes', 'noscript',
'object', 'ol', 'optgroup', 'option',
'param', 'pre', 'p',
'q',
'samp', 'script', 'select', 'small', 'span', 'strike', 'strong', 'style', 'sub', 'sup', 's',
'table', 'tbody', 'td', 'textarea', 'text', 'tfoot', 'thead', 'th', 'title', 'tr', 'tt',
'ul', 'u',
'var',
),
/* HTML attributes */
3 => array(
'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis',
'background', 'bgcolor', 'border',
'cellpadding', 'cellspacing', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords',
'data', 'datetime', 'declare', 'defer', 'dir', 'disabled',
'enctype',
'face', 'for', 'frame', 'frameborder',
'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv',
'id', 'ismap',
'label', 'lang', 'language', 'link', 'longdesc',
'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple',
'name', 'nohref', 'noresize', 'noshade', 'nowrap',
'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload',
'profile', 'prompt',
'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules',
'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary',
'tabindex', 'target', 'text', 'title', 'type',
'usemap',
'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
'width'
),
/* CFM Script delimeters */
4 => array(
'var', 'function', 'while', 'if','else'
),
/* CFM Functions */
5 => array(
'Abs', 'GetFunctionList', 'LSTimeFormat','ACos','GetGatewayHelper','LTrim','AddSOAPRequestHeader','GetHttpRequestData',
'Max','AddSOAPResponseHeader','GetHttpTimeString','Mid','ArrayAppend','GetLocale','Min','ArrayAvg','GetLocaleDisplayName',
'Minute','ArrayClear','GetMetaData','Month','ArrayDeleteAt','GetMetricData','MonthAsString','ArrayInsertAt','GetPageContext',
'Now','ArrayIsEmpty','GetProfileSections','NumberFormat','ArrayLen','GetProfileString','ParagraphFormat','ArrayMax',
'GetLocalHostIP','ParseDateTime','ArrayMin','GetSOAPRequest','Pi','ArrayNew','GetSOAPRequestHeader','PreserveSingleQuotes',
'ArrayPrepend','GetSOAPResponse','Quarter','ArrayResize','GetSOAPResponseHeader','QueryAddColumn','ArraySet',
'GetTempDirectory','QueryAddRow','ArraySort','QueryNew','ArraySum','GetTempFile','QuerySetCell',
'ArraySwap','GetTickCount','QuotedValueList','ArrayToList','GetTimeZoneInfo','Rand','Asc','GetToken','Randomize',
'ASin','Hash','RandRange','Atn','Hour','REFind','BinaryDecode','HTMLCodeFormat','REFindNoCase','BinaryEncode',
'HTMLEditFormat','ReleaseComObject','BitAnd','IIf','RemoveChars','BitMaskClear','IncrementValue','RepeatString',
'BitMaskRead','InputBaseN','Replace','BitMaskSet','Insert','ReplaceList','BitNot','Int','ReplaceNoCase','BitOr',
'IsArray','REReplace','BitSHLN','IsBinary','REReplaceNoCase','BitSHRN','IsBoolean','Reverse','BitXor','IsCustomFunction',
'Right','Ceiling','IsDate','RJustify','CharsetDecode','IsDebugMode','Round','CharsetEncode','IsDefined','RTrim',
'Chr','IsLeapYear','Second','CJustify','IsLocalHost','SendGatewayMessage','Compare','IsNumeric','SetEncoding',
'CompareNoCase','IsNumericDate','SetLocale','Cos','IsObject','SetProfileString','CreateDate','IsQuery','SetVariable',
'CreateDateTime','IsSimpleValue','Sgn','CreateObject','IsSOAPRequest','Sin','CreateODBCDate','IsStruct','SpanExcluding',
'CreateODBCDateTime','IsUserInRole','SpanIncluding','CreateODBCTime','IsValid','Sqr','CreateTime','IsWDDX','StripCR',
'CreateTimeSpan','IsXML','StructAppend','CreateUUID','IsXmlAttribute','StructClear','DateAdd','IsXmlDoc','StructCopy',
'DateCompare','IsXmlElem','StructCount','DateConvert','IsXmlNode','StructDelete','DateDiff','IsXmlRoot','StructFind',
'DateFormat','JavaCast','StructFindKey','DatePart','JSStringFormat','StructFindValue','Day','LCase','StructGet',
'DayOfWeek','Left','StructInsert','DayOfWeekAsString','Len','StructIsEmpty','DayOfYear','ListAppend','StructKeyArray',
'DaysInMonth','ListChangeDelims','StructKeyExists','DaysInYear','ListContains','StructKeyList','DE','ListContainsNoCase',
'StructNew','DecimalFormat','ListDeleteAt','StructSort','DecrementValue','ListFind','StructUpdate','Decrypt','ListFindNoCase',
'Tan','DecryptBinary','ListFirst','TimeFormat','DeleteClientVariable','ListGetAt','ToBase64','DirectoryExists',
'ListInsertAt','ToBinary','DollarFormat','ListLast','ToScript','Duplicate','ListLen','ToString','Encrypt','ListPrepend',
'Trim','EncryptBinary','ListQualify','UCase','Evaluate','ListRest','URLDecode','Exp','ListSetAt','URLEncodedFormat',
'ExpandPath','ListSort','URLSessionFormat','FileExists','ListToArray','Val','Find','ListValueCount','ValueList',
'FindNoCase','ListValueCountNoCase','Week','FindOneOf','LJustify','Wrap','FirstDayOfMonth','Log','WriteOutput',
'Fix','Log10','XmlChildPos','FormatBaseN','LSCurrencyFormat','XmlElemNew','GetAuthUser','LSDateFormat','XmlFormat',
'GetBaseTagData','LSEuroCurrencyFormat','XmlGetNodeType','GetBaseTagList','LSIsCurrency','XmlNew','GetBaseTemplatePath',
'LSIsDate','XmlParse','GetClientVariablesList','LSIsNumeric','XmlSearch','GetCurrentTemplatePath','LSNumberFormat',
'XmlTransform','GetDirectoryFromPath','LSParseCurrency','XmlValidate','GetEncoding','LSParseDateTime','Year',
'GetException','LSParseEuroCurrency','YesNoFormat','GetFileFromPath','LSParseNumber'
),
/* CFM Attributes */
6 => array(
'dbtype','connectstring','datasource','username','password','query','delimeter','description','required','hint','default','access','from','to','list','index'
),
7 => array(
'EQ', 'GT', 'LT', 'GTE', 'LTE', 'IS', 'LIKE', 'NEQ'
)
),
'SYMBOLS' => array(
'/', '=', '{', '}', '(', ')', '[', ']', '<', '>', '&'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
7 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #990000; font-weight: bold;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #0000FF;',
4 => 'color: #000000; font-weight: bold;',
5 => 'color: #0000FF;',
6 => 'color: #0000FF;',
7 => 'color: #0000FF;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #0000FF;'
),
'STRINGS' => array(
0 => 'color: #009900;'
),
'NUMBERS' => array(
0 => 'color: #FF0000;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #0000FF;'
),
'SCRIPT' => array(
0 => 'color: #808080; font-style: italic;',
1 => 'color: #00bbdd;',
2 => 'color: #0000FF;',
3 => 'color: #000099;',
4 => 'color: #333333;',
5 => 'color: #333333;'
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => 'http://december.com/html/4/element/{FNAMEL}.html',
3 => '',
4 => '',
5 => '',
6 => '',
7 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
'SCRIPT_DELIMITERS' => array(
0 => array(
'<!--' => '-->'
),
1 => array(
'<!DOCTYPE' => '>'
),
2 => "/(?!<#)(?:(?:##)*)(#)[a-zA-Z0-9_\.\(\)]+(#)/",
3 => array(
'<cfscript>' => '</cfscript>'
),
4 => array(
'<' => '>'
),
5 => '/((?!<!)<)(?:"[^"]*"|\'[^\']*\'|(?R)|[^">])+?(>)/si'
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => false,
1 => false,
2 => true,
3 => true,
4 => true,
5 => true
),
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
1 => array(
'DISALLOWED_BEFORE' => '(?<=&lt;|&lt;\/)',
'DISALLOWED_AFTER' => '(?=\s|\/|&gt;)',
),
2 => array(
'DISALLOWED_BEFORE' => '(?<=&lt;|&lt;\/)',
'DISALLOWED_AFTER' => '(?=\s|\/|&gt;)',
),
3 => array(
'DISALLOWED_BEFORE' => '(?<![a-zA-Z0-9\$_\|\#>|^])', // allow ; before keywords
'DISALLOWED_AFTER' => '(?![a-zA-Z0-9_\|%\\-])', // allow & after keywords
),
7 => array(
'DISALLOWED_BEFORE' => '(?<![a-zA-Z0-9\$_\|\#>&|^])', // allow ; before keywords
'DISALLOWED_AFTER' => '(?![a-zA-Z0-9_\|%\\-])', // allow & after keywords
)
)
)
);
?>

View File

@ -0,0 +1,140 @@
<?php
/*************************************************************************************
* chaiscript.php
* --------------
* Author: Jason Turner & Jonathan Turner
* Copyright: (c) 2010 Jason Turner (lefticus@gmail.com),
* (c) 2009 Jonathan Turner,
* (c) 2004 Ben Keen (ben.keen@gmail.com), Benny Baumann (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2009/07/03
*
* ChaiScript language file for GeSHi.
*
* Based on JavaScript by Ben Keen (ben.keen@gmail.com)
*
* CHANGES
* -------
* 2010/03/30 (1.0.8.8)
* - Updated to include more language features
* - Removed left over pieces from JavaScript
* 2009/07/03 (1.0.0)
* - First Release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ChaiScript',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
//Regular Expressions
'COMMENT_REGEXP' => array(2 => "/(?<=[\\s^])s\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/[gimsu]*(?=[\\s$\\.\\;])|(?<=[\\s^(=])m?\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/[gimsu]*(?=[\\s$\\.\\,\\;\\)])/iU"),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'break', 'else', 'elseif', 'eval', 'for', 'if', 'return', 'while', 'try', 'catch', 'finally',
),
2 => array(
'def', 'false', 'fun', 'true', 'var', 'attr',
),
3 => array(
// built in functions
'throw',
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}',
'+', '-', '*', '/', '%',
'!', '@', '&', '|', '^',
'<', '>', '=',
',', ';', '?', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000066; font-weight: bold;',
2 => 'color: #003366; font-weight: bold;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
1 => 'color: #006600; font-style: italic;',
2 => 'color: #009966; font-style: italic;',
'MULTI' => 'color: #006600; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #009900;'
),
'STRINGS' => array(
0 => 'color: #3366CC;'
),
'NUMBERS' => array(
0 => 'color: #CC0000;'
),
'METHODS' => array(
1 => 'color: #660066;'
),
'SYMBOLS' => array(
0 => 'color: #339933;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
0 => '',
1 => '',
2 => '',
3 => ''
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
0 => array(
),
1 => array(
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
1 => true
)
);
?>

196
Sources/geshi/cil.php Normal file
View File

@ -0,0 +1,196 @@
<?php
/*************************************************************************************
* cil.php
* --------
* Author: Marcus Griep (neoeinstein+GeSHi@gmail.com)
* Copyright: (c) 2007 Marcus Griep (http://www.xpdm.us)
* Release Version: 1.0.8.11
* Date Started: 2007/10/24
*
* CIL (Common Intermediate Language) language file for GeSHi.
*
* CHANGES
* -------
* 2004/10/24 (1.0.8)
* - First Release
*
* TODO (updated 2007/10/24)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'CIL',
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'COMMENT_SINGLE' => array('//'),
'COMMENT_MULTI' => array(),
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(//Dotted
'.zeroinit', '.vtfixup', '.vtentry', '.vtable', '.ver', '.try', '.subsystem', '.size', '.set', '.removeon',
'.publickeytoken', '.publickey', '.property', '.permissionset', '.permission', '.pdirect', '.param', '.pack',
'.override', '.other', '.namespace', '.mresource', '.module', '.method', '.maxstack', '.manifestres', '.locals',
'.localized', '.locale', '.line', '.language', '.import', '.imagebase', '.hash', '.get', '.fire', '.file', '.field',
'.export', '.event', '.entrypoint', '.emitbyte', '.data', '.custom', '.culture', '.ctor', '.corflags', '.class',
'.cctor', '.assembly', '.addon'
),
2 => array(//Attributes
'wrapper', 'with', 'winapi', 'virtual', 'vector', 'vararg', 'value', 'userdefined', 'unused', 'unmanagedexp',
'unmanaged', 'unicode', 'to', 'tls', 'thiscall', 'synchronized', 'struct', 'strict', 'storage', 'stdcall',
'static', 'specialname', 'special', 'serializable', 'sequential', 'sealed', 'runtime', 'rtspecialname', 'request',
'reqsecobj', 'reqrefuse', 'reqopt', 'reqmin', 'record', 'public', 'privatescope', 'private', 'preservesig',
'prejitgrant', 'prejitdeny', 'platformapi', 'pinvokeimpl', 'pinned', 'permitonly', 'out', 'optil', 'opt',
'notserialized', 'notremotable', 'not_in_gc_heap', 'noprocess', 'noncaslinkdemand', 'noncasinheritance',
'noncasdemand', 'nometadata', 'nomangle', 'nomachine', 'noinlining', 'noappdomain', 'newslot', 'nested', 'native',
'modreq', 'modopt', 'marshal', 'managed', 'literal', 'linkcheck', 'lcid', 'lasterr', 'internalcall', 'interface',
'instance', 'initonly', 'init', 'inheritcheck', 'in', 'import', 'implicitres', 'implicitcom', 'implements',
'illegal', 'il', 'hidebysig', 'handler', 'fromunmanaged', 'forwardref', 'fixed', 'finally', 'final', 'filter',
'filetime', 'field', 'fault', 'fastcall', 'famorassem', 'family', 'famandassem', 'extern', 'extends', 'explicit',
'error', 'enum', 'endmac', 'deny', 'demand', 'default', 'custom', 'compilercontrolled', 'clsid', 'class', 'cil',
'cf', 'cdecl', 'catch', 'beforefieldinit', 'autochar', 'auto', 'at', 'assert', 'assembly', 'as', 'any', 'ansi',
'alignment', 'algorithm', 'abstract'
),
3 => array(//Types
'wchar', 'void', 'variant', 'unsigned', 'valuetype', 'typedref', 'tbstr', 'sysstring', 'syschar', 'string',
'streamed_object', 'stream', 'stored_object', 'safearray', 'objectref', 'object', 'nullref', 'method', 'lpwstr',
'lpvoid', 'lptstr', 'lpstruct', 'lpstr', 'iunknown', 'int64', 'int32', 'int16', 'int8', 'int', 'idispatch',
'hresult', 'float64', 'float32', 'float', 'decimal', 'date', 'currency', 'char', 'carray', 'byvalstr',
'bytearray', 'boxed', 'bool', 'blob_object', 'blob', 'array'
),
4 => array(//Prefix
'volatile', 'unaligned', 'tail', 'readonly', 'no', 'constrained'
),
5 => array(//Suffix
'un', 'u8', 'u4', 'u2', 'u1', 'u', 's', 'ref', 'r8', 'r4', 'm1', 'i8', 'i4', 'i2', 'i1', 'i'#, '.8', '.7', '.6', '.5', '.4', '.3', '.2', '.1', '.0'
),
6 => array(//Base
'xor', 'switch', 'sub', 'stloc',
'stind', 'starg',
'shr', 'shl', 'ret', 'rem', 'pop', 'or', 'not', 'nop', 'neg', 'mul',
'localloc', 'leave', 'ldnull', 'ldloca',
'ldloc', 'ldind', 'ldftn', 'ldc', 'ldarga',
'ldarg', 'jmp', 'initblk', 'endfinally', 'endfilter',
'endfault', 'dup', 'div', 'cpblk', 'conv', 'clt', 'ckfinite', 'cgt', 'ceq', 'calli',
'call', 'brzero', 'brtrue', 'brnull', 'brinst',
'brfalse', 'break', 'br', 'bne', 'blt', 'ble', 'bgt', 'bge', 'beq', 'arglist',
'and', 'add'
),
7 => array(//Object
'unbox.any', 'unbox', 'throw', 'stsfld', 'stobj', 'stfld', 'stelem', 'sizeof', 'rethrow', 'refanyval', 'refanytype', 'newobj',
'newarr', 'mkrefany', 'ldvirtftn', 'ldtoken', 'ldstr', 'ldsflda', 'ldsfld', 'ldobj', 'ldlen', 'ldflda', 'ldfld',
'ldelema', 'ldelem', 'isinst', 'initobj', 'cpobj', 'castclass',
'callvirt', 'callmostderived', 'box'
),
8 => array(//Other
'prefixref', 'prefix7', 'prefix6', 'prefix5', 'prefix4', 'prefix3', 'prefix2', 'prefix1', 'prefix0'
),
9 => array(//Literal
'true', 'null', 'false'
),
10 => array(//Comment-like
'#line', '^THE_END^'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '!', '!!'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true,
9 => true,
10 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color:maroon;font-weight:bold;',
2 => 'color:blue;font-weight:bold;',
3 => 'color:purple;font-weight:bold;',
4 => 'color:teal;',
5 => 'color:blue;',
6 => 'color:blue;',
7 => 'color:blue;',
8 => 'color:blue;',
9 => 'color:00008B',
10 => 'color:gray'
),
'COMMENTS' => array(
0 => 'color:gray;font-style:italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #008000; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #006400;'
),
'STRINGS' => array(
0 => 'color: #008000;'
),
'NUMBERS' => array(
0 => 'color: #00008B;'
),
'METHODS' => array(
1 => 'color: #000033;'
),
'SYMBOLS' => array(
0 => 'color: #006400;'
),
'REGEXPS' => array(
0 => 'color:blue;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => '',
9 => '',
10 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '::'
),
'REGEXPS' => array(
0 => '(?<=ldc\\.i4\\.)[0-8]|(?<=(?:ldarg|ldloc|stloc)\\.)[0-3]' # Pickup the opcodes that end with integers
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

134
Sources/geshi/clojure.php Normal file
View File

@ -0,0 +1,134 @@
<?php
/*************************************************************************************
* clojure.php
* --------
* Author: Jess Johnson (jess@grok-code.com)
* Copyright: (c) 2009 Jess Johnson (http://grok-code.com)
* Release Version: 1.0.8.11
* Date Started: 2009/09/20
*
* Clojure language file for GeSHi.
*
* This file borrows significantly from the lisp language file for GeSHi
*
* CHANGES
* -------
* 2009/09/20 (1.0.8.6)
* - First Release
*
* TODO (updated 2009/09/20)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Clojure',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(';|' => '|;'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'defn', 'defn-', 'defmulti', 'defmethod', 'defmacro', 'deftest',
'defstruct', 'def', 'defonce', 'let', 'letfn', 'do', 'cond', 'condp',
'for', 'loop', 'recur', 'when', 'when-not', 'when-let', 'when-first',
'if', 'if-let', 'if-not', 'doto', 'and', 'or','not','aget','aset',
'dosync', 'doseq', 'dotimes', 'dorun', 'doall',
'load', 'import', 'unimport', 'ns', 'in-ns', 'refer', 'print',
'try', 'catch', 'finally', 'throw', 'fn', 'update-in',
'with-open', 'with-local-vars', 'binding',
'gen-class', 'gen-and-load-class', 'gen-and-save-class',
'implement', 'proxy', 'lazy-cons', 'with-meta',
'struct', 'struct-map', 'delay', 'locking', 'sync', 'time', 'apply',
'remove', 'merge', 'interleave', 'interpose', 'distinct',
'cons', 'concat', 'lazy-cat', 'cycle', 'rest', 'frest', 'drop',
'drop-while', 'nthrest', 'take', 'take-while', 'take-nth', 'butlast',
'reverse', 'sort', 'sort-by', 'split-at', 'partition', 'split-with',
'first', 'ffirst', 'rfirst', 'zipmap', 'into', 'set', 'vec',
'to-array-2d', 'not-empty', 'seq?', 'not-every?', 'every?', 'not-any?',
'map', 'mapcat', 'vector?', 'list?', 'hash-map', 'reduce', 'filter',
'vals', 'keys', 'rseq', 'subseq', 'rsubseq', 'count', 'empty?',
'fnseq', 'repeatedly', 'iterate', 'drop-last',
'repeat', 'replicate', 'range', 'into-array',
'line-seq', 'resultset-seq', 're-seq', 're-find', 'tree-seq', 'file-seq',
'iterator-seq', 'enumeration-seq', 'declare', 'xml-seq',
'symbol?', 'string?', 'vector', 'conj', 'str',
'pos?', 'neg?', 'zero?', 'nil?', 'inc', 'dec', 'format',
'alter', 'commute', 'ref-set', 'floor', 'assoc', 'send', 'send-off'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '!', '%', '^', '&', '/','+','-','*','=','<','>',';','|', '.', '..', '->',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => true,
1 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
0 => 'color: #555;',
1 => 'color: #555;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
'::', ':'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

181
Sources/geshi/cmake.php Normal file
View File

@ -0,0 +1,181 @@
<?php
/*************************************************************************************
* cmake.php
* -------
* Author: Daniel Nelson (danieln@eng.utah.edu)
* Copyright: (c) 2009 Daniel Nelson
* Release Version: 1.0.8.11
* Date Started: 2009/04/06
*
* CMake language file for GeSHi.
*
* Keyword list generated using CMake 2.6.3.
*
* CHANGES
* -------
* <date-of-release> (<GeSHi release>)
* - First Release
*
* TODO (updated <date-of-release>)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'CMake',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'ESCAPE_REGEXP' => array(
// Quoted variables ${...}
1 => "/\\$(ENV)?\\{[^\\n\\}]*?\\}/i",
// Quoted registry keys [...]
2 => "/\\[HKEY[^\n\\]]*?]/i"
),
'KEYWORDS' => array(
1 => array(
'add_custom_command', 'add_custom_target', 'add_definitions',
'add_dependencies', 'add_executable', 'add_library',
'add_subdirectory', 'add_test', 'aux_source_directory', 'break',
'build_command', 'cmake_minimum_required', 'cmake_policy',
'configure_file', 'create_test_sourcelist', 'define_property',
'else', 'elseif', 'enable_language', 'enable_testing',
'endforeach', 'endfunction', 'endif', 'endmacro',
'endwhile', 'execute_process', 'export', 'file', 'find_file',
'find_library', 'find_package', 'find_path', 'find_program',
'fltk_wrap_ui', 'foreach', 'function', 'get_cmake_property',
'get_directory_property', 'get_filename_component', 'get_property',
'get_source_file_property', 'get_target_property',
'get_test_property', 'if', 'include', 'include_directories',
'include_external_msproject', 'include_regular_expression',
'install', 'link_directories', 'list', 'load_cache',
'load_command', 'macro', 'mark_as_advanced', 'math', 'message',
'option', 'output_required_files', 'project', 'qt_wrap_cpp',
'qt_wrap_ui', 'remove_definitions', 'return', 'separate_arguments',
'set', 'set_directory_properties', 'set_property',
'set_source_files_properties', 'set_target_properties',
'set_tests_properties', 'site_name', 'source_group', 'string',
'target_link_libraries', 'try_compile', 'try_run', 'unset',
'variable_watch', 'while'
),
2 => array(
// Deprecated commands
'build_name', 'exec_program', 'export_library_dependencies',
'install_files', 'install_programs', 'install_targets',
'link_libraries', 'make_directory', 'remove', 'subdir_depends',
'subdirs', 'use_mangled_mesa', 'utility_source',
'variable_requires', 'write_file'
),
3 => array(
// Special command arguments, this list is not comprehesive.
'AND', 'APPEND', 'ASCII', 'BOOL', 'CACHE', 'COMMAND', 'COMMENT',
'COMPARE', 'CONFIGURE', 'DEFINED', 'DEPENDS', 'DIRECTORY',
'EQUAL', 'EXCLUDE_FROM_ALL', 'EXISTS', 'FALSE', 'FATAL_ERROR',
'FILEPATH', 'FIND', 'FORCE', 'GET', 'GLOBAL', 'GREATER',
'IMPLICIT_DEPENDS', 'INSERT', 'INTERNAL', 'IS_ABSOLUTE',
'IS_DIRECTORY', 'IS_NEWER_THAN', 'LENGTH', 'LESS',
'MAIN_DEPENDENCY', 'MATCH', 'MATCHALL', 'MATCHES', 'MODULE', 'NOT',
'NOTFOUND', 'OFF', 'ON', 'OR', 'OUTPUT', 'PARENT_SCOPE', 'PATH',
'POLICY', 'POST_BUILD', 'PRE_BUILD', 'PRE_LINK', 'PROPERTY',
'RANDOM', 'REGEX', 'REMOVE_AT', 'REMOVE_DUPLICATES', 'REMOVE_ITEM',
'REPLACE', 'REVERSE', 'SEND_ERROR', 'SHARED', 'SORT', 'SOURCE',
'STATIC', 'STATUS', 'STREQUAL', 'STRGREATER', 'STRING', 'STRIP',
'STRLESS', 'SUBSTRING', 'TARGET', 'TEST', 'TOLOWER', 'TOUPPER',
'TRUE', 'VERBATIM', 'VERSION', 'VERSION_EQUAL', 'VERSION_GREATOR',
'VERSION_LESS', 'WORKING_DIRECTORY',
)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => true
),
'SYMBOLS' => array(
0 => array('(', ')')
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #1f3f81; font-style: bold;',
2 => 'color: #1f3f81;',
3 => 'color: #077807; font-sytle: italic;'
),
'BRACKETS' => array(),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
1 => 'color: #b08000;',
2 => 'color: #0000cd;'
),
'STRINGS' => array(
0 => 'color: #912f11;',
),
'SYMBOLS' => array(
0 => 'color: #197d8b;'
),
'NUMBERS' => array(),
'METHODS' => array(),
'REGEXPS' => array(
0 => 'color: #b08000;',
1 => 'color: #0000cd;'
),
'SCRIPT' => array()
),
'URLS' => array(
1 => 'http://www.cmake.org/cmake/help/cmake2.6docs.html#command:{FNAMEL}',
2 => 'http://www.cmake.org/cmake/help/cmake2.6docs.html#command:{FNAMEL}',
3 => '',
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(
// Unquoted variables
0 => "\\$(ENV)?\\{[^\\n}]*?\\}",
// Unquoted registry keys
1 => "\\[HKEY[^\n\\]]*?]"
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array(),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
// These keywords cannot come after a open paren
1 => array(
'DISALLOWED_AFTER' => '(?= *\()'
),
2 => array(
'DISALLOWED_AFTER' => '(?= *\()'
)
),
'ENABLE_FLAGS' => array(
'BRACKETS' => GESHI_NEVER,
'METHODS' => GESHI_NEVER,
'NUMBERS' => GESHI_NEVER
)
)
);
?>

244
Sources/geshi/cobol.php Normal file
View File

@ -0,0 +1,244 @@
<?php
/*************************************************************************************
* cobol.php
* ----------
* Author: BenBE (BenBE@omorphia.org)
* Copyright: (c) 2007-2008 BenBE (http://www.omorphia.de/)
* Release Version: 1.0.8.11
* Date Started: 2007/07/02
*
* COBOL language file for GeSHi.
*
* CHANGES
* -------
*
* TODO (updated 2007/07/02)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'COBOL',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(1 => '/^\*.*?$/m'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', "'"),
'ESCAPE_CHAR' => '\\',
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC |
GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_SCI_SHORT |
GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array( //Compiler Directives
'ANSI', 'BLANK', 'NOBLANK', 'CALL-SHARED', 'CANCEL', 'NOCANCEL',
'CHECK', 'CODE', 'NOCODE', 'COLUMNS', 'COMPACT', 'NOCOMPACT',
'COMPILE', 'CONSULT', 'NOCONSULT', 'CROSSREF', 'NOCROSSREF',
'DIAGNOSE-74', 'NODIAGNOSE-74', 'DIAGNOSE-85', 'NODIAGNOSE-85',
'DIAGNOSEALL', 'NODIAGNOSEALL', 'ENDIF', 'ENDUNIT', 'ENV',
'ERRORFILE', 'ERRORS', 'FIPS', 'NOFIPS', 'FMAP', 'HEADING', 'HEAP',
'HIGHPIN', 'HIGHREQUESTERS', 'ICODE', 'NOICODE', 'IF', 'IFNOT',
'INNERLIST', 'NOINNERLIST', 'INSPECT', 'NOINSPECT', 'LARGEDATA',
'LD', 'LESS-CODE', 'LIBRARY', 'LINES', 'LIST', 'NOLIST', 'LMAP',
'NOLMAP', 'MAIN', 'MAP', 'NOMAP', 'NLD', 'NONSTOP', 'NON-SHARED',
'OPTIMIZE', 'PERFORM-TRACE', 'PORT', 'NOPORT', 'RESETTOG',
'RUNNABLE', 'RUNNAMED', 'SAVE', 'SAVEABEND', 'NOSAVEABEND',
'SEARCH', 'NOSEARCH', 'SECTION', 'SETTOG', 'SHARED', 'SHOWCOPY',
'NOSHOWCOPY', 'SHOWFILE', 'NOSHOWFILE', 'SOURCE', 'SQL', 'NOSQL',
'SQLMEM', 'SUBSET', 'SUBTYPE', 'SUPPRESS', 'NOSUPPRESS', 'SYMBOLS',
'NOSYMBOLS', 'SYNTAX', 'TANDEM', 'TRAP2', 'NOTRAP2', 'TRAP2-74',
'NOTRAP2-74', 'UL', 'WARN', 'NOWARN'
),
2 => array( //Statement Keywords
'ACCEPT', 'ADD', 'TO', 'GIVING', 'CORRESPONDING', 'ALTER', 'CALL',
'CHECKPOINT', 'CLOSE', 'COMPUTE', 'CONTINUE', 'COPY',
'DELETE', 'DISPLAY', 'DIVIDE', 'INTO', 'REMAINDER', 'ENTER',
'COBOL', 'EVALUATE', 'EXIT', 'GO', 'INITIALIZE',
'TALLYING', 'REPLACING', 'CONVERTING', 'LOCKFILE', 'MERGE', 'MOVE',
'MULTIPLY', 'OPEN', 'PERFORM', 'TIMES',
'UNTIL', 'VARYING', 'RETURN',
),
3 => array( //Reserved in some contexts
'ACCESS', 'ADDRESS', 'ADVANCING', 'AFTER', 'ALL',
'ALPHABET', 'ALPHABETIC', 'ALPHABETIC-LOWER', 'ALPHABETIC-UPPER',
'ALPHANUMERIC', 'ALPHANUMERIC-EDITED', 'ALSO', 'ALTERNATE',
'AND', 'ANY', 'APPROXIMATE', 'AREA', 'AREAS', 'ASCENDING', 'ASSIGN',
'AT', 'AUTHOR', 'BEFORE', 'BINARY', 'BLOCK', 'BOTTOM', 'BY',
'CD', 'CF', 'CH', 'CHARACTER', 'CHARACTERS',
'CHARACTER-SET', 'CLASS', 'CLOCK-UNITS',
'CODE-SET', 'COLLATING', 'COLUMN', 'COMMA',
'COMMON', 'COMMUNICATION', 'COMP', 'COMP-3', 'COMP-5',
'COMPUTATIONAL', 'COMPUTATIONAL-3', 'COMPUTATIONAL-5',
'CONFIGURATION', 'CONTAINS', 'CONTENT', 'CONTROL',
'CONTROLS', 'CORR', 'COUNT',
'CURRENCY', 'DATA', 'DATE', 'DATE-COMPILED', 'DATE-WRITTEN', 'DAY',
'DAY-OF-WEEK', 'DE', 'DEBUG-CONTENTS', 'DEBUG-ITEM', 'DEBUG-LINE',
'DEBUG-SUB-2', 'DEBUG-SUB-3', 'DEBUGGING', 'DECIMAL-POINT',
'DECLARATIVES', 'DEBUG-NAME', 'DEBUG-SUB-1', 'DELIMITED',
'DELIMITER', 'DEPENDING', 'DESCENDING', 'DESTINATION', 'DETAIL',
'DISABLE', 'DIVISION', 'DOWN', 'DUPLICATES',
'DYNAMIC', 'EGI', 'ELSE', 'EMI', 'ENABLE', 'END', 'END-ADD',
'END-COMPUTE', 'END-DELETE', 'END-DIVIDE', 'END-EVALUATE', 'END-IF',
'END-MULTIPLY', 'END-OF-PAGE', 'END-PERFORM', 'END-READ',
'END-RECEIVE', 'END-RETURN', 'END-REWRITE', 'END-SEARCH',
'END-START', 'END-STRING', 'END-SUBTRACT', 'END-UNSTRING',
'END-WRITE', 'EOP', 'EQUAL', 'ERROR', 'ESI',
'EVERY', 'EXCEPTION', 'EXCLUSIVE', 'EXTEND',
'EXTENDED-STORAGE', 'EXTERNAL', 'FALSE', 'FD', 'FILE',
'FILE-CONTROL', 'FILLER', 'FINAL', 'FIRST', 'FOOTING', 'FOR',
'FROM', 'FUNCTION', 'GENERATE', 'GENERIC', 'GLOBAL',
'GREATER', 'GROUP', 'GUARDIAN-ERR', 'HIGH-VALUE',
'HIGH-VALUES', 'I-O', 'I-O-CONTROL', 'IDENTIFICATION', 'IN',
'INDEX', 'INDEXED', 'INDICATE', 'INITIAL', 'INITIATE',
'INPUT', 'INPUT-OUTPUT', 'INSTALLATION',
'INVALID', 'IS', 'JUST', 'JUSTIFIED', 'KEY', 'LABEL', 'LAST',
'LEADING', 'LEFT', 'LESS', 'LIMIT', 'LIMITS', 'LINAGE',
'LINAGE-COUNTER', 'LINE', 'LINE-COUNTER', 'LINKAGE', 'LOCK',
'LOW-VALUE', 'LOW-VALUES', 'MEMORY', 'MESSAGE',
'MODE', 'MODULES', 'MULTIPLE', 'NATIVE',
'NEGATIVE', 'NEXT', 'NO', 'NOT', 'NULL', 'NULLS', 'NUMBER',
'NUMERIC', 'NUMERIC-EDITED', 'OBJECT-COMPUTER', 'OCCURS', 'OF',
'OFF', 'OMITTED', 'ON', 'OPTIONAL', 'OR', 'ORDER',
'ORGANIZATION', 'OTHER', 'OUTPUT', 'OVERFLOW', 'PACKED-DECIMAL',
'PADDING', 'PAGE', 'PAGE-COUNTER', 'PF', 'PH', 'PIC',
'PICTURE', 'PLUS', 'POINTER', 'POSITION', 'POSITIVE', 'PRINTING',
'PROCEDURE', 'PROCEDURES', 'PROCEED', 'PROGRAM', 'PROGRAM-ID',
'PROGRAM-STATUS', 'PROGRAM-STATUS-1', 'PROGRAM-STATUS-2', 'PROMPT',
'PROTECTED', 'PURGE', 'QUEUE', 'QUOTE', 'QUOTES', 'RD',
'RECEIVE', 'RECEIVE-CONTROL', 'RECORD', 'RECORDS',
'REDEFINES', 'REEL', 'REFERENCE', 'REFERENCES', 'RELATIVE',
'REMOVAL', 'RENAMES', 'REPLACE',
'REPLY', 'REPORT', 'REPORTING', 'REPORTS', 'RERUN',
'RESERVE', 'RESET', 'REVERSED', 'REWIND', 'REWRITE', 'RF',
'RH', 'RIGHT', 'ROUNDED', 'RUN', 'SAME', 'SD',
'SECURITY', 'SEGMENT', 'SEGMENT-LIMIT', 'SELECT', 'SEND',
'SENTENCE', 'SEPARATE', 'SEQUENCE', 'SEQUENTIAL', 'SET',
'SIGN', 'SIZE', 'SORT', 'SORT-MERGE', 'SOURCE-COMPUTER',
'SPACE', 'SPACES', 'SPECIAL-NAMES', 'STANDARD', 'STANDARD-1',
'STANDARD-2', 'START', 'STARTBACKUP', 'STATUS', 'STOP', 'STRING',
'SUB-QUEUE-1', 'SUB-QUEUE-2', 'SUB-QUEUE-3', 'SUBTRACT',
'SYMBOLIC', 'SYNC', 'SYNCDEPTH', 'SYNCHRONIZED',
'TABLE', 'TAL', 'TAPE', 'TERMINAL', 'TERMINATE', 'TEST',
'TEXT', 'THAN', 'THEN', 'THROUGH', 'THRU', 'TIME',
'TOP', 'TRAILING', 'TRUE', 'TYPE', 'UNIT', 'UNLOCK', 'UNLOCKFILE',
'UNLOCKRECORD', 'UNSTRING', 'UP', 'UPON', 'USAGE', 'USE',
'USING', 'VALUE', 'VALUES', 'WHEN', 'WITH', 'WORDS',
'WORKING-STORAGE', 'WRITE', 'ZERO', 'ZEROES'
),
4 => array( //Standard functions
'ACOS', 'ANNUITY', 'ASIN', 'ATAN', 'CHAR', 'COS', 'CURRENT-DATE',
'DATE-OF-INTEGER', 'DAY-OF-INTEGER', 'FACTORIAL', 'INTEGER',
'INTEGER-OF-DATE', 'INTEGER-OF-DAY', 'INTEGER-PART', 'LENGTH',
'LOG', 'LOG10', 'LOWER-CASE', 'MAX', 'MEAN', 'MEDIAN', 'MIDRANGE',
'MIN', 'MOD', 'NUMVAL', 'NUMVAL-C', 'ORD', 'ORD-MAX', 'ORD-MIN',
'PRESENT-VALUE', 'RANDOM', 'RANGE', 'REM', 'REVERSE', 'SIN', 'SQRT',
'STANDARD-DEVIATION', 'SUM', 'TAN', 'UPPER-CASE', 'VARIANCE',
'WHEN-COMPILED'
),
5 => array( //Privileged Built-in Functions
'#IN', '#OUT', '#TERM', '#TEMP', '#DYNAMIC', 'COBOL85^ARMTRAP',
'COBOL85^COMPLETION', 'COBOL_COMPLETION_', 'COBOL_CONTROL_',
'COBOL_GETENV_', 'COBOL_PUTENV_', 'COBOL85^RETURN^SORT^ERRORS',
'COBOL_RETURN_SORT_ERRORS_', 'COBOL85^REWIND^SEQUENTIAL',
'COBOL_REWIND_SEQUENTIAL_', 'COBOL85^SET^SORT^PARAM^TEXT',
'COBOL_SET_SORT_PARAM_TEXT_', 'COBOL85^SET^SORT^PARAM^VALUE',
'COBOL_SET_SORT_PARAM_VALUE_', 'COBOL_SET_MAX_RECORD_',
'COBOL_SETMODE_', 'COBOL85^SPECIAL^OPEN', 'COBOL_SPECIAL_OPEN_',
'COBOLASSIGN', 'COBOL_ASSIGN_', 'COBOLFILEINFO', 'COBOL_FILE_INFO_',
'COBOLSPOOLOPEN', 'CREATEPROCESS', 'ALTERPARAMTEXT',
'CHECKLOGICALNAME', 'CHECKMESSAGE', 'DELETEASSIGN', 'DELETEPARAM',
'DELETESTARTUP', 'GETASSIGNTEXT', 'GETASSIGNVALUE', 'GETBACKUPCPU',
'GETPARAMTEXT', 'GETSTARTUPTEXT', 'PUTASSIGNTEXT', 'PUTASSIGNVALUE',
'PUTPARAMTEXT', 'PUTSTARTUPTEXT'
)
),
'SYMBOLS' => array(
//Avoid having - in identifiers marked as symbols
' + ', ' - ', ' * ', ' / ', ' ** ',
'.', ',',
'=',
'(', ')', '[', ']'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000080; font-weight: bold;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #008000; font-weight: bold;',
4 => 'color: #000080;',
5 => 'color: #008000;',
),
'COMMENTS' => array(
1 => 'color: #a0a0a0; font-style: italic;',
'MULTI' => 'color: #a0a0a0; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #339933;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #993399;'
),
'METHODS' => array(
1 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #000066;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

View File

@ -0,0 +1,146 @@
<?php
/*************************************************************************************
* coffeescript.php
* ----------
* Author: Trevor Burnham (trevorburnham@gmail.com)
* Copyright: (c) 2010 Trevor Burnham (http://iterative.ly)
* Release Version: 1.0.8.11
* Date Started: 2010/06/08
*
* CoffeeScript language file for GeSHi.
*
* CHANGES
* -------
* 2010/06/08 (1.0.8.9)
* - First Release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'CoffeeScript',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array('###' => '###'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
//Longest quotemarks ALWAYS first
'QUOTEMARKS' => array('"""', "'''", '"', "'"),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
/*
** Set 1: control keywords
*/
1 => array(
'break', 'by', 'catch', 'continue', 'else', 'finally', 'for', 'in', 'of', 'if',
'return', 'switch', 'then', 'throw', 'try', 'unless', 'when', 'while', 'until'
),
/*
** Set 2: logic keywords
*/
2 => array(
'and', 'or', 'is', 'isnt', 'not'
),
/*
** Set 3: other keywords
*/
3 => array(
'instanceof', 'new', 'delete', 'typeof',
'class', 'super', 'this', 'extends'
),
/*
** Set 4: constants
*/
4 => array(
'true', 'false', 'on', 'off', 'yes', 'no',
'Infinity', 'NaN', 'undefined', 'null'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '*', '&', '|', '%', '!', ',', ';', '<', '>', '?', '`',
'+', '-', '*', '/', '->', '=>', '<<', '>>', '@', ':', '^'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #ff7700;font-weight:bold;',
2 => 'color: #008000;',
3 => 'color: #dc143c;',
4 => 'color: #0000cd;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: black;'
),
'STRINGS' => array(
0 => 'color: #483d8b;'
),
'NUMBERS' => array(
0 => 'color: #ff4500;'
),
'METHODS' => array(
1 => 'color: black;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
0 => array(
'<script type="text/coffeescript">' => '</script>'
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true
)
);
?>

564
Sources/geshi/cpp-qt.php Normal file
View File

@ -0,0 +1,564 @@
<?php
/*************************************************************************************
* cpp.php
* -------
* Author: Iulian M
* Copyright: (c) 2006 Iulian M
* Release Version: 1.0.8.11
* Date Started: 2004/09/27
*
* C++ (with Qt extensions) language file for GeSHi.
*
* CHANGES
* -------
* 2009/06/28 (1.0.8.4)
* - Updated list of Keywords from Qt 4.5
*
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'C++ (Qt)',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
//Multiline-continued single-line comments
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m',
//Multiline-continued preprocessor define
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m'
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
//Simple Single Char Escapes
1 => "#\\\\[abfnrtv\\\'\"?\n]#i",
//Hexadecimal Char Specs
2 => "#\\\\x[\da-fA-F]{2}#",
//Hexadecimal Char Specs
3 => "#\\\\u[\da-fA-F]{4}#",
//Hexadecimal Char Specs
4 => "#\\\\U[\da-fA-F]{8}#",
//Octal Char Specs
5 => "#\\\\[0-7]{1,3}#"
),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array(
'case', 'continue', 'default', 'do', 'else', 'for', 'goto', 'if', 'return',
'switch', 'while', 'delete', 'new', 'this'
),
2 => array(
'NULL', 'false', 'break', 'true', 'enum', 'errno', 'EDOM',
'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam',
'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC',
'virtual', 'public', 'private', 'protected', 'template', 'using', 'namespace',
'try', 'catch', 'inline', 'dynamic_cast', 'const_cast', 'reinterpret_cast',
'static_cast', 'explicit', 'friend', 'typename', 'typeid', 'class' ,
'foreach','connect', 'Q_OBJECT' , 'slots' , 'signals', 'Q_SIGNALS', 'Q_SLOTS',
'Q_FOREACH', 'QCOMPARE', 'QVERIFY', 'qDebug', 'kDebug', 'QBENCHMARK'
),
3 => array(
'cin', 'cerr', 'clog', 'cout',
'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
'ispunct', 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper',
'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp',
'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
),
4 => array(
'auto', 'bool', 'char', 'const', 'double', 'float', 'int', 'long', 'longint',
'register', 'short', 'shortint', 'signed', 'static', 'struct',
'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm', 'wchar_t',
'int8', 'int16', 'int32', 'int64',
'uint8', 'uint16', 'uint32', 'uint64',
'int_fast8_t', 'int_fast16_t', 'int_fast32_t', 'int_fast64_t',
'uint_fast8_t', 'uint_fast16_t', 'uint_fast32_t', 'uint_fast64_t',
'int_least8_t', 'int_least16_t', 'int_least32_t', 'int_least64_t',
'uint_least8_t', 'uint_least16_t', 'uint_least32_t', 'uint_least64_t',
'int8_t', 'int16_t', 'int32_t', 'int64_t',
'uint8_t', 'uint16_t', 'uint32_t', 'uint64_t',
'intmax_t', 'uintmax_t', 'intptr_t', 'uintptr_t'
),
5 => array(
"Q_UINT16", "Q_UINT32", "Q_UINT64", "Q_UINT8", "Q_ULLONG",
"Q_ULONG", "Q3Accel", "Q3Action", "Q3ActionGroup", "Q3AsciiBucket",
"Q3AsciiCache", "Q3AsciiCacheIterator", "Q3AsciiDict",
"Q3AsciiDictIterator", "Q3BaseBucket", "Q3BoxLayout", "Q3Button",
"Q3ButtonGroup", "Q3Cache", "Q3CacheIterator", "Q3Canvas",
"Q3CanvasEllipse", "Q3CanvasItem", "Q3CanvasItemList",
"Q3CanvasLine", "Q3CanvasPixmap", "Q3CanvasPixmapArray",
"Q3CanvasPolygon", "Q3CanvasPolygonalItem", "Q3CanvasRectangle",
"Q3CanvasSpline", "Q3CanvasSprite", "Q3CanvasText", "Q3CanvasView",
"Q3CheckListItem", "Q3CheckTableItem", "Q3CleanupHandler",
"Q3ColorDrag", "Q3ComboBox", "Q3ComboTableItem", "Q3CString",
"Q3DataBrowser", "Q3DataTable", "Q3DataView", "Q3DateEdit",
"Q3DateTimeEdit", "Q3DateTimeEditBase", "Q3DeepCopy", "Q3Dict",
"Q3DictIterator", "Q3Dns", "Q3DnsSocket", "Q3DockArea",
"Q3DockAreaLayout", "Q3DockWindow", "Q3DragObject", "Q3DropSite",
"Q3EditorFactory", "Q3FileDialog", "Q3FileIconProvider",
"Q3FilePreview", "Q3Frame", "Q3Ftp", "Q3GArray", "Q3GCache",
"Q3GCacheIterator", "Q3GDict", "Q3GDictIterator", "Q3GList",
"Q3GListIterator", "Q3GListStdIterator", "Q3Grid", "Q3GridLayout",
"Q3GridView", "Q3GroupBox", "Q3GVector", "Q3HBox", "Q3HBoxLayout",
"Q3HButtonGroup", "Q3Header", "Q3HGroupBox", "Q3Http",
"Q3HttpHeader", "Q3HttpRequestHeader", "Q3HttpResponseHeader",
"Q3IconDrag", "Q3IconDragItem", "Q3IconView", "Q3IconViewItem",
"Q3ImageDrag", "Q3IntBucket", "Q3IntCache", "Q3IntCacheIterator",
"Q3IntDict", "Q3IntDictIterator", "Q3ListBox", "Q3ListBoxItem",
"Q3ListBoxPixmap", "Q3ListBoxText", "Q3ListView", "Q3ListViewItem",
"Q3ListViewItemIterator", "Q3LNode", "Q3LocalFs", "Q3MainWindow",
"Q3MemArray", "Q3MimeSourceFactory", "Q3MultiLineEdit",
"Q3NetworkOperation", "Q3NetworkProtocol", "Q3NetworkProtocolDict",
"Q3NetworkProtocolFactory", "Q3NetworkProtocolFactoryBase",
"Q3ObjectDictionary", "Q3PaintDeviceMetrics", "Q3Painter",
"Q3Picture", "Q3PointArray", "Q3PolygonScanner", "Q3PopupMenu",
"Q3Process", "Q3ProgressBar", "Q3ProgressDialog", "Q3PtrBucket",
"Q3PtrCollection", "Q3PtrDict", "Q3PtrDictIterator", "Q3PtrList",
"Q3PtrListIterator", "Q3PtrListStdIterator", "Q3PtrQueue",
"Q3PtrStack", "Q3PtrVector", "Q3RangeControl", "Q3ScrollView",
"Q3Semaphore", "Q3ServerSocket", "Q3Shared", "Q3Signal",
"Q3SimpleRichText", "Q3SingleCleanupHandler", "Q3Socket",
"Q3SocketDevice", "Q3SortedList", "Q3SpinWidget", "Q3SqlCursor",
"Q3SqlEditorFactory", "Q3SqlFieldInfo", "Q3SqlFieldInfoList",
"Q3SqlForm", "Q3SqlPropertyMap", "Q3SqlRecordInfo",
"Q3SqlSelectCursor", "Q3StoredDrag", "Q3StrIList", "Q3StringBucket",
"Q3StrIVec", "Q3StrList", "Q3StrListIterator", "Q3StrVec",
"Q3StyleSheet", "Q3StyleSheetItem", "Q3SyntaxHighlighter",
"Q3TabDialog", "Q3Table", "Q3TableItem", "Q3TableSelection",
"Q3TextBrowser", "Q3TextDrag", "Q3TextEdit",
"Q3TextEditOptimPrivate", "Q3TextStream", "Q3TextView",
"Q3TimeEdit", "Q3ToolBar", "Q3TSFUNC", "Q3UriDrag", "Q3Url",
"Q3UrlOperator", "Q3ValueList", "Q3ValueListConstIterator",
"Q3ValueListIterator", "Q3ValueStack", "Q3ValueVector", "Q3VBox",
"Q3VBoxLayout", "Q3VButtonGroup", "Q3VGroupBox", "Q3WhatsThis",
"Q3WidgetStack", "Q3Wizard", "QAbstractButton",
"QAbstractEventDispatcher", "QAbstractExtensionFactory",
"QAbstractExtensionManager", "QAbstractFileEngine",
"QAbstractFileEngineHandler", "QAbstractFileEngineIterator",
"QAbstractFormBuilder", "QAbstractGraphicsShapeItem",
"QAbstractItemDelegate", "QAbstractItemModel", "QAbstractItemView",
"QAbstractListModel", "QAbstractMessageHandler",
"QAbstractNetworkCache", "QAbstractPageSetupDialog",
"QAbstractPrintDialog", "QAbstractProxyModel",
"QAbstractScrollArea", "QAbstractSlider", "QAbstractSocket",
"QAbstractSpinBox", "QAbstractTableModel",
"QAbstractTextDocumentLayout", "QAbstractUndoItem",
"QAbstractUriResolver", "QAbstractXmlNodeModel",
"QAbstractXmlReceiver", "QAccessible", "QAccessible2Interface",
"QAccessibleApplication", "QAccessibleBridge",
"QAccessibleBridgeFactoryInterface", "QAccessibleBridgePlugin",
"QAccessibleEditableTextInterface", "QAccessibleEvent",
"QAccessibleFactoryInterface", "QAccessibleInterface",
"QAccessibleInterfaceEx", "QAccessibleObject",
"QAccessibleObjectEx", "QAccessiblePlugin",
"QAccessibleSimpleEditableTextInterface",
"QAccessibleTableInterface", "QAccessibleTextInterface",
"QAccessibleValueInterface", "QAccessibleWidget",
"QAccessibleWidgetEx", "QAction", "QActionEvent", "QActionGroup",
"QApplication", "QArgument", "QAssistantClient", "QAtomicInt",
"QAtomicPointer", "QAuthenticator", "QBasicAtomicInt",
"QBasicAtomicPointer", "QBasicTimer", "QBitArray", "QBitmap",
"QBitRef", "QBool", "QBoxLayout", "QBrush", "QBrushData", "QBuffer",
"QButtonGroup", "QByteArray", "QByteArrayMatcher", "QByteRef",
"QCache", "QCalendarWidget", "QCDEStyle", "QChar", "QCharRef",
"QCheckBox", "QChildEvent", "QCleanlooksStyle", "QClipboard",
"QClipboardEvent", "QCloseEvent", "QColor", "QColorDialog",
"QColorGroup", "QColormap", "QColumnView", "QComboBox",
"QCommandLinkButton", "QCommonStyle", "QCompleter",
"QConicalGradient", "QConstString", "QContextMenuEvent", "QCOORD",
"QCoreApplication", "QCryptographicHash", "QCursor", "QCursorShape",
"QCustomEvent", "QDataStream", "QDataWidgetMapper", "QDate",
"QDateEdit", "QDateTime", "QDateTimeEdit", "QDB2Driver",
"QDB2Result", "QDBusAbstractAdaptor", "QDBusAbstractInterface",
"QDBusArgument", "QDBusConnection", "QDBusConnectionInterface",
"QDBusContext", "QDBusError", "QDBusInterface", "QDBusMessage",
"QDBusMetaType", "QDBusObjectPath", "QDBusPendingCall",
"QDBusPendingCallWatcher", "QDBusPendingReply",
"QDBusPendingReplyData", "QDBusReply", "QDBusServer",
"QDBusSignature", "QDBusVariant", "QDebug",
"QDesignerActionEditorInterface", "QDesignerBrushManagerInterface",
"QDesignerComponents", "QDesignerContainerExtension",
"QDesignerCustomWidgetCollectionInterface",
"QDesignerCustomWidgetInterface", "QDesignerDnDItemInterface",
"QDesignerDynamicPropertySheetExtension", "QDesignerExportWidget",
"QDesignerExtraInfoExtension", "QDesignerFormEditorInterface",
"QDesignerFormEditorPluginInterface", "QDesignerFormWindowCursorInterface",
"QDesignerFormWindowInterface", "QDesignerFormWindowManagerInterface",
"QDesignerFormWindowToolInterface",
"QDesignerIconCacheInterface", "QDesignerIntegrationInterface",
"QDesignerLanguageExtension", "QDesignerLayoutDecorationExtension",
"QDesignerMemberSheetExtension", "QDesignerMetaDataBaseInterface",
"QDesignerMetaDataBaseItemInterface",
"QDesignerObjectInspectorInterface", "QDesignerPromotionInterface",
"QDesignerPropertyEditorInterface",
"QDesignerPropertySheetExtension", "QDesignerResourceBrowserInterface",
"QDesignerTaskMenuExtension", "QDesignerWidgetBoxInterface",
"QDesignerWidgetDataBaseInterface", "QDesignerWidgetDataBaseItemInterface",
"QDesignerWidgetFactoryInterface", "QDesktopServices",
"QDesktopWidget", "QDial", "QDialog", "QDialogButtonBox", "QDir",
"QDirIterator", "QDirModel", "QDockWidget", "QDomAttr",
"QDomCDATASection", "QDomCharacterData", "QDomComment",
"QDomDocument", "QDomDocumentFragment", "QDomDocumentType",
"QDomElement", "QDomEntity", "QDomEntityReference",
"QDomImplementation", "QDomNamedNodeMap", "QDomNode",
"QDomNodeList", "QDomNotation", "QDomProcessingInstruction",
"QDomText", "QDoubleSpinBox", "QDoubleValidator", "QDrag",
"QDragEnterEvent", "QDragLeaveEvent", "QDragMoveEvent",
"QDragResponseEvent", "QDropEvent", "QDynamicPropertyChangeEvent",
"QErrorMessage", "QEvent", "QEventLoop", "QEventSizeOfChecker",
"QExplicitlySharedDataPointer", "QExtensionFactory",
"QExtensionManager", "QFactoryInterface", "QFile", "QFileDialog",
"QFileIconProvider", "QFileInfo", "QFileInfoList",
"QFileInfoListIterator", "QFileOpenEvent", "QFileSystemModel",
"QFileSystemWatcher", "QFlag", "QFlags", "QFocusEvent",
"QFocusFrame", "QFont", "QFontComboBox", "QFontDatabase",
"QFontDialog", "QFontInfo", "QFontMetrics", "QFontMetricsF",
"QForeachContainer", "QForeachContainerBase", "QFormBuilder",
"QFormLayout", "QFrame", "QFSFileEngine", "QFtp", "QFuture",
"QFutureInterface", "QFutureInterfaceBase", "QFutureIterator",
"QFutureSynchronizer", "QFutureWatcher", "QFutureWatcherBase",
"QGenericArgument", "QGenericReturnArgument", "QGLColormap",
"QGLContext", "QGLFormat", "QGLFramebufferObject", "QGlobalStatic",
"QGlobalStaticDeleter", "QGLPixelBuffer", "QGLWidget", "QGradient",
"QGradientStop", "QGradientStops", "QGraphicsEllipseItem",
"QGraphicsGridLayout", "QGraphicsItem", "QGraphicsItemAnimation",
"QGraphicsItemGroup", "QGraphicsLayout", "QGraphicsLayoutItem",
"QGraphicsLinearLayout", "QGraphicsLineItem", "QGraphicsPathItem",
"QGraphicsPixmapItem", "QGraphicsPolygonItem",
"QGraphicsProxyWidget", "QGraphicsRectItem", "QGraphicsScene",
"QGraphicsSceneContextMenuEvent", "QGraphicsSceneDragDropEvent",
"QGraphicsSceneEvent", "QGraphicsSceneHelpEvent",
"QGraphicsSceneHoverEvent", "QGraphicsSceneMouseEvent",
"QGraphicsSceneMoveEvent", "QGraphicsSceneResizeEvent",
"QGraphicsSceneWheelEvent", "QGraphicsSimpleTextItem",
"QGraphicsSvgItem", "QGraphicsTextItem", "QGraphicsView",
"QGraphicsWidget", "QGridLayout", "QGroupBox", "QGtkStyle", "QHash",
"QHashData", "QHashDummyNode", "QHashDummyValue", "QHashIterator",
"QHashNode", "QHBoxLayout", "QHeaderView", "QHelpContentItem",
"QHelpContentModel", "QHelpContentWidget", "QHelpEngine",
"QHelpEngineCore", "QHelpEvent", "QHelpGlobal", "QHelpIndexModel",
"QHelpIndexWidget", "QHelpSearchEngine", "QHelpSearchQuery",
"QHelpSearchQueryWidget", "QHelpSearchResultWidget", "QHideEvent",
"QHostAddress", "QHostInfo", "QHoverEvent", "QHttp", "QHttpHeader",
"QHttpRequestHeader", "QHttpResponseHeader", "QIBaseDriver",
"QIBaseResult", "QIcon", "QIconDragEvent", "QIconEngine",
"QIconEngineFactoryInterface", "QIconEngineFactoryInterfaceV2",
"QIconEnginePlugin", "QIconEnginePluginV2", "QIconEngineV2",
"QIconSet", "QImage", "QImageIOHandler",
"QImageIOHandlerFactoryInterface", "QImageIOPlugin", "QImageReader",
"QImageTextKeyLang", "QImageWriter", "QIncompatibleFlag",
"QInputContext", "QInputContextFactory",
"QInputContextFactoryInterface", "QInputContextPlugin",
"QInputDialog", "QInputEvent", "QInputMethodEvent", "Q_INT16",
"Q_INT32", "Q_INT64", "Q_INT8", "QInternal", "QIntForSize",
"QIntForType", "QIntValidator", "QIODevice", "Q_IPV6ADDR",
"QIPv6Address", "QItemDelegate", "QItemEditorCreator",
"QItemEditorCreatorBase", "QItemEditorFactory", "QItemSelection",
"QItemSelectionModel", "QItemSelectionRange", "QKeyEvent",
"QKeySequence", "QLabel", "QLatin1Char", "QLatin1String", "QLayout",
"QLayoutItem", "QLayoutIterator", "QLCDNumber", "QLibrary",
"QLibraryInfo", "QLine", "QLinearGradient", "QLineEdit", "QLineF",
"QLinkedList", "QLinkedListData", "QLinkedListIterator",
"QLinkedListNode", "QList", "QListData", "QListIterator",
"QListView", "QListWidget", "QListWidgetItem", "Q_LLONG", "QLocale",
"QLocalServer", "QLocalSocket", "Q_LONG", "QMacCompatGLenum",
"QMacCompatGLint", "QMacCompatGLuint", "QMacGLCompatTypes",
"QMacMime", "QMacPasteboardMime", "QMainWindow", "QMap", "QMapData",
"QMapIterator", "QMapNode", "QMapPayloadNode", "QMatrix",
"QMdiArea", "QMdiSubWindow", "QMenu", "QMenuBar",
"QMenubarUpdatedEvent", "QMenuItem", "QMessageBox",
"QMetaClassInfo", "QMetaEnum", "QMetaMethod", "QMetaObject",
"QMetaObjectExtraData", "QMetaProperty", "QMetaType", "QMetaTypeId",
"QMetaTypeId2", "QMimeData", "QMimeSource", "QModelIndex",
"QModelIndexList", "QMotifStyle", "QMouseEvent", "QMoveEvent",
"QMovie", "QMultiHash", "QMultiMap", "QMutableFutureIterator",
"QMutableHashIterator", "QMutableLinkedListIterator",
"QMutableListIterator", "QMutableMapIterator",
"QMutableSetIterator", "QMutableStringListIterator",
"QMutableVectorIterator", "QMutex", "QMutexLocker", "QMYSQLDriver",
"QMYSQLResult", "QNetworkAccessManager", "QNetworkAddressEntry",
"QNetworkCacheMetaData", "QNetworkCookie", "QNetworkCookieJar",
"QNetworkDiskCache", "QNetworkInterface", "QNetworkProxy",
"QNetworkProxyFactory", "QNetworkProxyQuery", "QNetworkReply",
"QNetworkRequest", "QNoDebug", "QNoImplicitBoolCast", "QObject",
"QObjectCleanupHandler", "QObjectData", "QObjectList",
"QObjectUserData", "QOCIDriver", "QOCIResult", "QODBCDriver",
"QODBCResult", "QPageSetupDialog", "QPaintDevice", "QPaintEngine",
"QPaintEngineState", "QPainter", "QPainterPath",
"QPainterPathPrivate", "QPainterPathStroker", "QPaintEvent",
"QPair", "QPalette", "QPen", "QPersistentModelIndex", "QPicture",
"QPictureFormatInterface", "QPictureFormatPlugin", "QPictureIO",
"Q_PID", "QPixmap", "QPixmapCache", "QPlainTextDocumentLayout",
"QPlainTextEdit", "QPlastiqueStyle", "QPluginLoader", "QPoint",
"QPointer", "QPointF", "QPolygon", "QPolygonF", "QPrintDialog",
"QPrintEngine", "QPrinter", "QPrinterInfo", "QPrintPreviewDialog",
"QPrintPreviewWidget", "QProcess", "QProgressBar",
"QProgressDialog", "QProxyModel", "QPSQLDriver", "QPSQLResult",
"QPushButton", "QQueue", "QRadialGradient", "QRadioButton",
"QReadLocker", "QReadWriteLock", "QRect", "QRectF", "QRegExp",
"QRegExpValidator", "QRegion", "QResizeEvent", "QResource",
"QReturnArgument", "QRgb", "QRubberBand", "QRunnable",
"QScriptable", "QScriptClass", "QScriptClassPropertyIterator",
"QScriptContext", "QScriptContextInfo", "QScriptContextInfoList",
"QScriptEngine", "QScriptEngineAgent", "QScriptEngineDebugger",
"QScriptExtensionInterface", "QScriptExtensionPlugin",
"QScriptString", "QScriptSyntaxCheckResult", "QScriptValue",
"QScriptValueIterator", "QScriptValueList", "QScrollArea",
"QScrollBar", "QSemaphore", "QSessionManager", "QSet",
"QSetIterator", "QSettings", "QSharedData", "QSharedDataPointer",
"QSharedMemory", "QSharedPointer", "QShortcut", "QShortcutEvent",
"QShowEvent", "QSignalMapper", "QSignalSpy", "QSimpleXmlNodeModel",
"QSize", "QSizeF", "QSizeGrip", "QSizePolicy", "QSlider",
"QSocketNotifier", "QSortFilterProxyModel", "QSound",
"QSourceLocation", "QSpacerItem", "QSpinBox", "QSplashScreen",
"QSplitter", "QSplitterHandle", "QSpontaneKeyEvent", "QSqlDatabase",
"QSqlDriver", "QSqlDriverCreator", "QSqlDriverCreatorBase",
"QSqlDriverFactoryInterface", "QSqlDriverPlugin", "QSqlError",
"QSqlField", "QSqlIndex", "QSQLite2Driver", "QSQLite2Result",
"QSQLiteDriver", "QSQLiteResult", "QSqlQuery", "QSqlQueryModel",
"QSqlRecord", "QSqlRelation", "QSqlRelationalDelegate",
"QSqlRelationalTableModel", "QSqlResult", "QSqlTableModel", "QSsl",
"QSslCertificate", "QSslCipher", "QSslConfiguration", "QSslError",
"QSslKey", "QSslSocket", "QStack", "QStackedLayout",
"QStackedWidget", "QStandardItem", "QStandardItemEditorCreator",
"QStandardItemModel", "QStatusBar", "QStatusTipEvent",
"QStdWString", "QString", "QStringList", "QStringListIterator",
"QStringListModel", "QStringMatcher", "QStringRef", "QStyle",
"QStyledItemDelegate", "QStyleFactory", "QStyleFactoryInterface",
"QStyleHintReturn", "QStyleHintReturnMask",
"QStyleHintReturnVariant", "QStyleOption", "QStyleOptionButton",
"QStyleOptionComboBox", "QStyleOptionComplex",
"QStyleOptionDockWidget", "QStyleOptionDockWidgetV2",
"QStyleOptionFocusRect", "QStyleOptionFrame", "QStyleOptionFrameV2",
"QStyleOptionFrameV3", "QStyleOptionGraphicsItem",
"QStyleOptionGroupBox", "QStyleOptionHeader",
"QStyleOptionMenuItem", "QStyleOptionProgressBar",
"QStyleOptionProgressBarV2", "QStyleOptionQ3DockWindow",
"QStyleOptionQ3ListView", "QStyleOptionQ3ListViewItem",
"QStyleOptionRubberBand", "QStyleOptionSizeGrip",
"QStyleOptionSlider", "QStyleOptionSpinBox", "QStyleOptionTab",
"QStyleOptionTabBarBase", "QStyleOptionTabBarBaseV2",
"QStyleOptionTabV2", "QStyleOptionTabV3",
"QStyleOptionTabWidgetFrame", "QStyleOptionTitleBar",
"QStyleOptionToolBar", "QStyleOptionToolBox",
"QStyleOptionToolBoxV2", "QStyleOptionToolButton",
"QStyleOptionViewItem", "QStyleOptionViewItemV2",
"QStyleOptionViewItemV3", "QStyleOptionViewItemV4", "QStylePainter",
"QStylePlugin", "QSvgGenerator", "QSvgRenderer", "QSvgWidget",
"QSyntaxHighlighter", "QSysInfo", "QSystemLocale",
"QSystemSemaphore", "QSystemTrayIcon", "Qt", "Qt3Support",
"QTabBar", "QTabletEvent", "QTableView", "QTableWidget",
"QTableWidgetItem", "QTableWidgetSelectionRange", "QTabWidget",
"QtAlgorithms", "QtAssistant", "QtCleanUpFunction",
"QtConcurrentFilter", "QtConcurrentMap", "QtConcurrentRun",
"QtContainerFwd", "QtCore", "QTcpServer", "QTcpSocket", "QtDBus",
"QtDebug", "QtDesigner", "QTDSDriver", "QTDSResult",
"QTemporaryFile", "QtEndian", "QTest", "QTestAccessibility",
"QTestAccessibilityEvent", "QTestData", "QTestDelayEvent",
"QTestEvent", "QTestEventList", "QTestEventLoop",
"QTestKeyClicksEvent", "QTestKeyEvent", "QTestMouseEvent",
"QtEvents", "QTextBlock", "QTextBlockFormat", "QTextBlockGroup",
"QTextBlockUserData", "QTextBoundaryFinder", "QTextBrowser",
"QTextCharFormat", "QTextCodec", "QTextCodecFactoryInterface",
"QTextCodecPlugin", "QTextCursor", "QTextDecoder", "QTextDocument",
"QTextDocumentFragment", "QTextDocumentWriter", "QTextEdit",
"QTextEncoder", "QTextFormat", "QTextFragment", "QTextFrame",
"QTextFrameFormat", "QTextFrameLayoutData", "QTextImageFormat",
"QTextInlineObject", "QTextIStream", "QTextItem", "QTextLayout",
"QTextLength", "QTextLine", "QTextList", "QTextListFormat",
"QTextObject", "QTextObjectInterface", "QTextOption",
"QTextOStream", "QTextStream", "QTextStreamFunction",
"QTextStreamManipulator", "QTextTable", "QTextTableCell",
"QTextTableCellFormat", "QTextTableFormat", "QtGlobal", "QtGui",
"QtHelp", "QThread", "QThreadPool", "QThreadStorage",
"QThreadStorageData", "QTime", "QTimeEdit", "QTimeLine", "QTimer",
"QTimerEvent", "QtMsgHandler", "QtNetwork", "QToolBar",
"QToolBarChangeEvent", "QToolBox", "QToolButton", "QToolTip",
"QtOpenGL", "QtPlugin", "QtPluginInstanceFunction", "QTransform",
"QTranslator", "QTreeView", "QTreeWidget", "QTreeWidgetItem",
"QTreeWidgetItemIterator", "QTS", "QtScript", "QtScriptTools",
"QtSql", "QtSvg", "QtTest", "QtUiTools", "QtWebKit", "QtXml",
"QtXmlPatterns", "QTypeInfo", "QUdpSocket", "QUiLoader",
"QUintForSize", "QUintForType", "QUndoCommand", "QUndoGroup",
"QUndoStack", "QUndoView", "QUnixPrintWidget", "QUpdateLaterEvent",
"QUrl", "QUrlInfo", "QUuid", "QValidator", "QVariant",
"QVariantComparisonHelper", "QVariantHash", "QVariantList",
"QVariantMap", "QVarLengthArray", "QVBoxLayout", "QVector",
"QVectorData", "QVectorIterator", "QVectorTypedData",
"QWaitCondition", "QWeakPointer", "QWebDatabase", "QWebFrame",
"QWebHistory", "QWebHistoryInterface", "QWebHistoryItem",
"QWebHitTestResult", "QWebPage", "QWebPluginFactory",
"QWebSecurityOrigin", "QWebSettings", "QWebView", "QWhatsThis",
"QWhatsThisClickedEvent", "QWheelEvent", "QWidget", "QWidgetAction",
"QWidgetData", "QWidgetItem", "QWidgetItemV2", "QWidgetList",
"QWidgetMapper", "QWidgetSet", "QWindowsCEStyle", "QWindowsMime",
"QWindowsMobileStyle", "QWindowsStyle", "QWindowStateChangeEvent",
"QWindowsVistaStyle", "QWindowsXPStyle", "QWizard", "QWizardPage",
"QWMatrix", "QWorkspace", "QWriteLocker", "QX11EmbedContainer",
"QX11EmbedWidget", "QX11Info", "QXmlAttributes",
"QXmlContentHandler", "QXmlDeclHandler", "QXmlDefaultHandler",
"QXmlDTDHandler", "QXmlEntityResolver", "QXmlErrorHandler",
"QXmlFormatter", "QXmlInputSource", "QXmlItem",
"QXmlLexicalHandler", "QXmlLocator", "QXmlName", "QXmlNamePool",
"QXmlNamespaceSupport", "QXmlNodeModelIndex", "QXmlParseException",
"QXmlQuery", "QXmlReader", "QXmlResultItems", "QXmlSerializer",
"QXmlSimpleReader", "QXmlStreamAttribute", "QXmlStreamAttributes",
"QXmlStreamEntityDeclaration", "QXmlStreamEntityDeclarations",
"QXmlStreamEntityResolver", "QXmlStreamNamespaceDeclaration",
"QXmlStreamNamespaceDeclarations", "QXmlStreamNotationDeclaration",
"QXmlStreamNotationDeclarations", "QXmlStreamReader",
"QXmlStreamStringRef", "QXmlStreamWriter"
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':', ',', ';', '|', '<', '>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight:bold;',
2 => 'color: #0057AE;',
3 => 'color: #2B74C7;',
4 => 'color: #0057AE;',
5 => 'color: #22aadd;'
),
'COMMENTS' => array(
1 => 'color: #888888;',
2 => 'color: #006E28;',
'MULTI' => 'color: #888888; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
1 => 'color: #000099; font-weight: bold;',
2 => 'color: #660099; font-weight: bold;',
3 => 'color: #660099; font-weight: bold;',
4 => 'color: #660099; font-weight: bold;',
5 => 'color: #006699; font-weight: bold;',
'HARD' => '',
),
'BRACKETS' => array(
0 => 'color: #006E28;'
),
'STRINGS' => array(
0 => 'color: #BF0303;'
),
'NUMBERS' => array(
0 => 'color: #B08000;',
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;',
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;',
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
),
'METHODS' => array(
1 => 'color: #2B74C7;',
2 => 'color: #2B74C7;',
3 => 'color: #2B74C7;'
),
'SYMBOLS' => array(
0 => 'color: #006E28;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => 'http://doc.trolltech.com/latest/{FNAMEL}.html'
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::',
3 => '-&gt;',
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])",
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_<\|%\\-])"
),
'OOLANG' => array(
'MATCH_AFTER' => '~?[a-zA-Z][a-zA-Z0-9_]*',
)
)
);
?>

240
Sources/geshi/cpp.php Normal file
View File

@ -0,0 +1,240 @@
<?php
/*************************************************************************************
* cpp.php
* -------
* Author: Dennis Bayer (Dennis.Bayer@mnifh-giessen.de)
* Contributors:
* - M. Uli Kusterer (witness.of.teachtext@gmx.net)
* - Jack Lloyd (lloyd@randombit.net)
* Copyright: (c) 2004 Dennis Bayer, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2004/09/27
*
* C++ language file for GeSHi.
*
* CHANGES
* -------
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
* 2004/XX/XX (1.0.2)
* - Added several new keywords (Jack Lloyd)
* 2004/11/27 (1.0.1)
* - Added StdCLib function and constant names, changed color scheme to
* a cleaner one. (M. Uli Kusterer)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'C++',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
//Multiline-continued single-line comments
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m',
//Multiline-continued preprocessor define
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m'
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
//Simple Single Char Escapes
1 => "#\\\\[abfnrtv\\\'\"?\n]#i",
//Hexadecimal Char Specs
2 => "#\\\\x[\da-fA-F]{2}#",
//Hexadecimal Char Specs
3 => "#\\\\u[\da-fA-F]{4}#",
//Hexadecimal Char Specs
4 => "#\\\\U[\da-fA-F]{8}#",
//Octal Char Specs
5 => "#\\\\[0-7]{1,3}#"
),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array(
'break', 'case', 'continue', 'default', 'do', 'else', 'for', 'goto', 'if', 'return',
'switch', 'throw', 'while'
),
2 => array(
'NULL', 'false', 'true', 'enum', 'errno', 'EDOM',
'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam',
'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC',
'virtual', 'public', 'private', 'protected', 'template', 'using', 'namespace',
'try', 'catch', 'inline', 'dynamic_cast', 'const_cast', 'reinterpret_cast',
'static_cast', 'explicit', 'friend', 'typename', 'typeid', 'class'
),
3 => array(
'cin', 'cerr', 'clog', 'cout', 'delete', 'new', 'this',
'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
'ispunct', 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper',
'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp',
'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
),
4 => array(
'auto', 'bool', 'char', 'const', 'double', 'float', 'int', 'long', 'longint',
'register', 'short', 'shortint', 'signed', 'static', 'struct',
'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm', 'wchar_t',
'int8', 'int16', 'int32', 'int64',
'uint8', 'uint16', 'uint32', 'uint64',
'int_fast8_t', 'int_fast16_t', 'int_fast32_t', 'int_fast64_t',
'uint_fast8_t', 'uint_fast16_t', 'uint_fast32_t', 'uint_fast64_t',
'int_least8_t', 'int_least16_t', 'int_least32_t', 'int_least64_t',
'uint_least8_t', 'uint_least16_t', 'uint_least32_t', 'uint_least64_t',
'int8_t', 'int16_t', 'int32_t', 'int64_t',
'uint8_t', 'uint16_t', 'uint32_t', 'uint64_t',
'intmax_t', 'uintmax_t', 'intptr_t', 'uintptr_t'
),
),
'SYMBOLS' => array(
0 => array('(', ')', '{', '}', '[', ']'),
1 => array('<', '>','='),
2 => array('+', '-', '*', '/', '%'),
3 => array('!', '^', '&', '|'),
4 => array('?', ':', ';')
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000ff;',
2 => 'color: #0000ff;',
3 => 'color: #0000dd;',
4 => 'color: #0000ff;'
),
'COMMENTS' => array(
1 => 'color: #666666;',
2 => 'color: #339900;',
'MULTI' => 'color: #ff0000; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
1 => 'color: #000099; font-weight: bold;',
2 => 'color: #660099; font-weight: bold;',
3 => 'color: #660099; font-weight: bold;',
4 => 'color: #660099; font-weight: bold;',
5 => 'color: #006699; font-weight: bold;',
'HARD' => '',
),
'BRACKETS' => array(
0 => 'color: #008000;'
),
'STRINGS' => array(
0 => 'color: #FF0000;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;',
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;',
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;',
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
),
'METHODS' => array(
1 => 'color: #007788;',
2 => 'color: #007788;'
),
'SYMBOLS' => array(
0 => 'color: #008000;',
1 => 'color: #000080;',
2 => 'color: #000040;',
3 => 'color: #000040;',
4 => 'color: #008080;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#])",
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_\|%\\-])"
)
)
);
?>

256
Sources/geshi/csharp.php Normal file
View File

@ -0,0 +1,256 @@
<?php
/*************************************************************************************
* csharp.php
* ----------
* Author: Alan Juden (alan@judenware.org)
* Revised by: Michael Mol (mikemol@gmail.com)
* Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2004/06/04
*
* C# language file for GeSHi.
*
* CHANGES
* -------
* 2012/06/18 (1.0.8.11)
* - Added missing keywords (Christian Stelzmann)
* 2009/04/03 (1.0.8.6)
* - Added missing keywords identified by Rosetta Code users.
* 2008/05/25 (1.0.7.22)
* - Added highlighting of using and namespace directives as non-OOP
* 2005/01/05 (1.0.1)
* - Used hardquote support for @"..." strings (Cliff Stanford)
* 2004/11/27 (1.0.0)
* - Initial release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'C#',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
//Using and Namespace directives (basic support)
//Please note that the alias syntax for using is not supported
3 => '/(?:(?<=using[\\n\\s])|(?<=namespace[\\n\\s]))[\\n\\s]*([a-zA-Z0-9_]+\\.)*[a-zA-Z0-9_]+[\n\s]*(?=[;=])/i'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'HARDQUOTE' => array('@"', '"'),
'HARDESCAPE' => array('"'),
'HARDCHAR' => '"',
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'abstract', 'add', 'as', 'base', 'break', 'by', 'case', 'catch', 'const', 'continue',
'default', 'do', 'else', 'event', 'explicit', 'extern', 'false',
'finally', 'fixed', 'for', 'foreach', 'from', 'get', 'goto', 'group', 'if',
'implicit', 'in', 'into', 'internal', 'join', 'lock', 'namespace', 'null',
'operator', 'out', 'override', 'params', 'partial', 'private',
'protected', 'public', 'readonly', 'remove', 'ref', 'return', 'sealed',
'select', 'set', 'stackalloc', 'static', 'switch', 'this', 'throw', 'true',
'try', 'unsafe', 'using', 'var', 'value', 'virtual', 'volatile', 'where',
'while', 'yield'
),
2 => array(
'#elif', '#endif', '#endregion', '#else', '#error', '#define', '#if',
'#line', '#region', '#undef', '#warning'
),
3 => array(
'checked', 'is', 'new', 'sizeof', 'typeof', 'unchecked'
),
4 => array(
'bool', 'byte', 'char', 'class', 'decimal', 'delegate', 'double',
'dynamic', 'enum', 'float', 'int', 'interface', 'long', 'object', 'sbyte',
'short', 'string', 'struct', 'uint', 'ulong', 'ushort', 'void'
),
5 => array(
'Microsoft.Win32',
'System',
'System.CodeDOM',
'System.CodeDOM.Compiler',
'System.Collections',
'System.Collections.Bases',
'System.ComponentModel',
'System.ComponentModel.Design',
'System.ComponentModel.Design.CodeModel',
'System.Configuration',
'System.Configuration.Assemblies',
'System.Configuration.Core',
'System.Configuration.Install',
'System.Configuration.Interceptors',
'System.Configuration.Schema',
'System.Configuration.Web',
'System.Core',
'System.Data',
'System.Data.ADO',
'System.Data.Design',
'System.Data.Internal',
'System.Data.SQL',
'System.Data.SQLTypes',
'System.Data.XML',
'System.Data.XML.DOM',
'System.Data.XML.XPath',
'System.Data.XML.XSLT',
'System.Diagnostics',
'System.Diagnostics.SymbolStore',
'System.DirectoryServices',
'System.Drawing',
'System.Drawing.Design',
'System.Drawing.Drawing2D',
'System.Drawing.Imaging',
'System.Drawing.Printing',
'System.Drawing.Text',
'System.Globalization',
'System.IO',
'System.IO.IsolatedStorage',
'System.Messaging',
'System.Net',
'System.Net.Sockets',
'System.NewXml',
'System.NewXml.XPath',
'System.NewXml.Xsl',
'System.Reflection',
'System.Reflection.Emit',
'System.Resources',
'System.Runtime.InteropServices',
'System.Runtime.InteropServices.Expando',
'System.Runtime.Remoting',
'System.Runtime.Serialization',
'System.Runtime.Serialization.Formatters',
'System.Runtime.Serialization.Formatters.Binary',
'System.Security',
'System.Security.Cryptography',
'System.Security.Cryptography.X509Certificates',
'System.Security.Permissions',
'System.Security.Policy',
'System.Security.Principal',
'System.ServiceProcess',
'System.Text',
'System.Text.RegularExpressions',
'System.Threading',
'System.Timers',
'System.Web',
'System.Web.Caching',
'System.Web.Configuration',
'System.Web.Security',
'System.Web.Services',
'System.Web.Services.Description',
'System.Web.Services.Discovery',
'System.Web.Services.Protocols',
'System.Web.UI',
'System.Web.UI.Design',
'System.Web.UI.Design.WebControls',
'System.Web.UI.Design.WebControls.ListControls',
'System.Web.UI.HtmlControls',
'System.Web.UI.WebControls',
'System.WinForms',
'System.WinForms.ComponentModel',
'System.WinForms.Design',
'System.Xml',
'System.Xml.Serialization',
'System.Xml.Serialization.Code',
'System.Xml.Serialization.Schema'
),
),
'SYMBOLS' => array(
'+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', ':', ';',
'(', ')', '{', '}', '[', ']', '|', '.'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0600FF; font-weight: bold;',
2 => 'color: #FF8000; font-weight: bold;',
3 => 'color: #008000;',
4 => 'color: #6666cc; font-weight: bold;',
5 => 'color: #000000;'
),
'COMMENTS' => array(
1 => 'color: #008080; font-style: italic;',
2 => 'color: #008080;',
3 => 'color: #008080;',
'MULTI' => 'color: #008080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #008080; font-weight: bold;',
'HARD' => 'color: #008080; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #008000;'
),
'STRINGS' => array(
0 => 'color: #666666;',
'HARD' => 'color: #666666;'
),
'NUMBERS' => array(
0 => 'color: #FF0000;'
),
'METHODS' => array(
1 => 'color: #0000FF;',
2 => 'color: #0000FF;'
),
'SYMBOLS' => array(
0 => 'color: #008000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.google.com/search?q={FNAMEL}+msdn.microsoft.com',
4 => '',
5 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])",
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_%\\-])"
)
)
);
?>

226
Sources/geshi/css.php Normal file
View File

@ -0,0 +1,226 @@
<?php
/*************************************************************************************
* css.php
* -------
* Author: Nigel McNie (nigel@geshi.org)
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2004/06/18
*
* CSS language file for GeSHi.
*
* CHANGES
* -------
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
* 2004/11/27 (1.0.3)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.2)
* - Changed regexps to catch "-" symbols
* - Added support for URLs
* 2004/08/05 (1.0.1)
* - Added support for symbols
* 2004/07/14 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
* * Improve or drop regexps for class/id/psuedoclass highlighting
* * Re-look at keywords - possibly to make several CSS language
* files, all with different versions of CSS in them
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'CSS',
'COMMENT_SINGLE' => array(1 => '@'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
2 => "/(?<=\\()\\s*(?:(?:[a-z0-9]+?:\\/\\/)?[a-z0-9_\\-\\.\\/:]+?)?[a-z]+?\\.[a-z]+?(\\?[^\)]+?)?\\s*?(?=\\))/i"
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', "'"),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
//Simple Single Char Escapes
//1 => "#\\\\[nfrtv\$\"\n\\\\]#i",
//Hexadecimal Char Specs
2 => "#\\\\[\da-fA-F]{1,6}\s?#i",
//Unicode Char Specs
//3 => "#\\\\u[\da-fA-F]{1,8}#i",
),
'KEYWORDS' => array(
1 => array(
'aqua', 'azimuth', 'background-attachment', 'background-color',
'background-image', 'background-position', 'background-repeat',
'background', 'black', 'blue', 'border-bottom-color',
'border-radius', 'border-top-left-radius', 'border-top-right-radius',
'border-bottom-right-radius', 'border-bottom-left-radius',
'border-bottom-style', 'border-bottom-width', 'border-left-color',
'border-left-style', 'border-left-width', 'border-right',
'border-right-color', 'border-right-style', 'border-right-width',
'border-top-color', 'border-top-style',
'border-top-width','border-bottom', 'border-collapse',
'border-left', 'border-width', 'border-color', 'border-spacing',
'border-style', 'border-top', 'border', 'caption-side', 'clear',
'clip', 'color', 'content', 'counter-increment', 'counter-reset',
'cue-after', 'cue-before', 'cue', 'cursor', 'direction', 'display',
'elevation', 'empty-cells', 'float', 'font-family', 'font-size',
'font-size-adjust', 'font-stretch', 'font-style', 'font-variant',
'font-weight', 'font', 'line-height', 'letter-spacing',
'list-style', 'list-style-image', 'list-style-position',
'list-style-type', 'margin-bottom', 'margin-left', 'margin-right',
'margin-top', 'margin', 'marker-offset', 'marks', 'max-height',
'max-width', 'min-height', 'min-width', 'orphans', 'outline',
'outline-color', 'outline-style', 'outline-width', 'overflow',
'padding-bottom', 'padding-left', 'padding-right', 'padding-top',
'padding', 'page', 'page-break-after', 'page-break-before',
'page-break-inside', 'pause-after', 'pause-before', 'pause',
'pitch', 'pitch-range', 'play-during', 'position', 'quotes',
'richness', 'right', 'size', 'speak-header', 'speak-numeral',
'speak-punctuation', 'speak', 'speech-rate', 'stress',
'table-layout', 'text-align', 'text-decoration', 'text-indent',
'text-shadow', 'text-transform', 'top', 'unicode-bidi',
'vertical-align', 'visibility', 'voice-family', 'volume',
'white-space', 'widows', 'width', 'word-spacing', 'z-index',
'bottom', 'left', 'height'
),
2 => array(
'above', 'absolute', 'always', 'armenian', 'aural', 'auto',
'avoid', 'baseline', 'behind', 'below', 'bidi-override', 'blink',
'block', 'bold', 'bolder', 'both', 'capitalize', 'center-left',
'center-right', 'center', 'circle', 'cjk-ideographic',
'close-quote', 'collapse', 'condensed', 'continuous', 'crop',
'crosshair', 'cross', 'cursive', 'dashed', 'decimal-leading-zero',
'decimal', 'default', 'digits', 'disc', 'dotted', 'double',
'e-resize', 'embed', 'extra-condensed', 'extra-expanded',
'expanded', 'fantasy', 'far-left', 'far-right', 'faster', 'fast',
'fixed', 'fuchsia', 'georgian', 'gray', 'green', 'groove',
'hebrew', 'help', 'hidden', 'hide', 'higher', 'high',
'hiragana-iroha', 'hiragana', 'icon', 'inherit', 'inline-table',
'inline', 'inset', 'inside', 'invert', 'italic', 'justify',
'katakana-iroha', 'katakana', 'landscape', 'larger', 'large',
'left-side', 'leftwards', 'level', 'lighter', 'lime',
'line-through', 'list-item', 'loud', 'lower-alpha', 'lower-greek',
'lower-roman', 'lowercase', 'ltr', 'lower', 'low', 'maroon',
'medium', 'message-box', 'middle', 'mix', 'monospace', 'n-resize',
'narrower', 'navy', 'ne-resize', 'no-close-quote',
'no-open-quote', 'no-repeat', 'none', 'normal', 'nowrap',
'nw-resize', 'oblique', 'olive', 'once', 'open-quote', 'outset',
'outside', 'overline', 'pointer', 'portrait', 'purple', 'px',
'red', 'relative', 'repeat-x', 'repeat-y', 'repeat', 'rgb',
'ridge', 'right-side', 'rightwards', 's-resize', 'sans-serif',
'scroll', 'se-resize', 'semi-condensed', 'semi-expanded',
'separate', 'serif', 'show', 'silent', 'silver', 'slow', 'slower',
'small-caps', 'small-caption', 'smaller', 'soft', 'solid',
'spell-out', 'square', 'static', 'status-bar', 'super',
'sw-resize', 'table-caption', 'table-cell', 'table-column',
'table-column-group', 'table-footer-group', 'table-header-group',
'table-row', 'table-row-group', 'teal', 'text', 'text-bottom',
'text-top', 'thick', 'thin', 'transparent', 'ultra-condensed',
'ultra-expanded', 'underline', 'upper-alpha', 'upper-latin',
'upper-roman', 'uppercase', 'url', 'visible', 'w-resize', 'wait',
'white', 'wider', 'x-fast', 'x-high', 'x-large', 'x-loud',
'x-low', 'x-small', 'x-soft', 'xx-large', 'xx-small', 'yellow',
'yes'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', ':', ';',
'>', '+', '*', ',', '^', '='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #993333;'
),
'COMMENTS' => array(
1 => 'color: #a1a100;',
2 => 'color: #ff0000; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
//1 => 'color: #000099; font-weight: bold;',
2 => 'color: #000099; font-weight: bold;'
//3 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #00AA00;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #00AA00;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
0 => 'color: #cc00cc;',
1 => 'color: #6666ff;',
2 => 'color: #3333ff;',
3 => 'color: #933;'
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
//DOM Node ID
0 => '\#[a-zA-Z0-9\-_]+(?:\\\\:[a-zA-Z0-9\-_]+)*',
//CSS classname
1 => '\.(?!\d)[a-zA-Z0-9\-_]+(?:\\\\:[a-zA-Z0-9\-_]+)*\b(?=[\{\.#\s,:].|<\|)',
//CSS Pseudo classes
//note: & is needed for &gt; (i.e. > )
2 => '(?<!\\\\):(?!\d)[a-zA-Z0-9\-]+\b(?:\s*(?=[\{\.#a-zA-Z,:+*&](.|\n)|<\|))',
//Measurements
3 => '[+\-]?(\d+|(\d*\.\d+))(em|ex|pt|px|cm|in|%)',
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_AFTER' => '(?![\-a-zA-Z0-9_\|%\\-&\.])',
'DISALLOWED_BEFORE' => '(?<![\-a-zA-Z0-9_\|%\\~&\.])'
)
)
);
?>

138
Sources/geshi/cuesheet.php Normal file
View File

@ -0,0 +1,138 @@
<?php
/*************************************************************************************
* cuesheet.php
* ----------
* Author: Benny Baumann (benbe@geshi.org)
* Copyright: (c) 2009 Benny Baumann (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2009/12/21
*
* Cuesheet language file for GeSHi.
*
* CHANGES
* -------
* 2009/12/21 (1.0.8.6)
* - First Release
*
* TODO (updated 2009/12/21)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Cuesheet',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(
//Single-Line Comments using REM command
1 => "/(?<=\bREM\b).*?$/im",
),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'CATALOG','CDTEXTFILE','FILE','FLAGS','INDEX','ISRC','PERFORMER',
'POSTGAP','PREGAP','REM','SONGWRITER','TITLE','TRACK'
),
2 => array(
'AIFF', 'BINARY', 'MOTOROLA', 'MP3', 'WAVE'
),
3 => array(
'4CH', 'DCP', 'PRE', 'SCMS'
),
4 => array(
'AUDIO', 'CDG', 'MODE1/2048', 'MODE1/2336', 'MODE2/2336',
'MODE2/2352', 'CDI/2336', 'CDI/2352'
)
),
'SYMBOLS' => array(
':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #000066; font-weight: bold;',
3 => 'color: #000066; font-weight: bold;',
4 => 'color: #000066; font-weight: bold;'
),
'COMMENTS' => array(
1 => 'color: #808080;',
),
'BRACKETS' => array(
0 => 'color: #0000ff;'
),
'STRINGS' => array(
0 => 'color: #0000ff;'
),
'NUMBERS' => array(
0 => 'color: #006600;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #000066;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
1 => 'color: #000099;',
2 => 'color: #009900;',
)
),
'URLS' => array(
1 => 'http://digitalx.org/cuesheetsyntax.php#{FNAMEL}',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
2 => '\b[A-Za-z0-9]{5}\d{7}\b',
1 => '(?<=[\s:]|^)\d+(?=[\s:]|$)',
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 2,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => '(?<![\w\.])',
'DISALLOWED_AFTER' => '(?![\w\.])',
)
)
);
?>

252
Sources/geshi/d.php Normal file
View File

@ -0,0 +1,252 @@
<?php
/*************************************************************************************
* d.php
* -----
* Author: Thomas Kuehne (thomas@kuehne.cn)
* Contributors:
* - Jimmy Cao
* Copyright: (c) 2005 Thomas Kuehne (http://thomas.kuehne.cn/)
* Release Version: 1.0.8.11
* Date Started: 2005/04/22
*
* D language file for GeSHi.
*
* CHANGES
* -------
* 2011/06/28 (0.0.3) (Jimmy Cao)
* - added D2 features
* 2005/04/22 (0.0.2)
* - added _d_* and sizeof/ptrdiff_t
* 2005/04/20 (0.0.1)
* - First release
*
* TODO (updated 2005/04/22)
* -------------------------
* * nested comments
* * correct handling of r"" and ``
* * correct handling of ... and ..
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'D',
'COMMENT_SINGLE' => array(2 => '///', 1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/', '/+' => '+/'),
'COMMENT_REGEXP' => array(
// doxygen comments
3 => '#/\*\*(?![\*\/]).*\*/#sU',
// raw strings
4 => '#r"[^"]*"#s',
// Script Style interpreter comment
5 => "/\A#!(?=\\/).*?$/m"
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', "'"),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
//Simple Single Char Escapes
1 => "#\\\\[abfnrtv\\'\"?\n\\\\]#i",
//Hexadecimal Char Specs
2 => "#\\\\x[\da-fA-F]{2}#",
//Hexadecimal Char Specs
3 => "#\\\\u[\da-fA-F]{4}#",
//Hexadecimal Char Specs
4 => "#\\\\U[\da-fA-F]{8}#",
//Octal Char Specs
5 => "#\\\\[0-7]{1,3}#",
//Named entity escapes
/*6 => "#\\\\&(?:quot|amp|lt|gt|OElig|oelig|Scaron|scaron|Yuml|circ|tilde|".
"ensp|emsp|thinsp|zwnj|zwj|lrm|rlm|ndash|mdash|lsquo|rsquo|sbquo|".
"ldquo|rdquo|bdquo|dagger|Dagger|permil|lsaquo|rsaquo|euro|nbsp|".
"iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|".
"shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|".
"sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|".
"Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|".
"Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|".
"times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|".
"aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|".
"euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|".
"otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|".
"yuml|fnof|Alpha|Beta|Gamma|Delta|Epsilon|Zeta|Eta|Theta|Iota|".
"Kappa|Lambda|Mu|Nu|Xi|Omicron|Pi|Rho|Sigma|Tau|Upsilon|Phi|Chi|".
"Psi|Omega|alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|".
"kappa|lambda|mu|nu|xi|omicron|pi|rho|sigmaf|sigma|tau|upsilon|".
"phi|chi|psi|omega|thetasym|upsih|piv|bull|hellip|prime|Prime|".
"oline|frasl|weierp|image|real|trade|alefsym|larr|uarr|rarr|darr|".
"harr|crarr|lArr|uArr|rArr|dArr|hArr|forall|part|exist|empty|".
"nabla|isin|notin|ni|prod|sum|minus|lowast|radic|prop|infin|ang|".
"and|or|cap|cup|int|there4|sim|cong|asymp|ne|equiv|le|ge|sub|sup|".
"nsub|sube|supe|oplus|otimes|perp|sdot|lceil|rceil|lfloor|rfloor|".
"lang|rang|loz|spades|clubs|hearts|diams);#",*/
// optimized:
6 => "#\\\\&(?:A(?:Elig|acute|circ|grave|lpha|ring|tilde|uml)|Beta|".
"C(?:cedil|hi)|D(?:agger|elta)|E(?:TH|acute|circ|grave|psilon|ta|uml)|".
"Gamma|I(?:acute|circ|grave|ota|uml)|Kappa|Lambda|Mu|N(?:tilde|u)|".
"O(?:Elig|acute|circ|grave|m(?:ega|icron)|slash|tilde|uml)|".
"P(?:hi|i|rime|si)|Rho|S(?:caron|igma)|T(?:HORN|au|heta)|".
"U(?:acute|circ|grave|psilon|uml)|Xi|Y(?:acute|uml)|Zeta|".
"a(?:acute|c(?:irc|ute)|elig|grave|l(?:efsym|pha)|mp|n[dg]|ring|".
"symp|tilde|uml)|b(?:dquo|eta|rvbar|ull)|c(?:ap|cedil|e(?:dil|nt)|".
"hi|irc|lubs|o(?:ng|py)|rarr|u(?:p|rren))|d(?:Arr|a(?:gger|rr)|".
"e(?:g|lta)|i(?:ams|vide))|e(?:acute|circ|grave|m(?:pty|sp)|nsp|".
"psilon|quiv|t[ah]|u(?:ml|ro)|xist)|f(?:nof|orall|ra(?:c(?:1[24]|34)|sl))|".
"g(?:amma|e|t)|h(?:Arr|arr|e(?:arts|llip))|i(?:acute|circ|excl|grave|mage|".
"n(?:fin|t)|ota|quest|sin|uml)|kappa|l(?:Arr|a(?:mbda|ng|quo|rr)|ceil|".
"dquo|e|floor|o(?:wast|z)|rm|s(?:aquo|quo)|t)|m(?:acr|dash|".
"i(?:cro|ddot|nus)|u)|n(?:abla|bsp|dash|e|i|ot(?:in)?|sub|tilde|u)|".
"o(?:acute|circ|elig|grave|line|m(?:ega|icron)|plus|r(?:d[fm])?|".
"slash|ti(?:lde|mes)|uml)|p(?:ar[at]|er(?:mil|p)|hi|iv?|lusmn|ound|".
"r(?:ime|o[dp])|si)|quot|r(?:Arr|a(?:dic|ng|quo|rr)|ceil|dquo|e(?:al|g)|".
"floor|ho|lm|s(?:aquo|quo))|s(?:bquo|caron|dot|ect|hy|i(?:gmaf?|m)|".
"pades|u(?:be?|m|p[123e]?)|zlig)|t(?:au|h(?:e(?:re4|ta(?:sym)?)|insp|".
"orn)|i(?:lde|mes)|rade)|u(?:Arr|a(?:cute|rr)|circ|grave|ml|".
"psi(?:h|lon)|uml)|weierp|xi|y(?:acute|en|uml)|z(?:eta|w(?:j|nj)));#",
),
'HARDQUOTE' => array('`', '`'),
'HARDESCAPE' => array(),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array(
'break', 'case', 'continue', 'do', 'else',
'for', 'foreach', 'goto', 'if', 'return',
'switch', 'while', 'foreach_reverse'
),
2 => array(
'alias', 'asm', 'assert', 'body', 'cast',
'catch', 'default', 'delegate', 'delete',
'extern', 'false', 'finally', 'function',
'import', 'in', 'inout',
'invariant', 'is', 'lazy', 'mixin', 'module', 'new',
'null', 'out', 'pragma', 'ref', 'super', 'this',
'throw', 'true', 'try', 'typeid',
'typeof', 'union', 'with', 'scope'
),
3 => array(
'ClassInfo', 'Error', 'Exception',
'Interface', 'Object', 'IMonitor',
'OffsetTypeInfo', 'Throwable',
'TypeInfo_Class', 'TypeInfo', '__traits',
'__EOF__', '__FILE__', '__LINE__',
),
4 => array(
'abstract', 'align', 'auto', 'bit', 'bool',
'byte', 'cdouble', 'cfloat', 'char',
'class', 'const', 'creal', 'dchar', 'dstring', 'debug',
'deprecated', 'double', 'enum', 'export',
'final', 'float', 'idouble', 'ifloat', 'immutable', 'int',
'interface', 'ireal', 'long', 'nothrow', 'override',
'package', 'private', 'protected', 'ptrdiff_t',
'public', 'real', 'short', 'shared', 'size_t',
'static', 'string', 'struct', 'synchronized',
'template', 'ubyte', 'ucent', 'uint',
'ulong', 'unittest', 'ushort', 'version',
'void', 'volatile', 'wchar', 'wstring',
'__gshared', '@disable', '@property', 'pure', 'safe'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '?', '!', ';', ':', ',', '...', '..',
'+', '-', '*', '/', '%', '&', '|', '^', '<', '>', '=', '~',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #aaaadd; font-weight: bold;',
4 => 'color: #993333;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #009933; font-style: italic;',
3 => 'color: #009933; font-style: italic;',
4 => 'color: #ff0000;',
5 => 'color: #0040ff;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
1 => 'color: #000099; font-weight: bold;',
2 => 'color: #660099; font-weight: bold;',
3 => 'color: #660099; font-weight: bold;',
4 => 'color: #660099; font-weight: bold;',
5 => 'color: #006699; font-weight: bold;',
6 => 'color: #666699; font-weight: bold; font-style: italic;',
'HARD' => '',
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;',
'HARD' => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;',
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;',
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;',
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

192
Sources/geshi/dcl.php Normal file
View File

@ -0,0 +1,192 @@
<?php
/*************************************************************************************
* dcl.php
* --------
* Author: Petr Hendl (petr@hendl.cz)
* Copyright: (c) 2011 Petr Hendl http://hendl.cz/geshi/
* Release Version: 1.0.8.11
* Date Started: 2011/02/17
*
* DCL language file for GeSHi.
*
* CHANGES
* -------
* 2011-02-17 (1.0.8.11)
* - First Release
*
* TODO
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'DCL',
'COMMENT_SINGLE' => array('$!', '!'),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(
2 => '/(?<=\$)\s*sql\s+.*?(?:quit|exit);?\s*?$/sim' // do not highlight inline sql
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'HARDESCAPE' => array(),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
1 => "/''[a-zA-Z\\-_]+'/"
),
'KEYWORDS' => array(
1 => array( // commands
'ACCOUNTING', 'ALLOCATE', 'ANALYZE', 'APPEND', 'ASSIGN', 'ATTACH', 'BACKUP',
'CALL', 'CANCEL', 'CHECKSUM', 'CLOSE', 'CONNECT', 'CONTINUE', 'CONVERT',
'COPY', 'CREATE', 'DEALLOCATE', 'DEASSIGN', 'DEBUG', 'DECK',
'DECRYPT', 'DEFINE', 'DELETE', 'DEPOSIT', 'DIFFERENCES', 'DIRECTORY',
'DISABLE', 'AUTOSTART', 'DISCONNECT', 'DISMOUNT', 'DUMP', 'EDIT', 'ENABLE',
'ENCRYPT', 'ENDSUBROUTINE', 'EOD', 'EOJ', 'EXAMINE', 'EXCHANGE',
'EXIT', 'FONT', 'GOSUB', 'GOTO', 'HELP', 'IF', 'THEN', 'ELSE', 'ENDIF', 'INITIALIZE', 'INQUIRE',
'INSTALL', 'JAVA', 'JOB', 'LIBRARY', 'LICENSE', 'LINK', 'LOGIN', 'LOGOUT',
'MACRO', 'MAIL', 'MERGE', 'MESSAGE', 'MONITOR', 'MOUNT', 'NCS', 'ON', 'OPEN',
'PASSWORD', 'PATCH', 'PHONE', 'PIPE', 'PPPD', 'PRINT', 'PRODUCT', 'PURGE',
'READ', 'RECALL', 'RENAME', 'REPLY', 'REQUEST', 'RETURN', 'RMU', 'RUN', 'RUNOFF',
'SEARCH', 'SET', 'SET AUDIT', 'SET BOOTBLOCK', 'SET BROADCAST',
'SET CACHE', 'SET CARD_READER', 'SET CLUSTER', 'SET COMMAND', 'SET CONTROL',
'SET CPU', 'SET DAY', 'SET DEFAULT', 'SET DEVICE', 'SET DIRECTORY',
'SET DISPLAY', 'SET ENTRY', 'SET FILE', 'SET HOST', 'SET IMAGE', 'SET KEY',
'SET LOGINS', 'SET MAGTAPE', 'SET MESSAGE', 'SET NETWORK', 'SET ON', 'SET OUTPUT_RATE',
'SET PASSWORD', 'SET PREFERRED_PATH', 'SET PREFIX', 'SET PRINTER', 'SET PROCESS',
'SET PROMPT', 'SET PROTECTION', 'SET QUEUE', 'SET RESTART_VALUE',
'SET RIGHTS_LIST', 'SET RMS_DEFAULT', 'SET ROOT', 'SET SECURITY',
'SET SERVER ACME_SERVER', 'SET SERVER REGISTRY_SERVER', 'SET SERVER SECURITY_SERVER',
'SET SHADOW', 'SET SYMBOL', 'SET TERMINAL', 'SET TIME', 'SET VERIFY',
'SET VOLUME', 'SET WORKING_SET', 'SHOW', 'SHOW AUDIT',
'SHOW BROADCAST', 'SHOW CLUSTER', 'SHOW CPU', 'SHOW DEFAULT', 'SHOW DEVICES',
'SHOW DISPLAY', 'SHOW ENTRY', 'SHOW ERROR', 'SHOW FASTPATH', 'SHOW IMAGE',
'SHOW INTRUSION', 'SHOW KEY', 'SHOW LICENSE', 'SHOW LOGICAL', 'SHOW MEMORY',
'SHOW NETWORK', 'SHOW PRINTER', 'SHOW PROCESS', 'SHOW PROTECTION', 'SHOW QUEUE',
'SHOW QUOTA', 'SHOW RMS_DEFAULT', 'SHOW ROOT', 'SHOW SECURITY',
'SHOW SERVER ACME_SERVER', 'SHOW SERVER REGISTRY_SERVER', 'SHOW SHADOW',
'SHOW STATUS', 'SHOW SYMBOL', 'SHOW SYSTEM', 'SHOW TERMINAL', 'SHOW TIME',
'SHOW TRANSLATION', 'SHOW USERS', 'SHOW WORKING_SET', 'SHOW ZONE', 'SORT',
'SPAWN', 'START', 'STOP', 'SUBMIT', 'SUBROUTINE', 'SYNCHRONIZE', 'TYPE',
'UNLOCK', 'VIEW', 'WAIT', 'WRITE', 'XAUTH'
),
2 => array( // lexical functions
'F$CONTEXT', 'F$CSID', 'F$CUNITS', 'F$CVSI', 'F$CVTIME', 'F$CVUI',
'F$DELTA_TIME', 'F$DEVICE', 'F$DIRECTORY', 'F$EDIT', 'F$ELEMENT',
'F$ENVIRONMENT', 'F$EXTRACT', 'F$FAO', 'F$FID_TO_NAME', 'F$FILE_ATTRIBUTES',
'F$GETDVI', 'F$GETENV', 'F$GETJPI', 'F$GETQUI', 'F$GETSYI', 'F$IDENTIFIER',
'F$INTEGER', 'F$LENGTH', 'F$LICENSE', 'F$LOCATE', 'F$MATCH_WILD', 'F$MESSAGE',
'F$MODE', 'F$MULTIPATH', 'F$PARSE', 'F$PID', 'F$PRIVILEGE', 'F$PROCESS',
'F$SEARCH', 'F$SETPRV', 'F$STRING', 'F$TIME', 'F$TRNLNM', 'F$TYPE', 'F$UNIQUE',
'F$USER', 'F$VERIFY'
),
3 => array( // special variables etc
'sql$database', 'P1', 'P2', 'P3', 'P4', 'P5', 'P6', 'P7', 'P8', 'P9',
'$status', '$severity', 'sys$login', 'sys$system',
'sys$input', 'sys$output', 'sys$pipe'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '@', '&', '|', '<', '>', '-',
'.eqs.', '.eq.', '.lt.', '.lts.', '.gt.', '.gts.', '.ne.', '.nes.',
'.le.', '.ge.', '.ges.', '.les.',
'.EQS.', '.EQ.', '.LT.', '.LTS.', '.GT.', '.GTS.', '.NE.', '.NES.',
'.LE.', '.GE.', '.GES.', '.LES.',
'.and.', '.or.', '.not.',
'.AND.', '.OR.', '.NOT.',
'==', ':==', '=', ':='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000099; font-weight: bold;',
2 => 'color: #0066FF;',
3 => 'color: #993300;'
),
'COMMENTS' => array(
0 => 'color: #666666; font-style: italic;',
1 => 'color: #666666; font-style: italic;',
2 => 'color: #9999FF; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #006666;',
1 => 'color: #0099FF;',
2 => 'color: red;',
3 => 'color: #007800;',
4 => 'color: #007800;',
5 => 'color: #780078;'
),
'BRACKETS' => array(
0 => 'color: #7a0874; font-weight: bold;'
),
'STRINGS' => array(
0 => 'color: #009900;'
),
'NUMBERS' => array(
0 => 'color: #000000;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #000000; font-weight: bold;'
),
'REGEXPS' => array(
0 => 'color: #0099FF;', // variables
1 => 'color: #0000FF;', // qualifiers
2 => 'color: #FF6600; font-weight: bold;' // labels
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
// variables
0 => "'[a-zA-Z_\\-$]+'",
// qualifiers and parameters
1 => "(?:\/[a-zA-Z_\/]+)[\s=]",
// labels
2 => '(?<=\$)\s*[a-zA-Z\-_]+:'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'COMMENTS' => array(
),
'KEYWORDS' => array(
)
)
);
?>

131
Sources/geshi/dcpu16.php Normal file
View File

@ -0,0 +1,131 @@
<?php
/*************************************************************************************
* dcpu16.php
* -------
* Author: Benny Baumann (BenBE@omorphia.de)
* Copyright: (c) 2007-2012 Benny Baumann (http://geshi.org/)
* Release Version: 1.0.8.11
* Date Started: 2012/04/12
*
* DCPU/16 Assembly language file for GeSHi.
* Syntax definition based on http://0x10c.com/doc/dcpu-16.txt
*
* CHANGES
* -------
* 2012/04/12 (1.0.0)
* - First Release
*
* TODO (updated 2012/04/12)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'DCPU-16 Assembly',
'COMMENT_SINGLE' => array(1 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'NUMBERS' => GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_HEX_PREFIX,
'KEYWORDS' => array(
/*CPU*/
1 => array(
'set','add','sub','mul','div','mod','shl','shr','and','bor','xor',
'ife','ifn','ifg','ifb',
'jsr'
),
/*registers*/
2 => array(
'a','b','c','x','y','z','i','j',
'pc','sp','o',
'pop','peek','push' //Special cases with DCPU-16
),
),
'SYMBOLS' => array(
'[', ']', '+', '-', ','
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000088; font-weight:bold;',
2 => 'color: #0000ff;'
),
'COMMENTS' => array(
1 => 'color: #adadad; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000088;'
),
'STRINGS' => array(
0 => 'color: #7f007f;'
),
'NUMBERS' => array(
0 => 'color: #880000;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #008000;'
),
'REGEXPS' => array(
2 => 'color: #993333;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => 'http://0x10c.com/doc/dcpu-16.txt',
2 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
//Hex numbers
//0 => '0[0-9a-fA-F]{1,32}[hH]',
//Binary numbers
//1 => '\%[01]{1,64}|[01]{1,64}[bB]?(?![^<]*>)',
//Labels
2 => '^:[_a-zA-Z][_a-zA-Z0-9]?(?=\s|$)'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#\/])",
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_\|%\\-])"
)
)
);
?>

182
Sources/geshi/dcs.php Normal file
View File

@ -0,0 +1,182 @@
<?php
/*************************************************************************************
* dcs.php
* ---------------------------------
* Author: Stelio Passaris (GeSHi@stelio.net)
* Copyright: (c) 2009 Stelio Passaris (http://stelio.net/stiki/GeSHi)
* Release Version: 1.0.8.11
* Date Started: 2009/01/20
*
* DCS language file for GeSHi.
*
* DCS (Data Conversion System) is part of Sungard iWorks' Prophet suite and is used
* to convert external data files into a format that Prophet and Glean can read.
* See http://www.prophet-web.com/Products/DCS for product information.
* This language file is current for DCS version 7.3.2.
*
* Note that the DCS IDE does not handle escape characters correctly. The IDE thinks
* that a backslash '\' is an escape character, but in practice the backslash does
* not escape the string delimiter character '"' when the program runs. A '\\' is
* escaped to '\' when the program runs, but '\"' is treated as '\' at the end of a
* string. Therefore in this language file, we do not recognise the backslash as an
* escape character. For the purposes of GeSHi, there is no character escaping.
*
* CHANGES
* -------
* 2009/02/21 (1.0.8.3)
* - First Release
*
* TODO (updated 2009/02/21)
* -------------------------
* * Add handling for embedded C code. Note that the DCS IDE does not highlight C code
* correctly, but that doesn't mean that we can't! This will be included for a
* stable release of GeSHi of version 1.1.x (or later) that allows for highlighting
* embedded code using that code's appropriate language file.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*************************************************************************************/
$language_data = array (
'LANG_NAME' => 'DCS',
'COMMENT_SINGLE' => array(
1 => ';'
),
'COMMENT_MULTI' => array(
),
'COMMENT_REGEXP' => array(
// Highlight embedded C code in a separate color:
2 => '/\bINSERT_C_CODE\b.*?\bEND_C_CODE\b/ims'
),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array(
'"'
),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => '',
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array(
'abs', 'ascii_value', 'bit_value', 'blank_date', 'calc_unit_values', 'cm',
'complete_months', 'complete_years', 'correct', 'create_input_file', 'cy',
'date_convert', 'day', 'del_output_separator',
'delete_existing_output_files', 'div', 'ex', 'exact_years', 'exp',
'extract_date', 'failed_validation', 'file_number', 'first_record',
'fract', 'fund_fac_a', 'fund_fac_b', 'fund_fac_c', 'fund_fac_d',
'fund_fac_e', 'fund_fac_f', 'fund_fac_g', 'fund_fac_h', 'fund_fac_i',
'fund_fac_j', 'fund_fac_k', 'fund_fac_l', 'fund_fac_m', 'fund_fac_n',
'fund_fac_o', 'fund_fac_p', 'fund_fac_q', 'fund_fac_r', 'fund_fac_s',
'fund_fac_t', 'fund_fac_u', 'fund_fac_v', 'fund_fac_w', 'fund_fac_x',
'fund_fac_y', 'fund_fac_z', 'group', 'group_record',
'input_file_date_time', 'input_file_extension', 'input_file_location',
'input_file_name', 'int', 'invalid', 'last_record', 'leap_year', 'len',
'ln', 'log', 'main_format_name', 'max', 'max_num_subrecords', 'message',
'min', 'mod', 'month', 'months_add', 'months_sub', 'nearest_months',
'nearest_years', 'next_record', 'nm', 'no_of_current_records',
'no_of_records', 'numval', 'ny', 'output', 'output_array_as_constants',
'output_file_path', 'output_record', 'pmdf_output', 'previous', 'rand',
're_start', 'read_generic_table', 'read_generic_table_text',
'read_input_footer', 'read_input_footer_text', 'read_input_header',
'read_input_header_text', 'record_count', 'record_suppressed', 'round',
'round_down', 'round_near', 'round_up', 'run_dcs_program', 'run_parameter',
'run_parameter_text', 'set_main_record', 'set_num_subrecords',
'sort_array', 'sort_current_records', 'sort_input', 'strval', 'substr',
'summarise', 'summarise_record', 'summarise_units',
'summarise_units_record', 'suppress_record', 'table_correct',
'table_validate', 'terminate', 'time', 'today', 'trim', 'ubound', 'year',
'years_add', 'years_sub'
),
2 => array(
'and', 'as', 'begin', 'boolean', 'byref', 'byval', 'call', 'case', 'date',
'default', 'do', 'else', 'elseif', 'end_c_code', 'endfor', 'endfunction',
'endif', 'endproc', 'endswitch', 'endwhile', 'eq',
'explicit_declarations', 'false', 'for', 'from', 'function', 'ge', 'gt',
'if', 'insert_c_code', 'integer', 'le', 'loop', 'lt', 'ne', 'not',
'number', 'or', 'private', 'proc', 'public', 'quitloop', 'return',
'short', 'step', 'switch', 'text', 'then', 'to', 'true', 'while'
),
3 => array(
// These keywords are not highlighted by the DCS IDE but we may as well
// keep track of them anyway:
'mp_file', 'odbc_file'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']',
'=', '<', '>',
'+', '-', '*', '/', '^',
':', ','
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: red;',
2 => 'color: blue;',
3 => 'color: black;'
),
'COMMENTS' => array(
1 => 'color: black; background-color: silver;',
// Colors for highlighting embedded C code:
2 => 'color: maroon; background-color: pink;'
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
0 => 'color: black;'
),
'STRINGS' => array(
0 => 'color: green;'
),
'NUMBERS' => array(
0 => 'color: green;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: black;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
),
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

301
Sources/geshi/delphi.php Normal file
View File

@ -0,0 +1,301 @@
<?php
/*************************************************************************************
* delphi.php
* ----------
* Author: J<EFBFBD>rja Norbert (jnorbi@vipmail.hu), Benny Baumann (BenBE@omorphia.de)
* Copyright: (c) 2004 J<EFBFBD>rja Norbert, Benny Baumann (BenBE@omorphia.de), Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2004/07/26
*
* Delphi (Object Pascal) language file for GeSHi.
*
* CHANGES
* -------
* 2012/06/27 (1.0.8.11)
* - Added some keywords
* - fixed hex numbers and hex char literals (including WideChar)
* - Added support for FPC-Style generics
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
* 2005/11/19 (1.0.3)
* - Updated the very incomplete keyword and type lists
* 2005/09/03 (1.0.2)
* - Added support for hex numbers and string entities
* 2004/11/27 (1.0.1)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Delphi',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('(*' => '*)', '{' => '}'),
//Compiler directives
'COMMENT_REGEXP' => array(2 => '/\\{\\$.*?}|\\(\\*\\$.*?\\*\\)/U'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'"),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'Abstract', 'And', 'Array', 'As', 'Asm', 'At', 'Begin', 'Case',
'Class', 'Const', 'Constructor', 'Contains', 'Default', 'delayed', 'Destructor',
'DispInterface', 'Div', 'Do', 'DownTo', 'Else', 'End', 'Except',
'Export', 'Exports', 'External', 'File', 'Finalization', 'Finally', 'For',
'Function', 'Generic', 'Goto', 'If', 'Implementation', 'In', 'Inherited',
'Initialization', 'Inline', 'Interface', 'Is', 'Label', 'Library', 'Message',
'Mod', 'Nil', 'Not', 'Object', 'Of', 'On', 'Or', 'Overload', 'Override',
'Package', 'Packed', 'Private', 'Procedure', 'Program', 'Property',
'Protected', 'Public', 'Published', 'Read', 'Raise', 'Record', 'Register',
'Repeat', 'Requires', 'Resourcestring', 'Set', 'Shl', 'Shr', 'Specialize', 'Stored',
'Then', 'ThreadVar', 'To', 'Try', 'Type', 'Unit', 'Until', 'Uses', 'Var',
'Virtual', 'While', 'With', 'Write', 'Xor', 'assembler', 'far',
'near', 'pascal', 'cdecl', 'safecall', 'stdcall', 'varargs'
),
2 => array(
'false', 'self', 'true',
),
3 => array(
'Abs', 'AcquireExceptionObject', 'Addr', 'AnsiToUtf8', 'Append', 'ArcTan',
'Assert', 'AssignFile', 'Assigned', 'BeginThread', 'BlockRead',
'BlockWrite', 'Break', 'ChDir', 'Chr', 'Close', 'CloseFile',
'CompToCurrency', 'CompToDouble', 'Concat', 'Continue', 'Copy', 'Cos',
'Dec', 'Delete', 'Dispose', 'DoubleToComp', 'EndThread', 'EnumModules',
'EnumResourceModules', 'Eof', 'Eoln', 'Erase', 'ExceptAddr',
'ExceptObject', 'Exclude', 'Exit', 'Exp', 'FilePos', 'FileSize',
'FillChar', 'Finalize', 'FindClassHInstance', 'FindHInstance',
'FindResourceHInstance', 'Flush', 'Frac', 'FreeMem', 'Get8087CW',
'GetDir', 'GetLastError', 'GetMem', 'GetMemoryManager',
'GetModuleFileName', 'GetVariantManager', 'Halt', 'Hi', 'High',
'IOResult', 'Inc', 'Include', 'Initialize', 'Insert', 'Int',
'IsMemoryManagerSet', 'IsVariantManagerSet', 'Length', 'Ln', 'Lo', 'Low',
'MkDir', 'Move', 'New', 'Odd', 'OleStrToStrVar', 'OleStrToString', 'Ord',
'PUCS4Chars', 'ParamCount', 'ParamStr', 'Pi', 'Pos', 'Pred', 'Ptr',
'Random', 'Randomize', 'Read', 'ReadLn', 'ReallocMem',
'ReleaseExceptionObject', 'Rename', 'Reset', 'Rewrite', 'RmDir', 'Round',
'RunError', 'Seek', 'SeekEof', 'SeekEoln', 'Set8087CW', 'SetLength',
'SetLineBreakStyle', 'SetMemoryManager', 'SetString', 'SetTextBuf',
'SetVariantManager', 'Sin', 'SizeOf', 'Slice', 'Sqr', 'Sqrt', 'Str',
'StringOfChar', 'StringToOleStr', 'StringToWideChar', 'Succ', 'Swap',
'Trunc', 'Truncate', 'TypeInfo', 'UCS4StringToWideString', 'UTF8Decode',
'UTF8Encode', 'UnicodeToUtf8', 'UniqueString', 'UpCase', 'Utf8ToAnsi',
'Utf8ToUnicode', 'Val', 'VarArrayRedim', 'VarClear',
'WideCharLenToStrVar', 'WideCharLenToString', 'WideCharToStrVar',
'WideCharToString', 'WideStringToUCS4String', 'Write', 'WriteLn',
'Abort', 'AddExitProc', 'AddTerminateProc', 'AdjustLineBreaks', 'AllocMem',
'AnsiCompareFileName', 'AnsiCompareStr', 'AnsiCompareText',
'AnsiDequotedStr', 'AnsiExtractQuotedStr', 'AnsiLastChar',
'AnsiLowerCase', 'AnsiLowerCaseFileName', 'AnsiPos', 'AnsiQuotedStr',
'AnsiSameStr', 'AnsiSameText', 'AnsiStrComp', 'AnsiStrIComp',
'AnsiStrLComp', 'AnsiStrLIComp', 'AnsiStrLastChar', 'AnsiStrLower',
'AnsiStrPos', 'AnsiStrRScan', 'AnsiStrScan', 'AnsiStrUpper',
'AnsiUpperCase', 'AnsiUpperCaseFileName', 'AppendStr', 'AssignStr',
'Beep', 'BoolToStr', 'ByteToCharIndex', 'ByteToCharLen', 'ByteType',
'CallTerminateProcs', 'ChangeFileExt', 'CharLength', 'CharToByteIndex',
'CharToByteLen', 'CompareMem', 'CompareStr', 'CompareText', 'CreateDir',
'CreateGUID', 'CurrToStr', 'CurrToStrF', 'CurrentYear', 'Date',
'DateTimeToFileDate', 'DateTimeToStr', 'DateTimeToString',
'DateTimeToSystemTime', 'DateTimeToTimeStamp', 'DateToStr', 'DayOfWeek',
'DecodeDate', 'DecodeDateFully', 'DecodeTime', 'DeleteFile',
'DirectoryExists', 'DiskFree', 'DiskSize', 'DisposeStr', 'EncodeDate',
'EncodeTime', 'ExceptionErrorMessage', 'ExcludeTrailingBackslash',
'ExcludeTrailingPathDelimiter', 'ExpandFileName', 'ExpandFileNameCase',
'ExpandUNCFileName', 'ExtractFileDir', 'ExtractFileDrive',
'ExtractFileExt', 'ExtractFileName', 'ExtractFilePath',
'ExtractRelativePath', 'ExtractShortPathName', 'FileAge', 'FileClose',
'FileCreate', 'FileDateToDateTime', 'FileExists', 'FileGetAttr',
'FileGetDate', 'FileIsReadOnly', 'FileOpen', 'FileRead', 'FileSearch',
'FileSeek', 'FileSetAttr', 'FileSetDate', 'FileSetReadOnly', 'FileWrite',
'FinalizePackage', 'FindClose', 'FindCmdLineSwitch', 'FindFirst',
'FindNext', 'FloatToCurr', 'FloatToDateTime', 'FloatToDecimal',
'FloatToStr', 'FloatToStrF', 'FloatToText', 'FloatToTextFmt',
'FmtLoadStr', 'FmtStr', 'ForceDirectories', 'Format', 'FormatBuf',
'FormatCurr', 'FormatDateTime', 'FormatFloat', 'FreeAndNil',
'GUIDToString', 'GetCurrentDir', 'GetEnvironmentVariable',
'GetFileVersion', 'GetFormatSettings', 'GetLocaleFormatSettings',
'GetModuleName', 'GetPackageDescription', 'GetPackageInfo', 'GetTime',
'IncAMonth', 'IncMonth', 'IncludeTrailingBackslash',
'IncludeTrailingPathDelimiter', 'InitializePackage', 'IntToHex',
'IntToStr', 'InterlockedDecrement', 'InterlockedExchange',
'InterlockedExchangeAdd', 'InterlockedIncrement', 'IsDelimiter',
'IsEqualGUID', 'IsLeapYear', 'IsPathDelimiter', 'IsValidIdent',
'Languages', 'LastDelimiter', 'LoadPackage', 'LoadStr', 'LowerCase',
'MSecsToTimeStamp', 'NewStr', 'NextCharIndex', 'Now', 'OutOfMemoryError',
'QuotedStr', 'RaiseLastOSError', 'RaiseLastWin32Error', 'RemoveDir',
'RenameFile', 'ReplaceDate', 'ReplaceTime', 'SafeLoadLibrary',
'SameFileName', 'SameText', 'SetCurrentDir', 'ShowException', 'Sleep',
'StrAlloc', 'StrBufSize', 'StrByteType', 'StrCat', 'StrCharLength',
'StrComp', 'StrCopy', 'StrDispose', 'StrECopy', 'StrEnd', 'StrFmt',
'StrIComp', 'StrLCat', 'StrLComp', 'StrLCopy', 'StrLFmt', 'StrLIComp',
'StrLen', 'StrLower', 'StrMove', 'StrNew', 'StrNextChar', 'StrPCopy',
'StrPLCopy', 'StrPas', 'StrPos', 'StrRScan', 'StrScan', 'StrToBool',
'StrToBoolDef', 'StrToCurr', 'StrToCurrDef', 'StrToDate', 'StrToDateDef',
'StrToDateTime', 'StrToDateTimeDef', 'StrToFloat', 'StrToFloatDef',
'StrToInt', 'StrToInt64', 'StrToInt64Def', 'StrToIntDef', 'StrToTime',
'StrToTimeDef', 'StrUpper', 'StringReplace', 'StringToGUID', 'Supports',
'SysErrorMessage', 'SystemTimeToDateTime', 'TextToFloat', 'Time',
'TimeStampToDateTime', 'TimeStampToMSecs', 'TimeToStr', 'Trim',
'TrimLeft', 'TrimRight', 'TryEncodeDate', 'TryEncodeTime',
'TryFloatToCurr', 'TryFloatToDateTime', 'TryStrToBool', 'TryStrToCurr',
'TryStrToDate', 'TryStrToDateTime', 'TryStrToFloat', 'TryStrToInt',
'TryStrToInt64', 'TryStrToTime', 'UnloadPackage', 'UpperCase',
'WideCompareStr', 'WideCompareText', 'WideFmtStr', 'WideFormat',
'WideFormatBuf', 'WideLowerCase', 'WideSameStr', 'WideSameText',
'WideUpperCase', 'Win32Check', 'WrapText',
'ActivateClassGroup', 'AllocateHwnd', 'BinToHex', 'CheckSynchronize',
'CollectionsEqual', 'CountGenerations', 'DeallocateHwnd', 'EqualRect',
'ExtractStrings', 'FindClass', 'FindGlobalComponent', 'GetClass',
'GroupDescendantsWith', 'HexToBin', 'IdentToInt',
'InitInheritedComponent', 'IntToIdent', 'InvalidPoint',
'IsUniqueGlobalComponentName', 'LineStart', 'ObjectBinaryToText',
'ObjectResourceToText', 'ObjectTextToBinary', 'ObjectTextToResource',
'PointsEqual', 'ReadComponentRes', 'ReadComponentResEx',
'ReadComponentResFile', 'Rect', 'RegisterClass', 'RegisterClassAlias',
'RegisterClasses', 'RegisterComponents', 'RegisterIntegerConsts',
'RegisterNoIcon', 'RegisterNonActiveX', 'SmallPoint', 'StartClassGroup',
'TestStreamFormat', 'UnregisterClass', 'UnregisterClasses',
'UnregisterIntegerConsts', 'UnregisterModuleClasses',
'WriteComponentResFile',
'ArcCos', 'ArcCosh', 'ArcCot', 'ArcCotH', 'ArcCsc', 'ArcCscH', 'ArcSec',
'ArcSecH', 'ArcSin', 'ArcSinh', 'ArcTan2', 'ArcTanh', 'Ceil',
'CompareValue', 'Cosecant', 'Cosh', 'Cot', 'CotH', 'Cotan', 'Csc', 'CscH',
'CycleToDeg', 'CycleToGrad', 'CycleToRad', 'DegToCycle', 'DegToGrad',
'DegToRad', 'DivMod', 'DoubleDecliningBalance', 'EnsureRange', 'Floor',
'Frexp', 'FutureValue', 'GetExceptionMask', 'GetPrecisionMode',
'GetRoundMode', 'GradToCycle', 'GradToDeg', 'GradToRad', 'Hypot',
'InRange', 'IntPower', 'InterestPayment', 'InterestRate',
'InternalRateOfReturn', 'IsInfinite', 'IsNan', 'IsZero', 'Ldexp', 'LnXP1',
'Log10', 'Log2', 'LogN', 'Max', 'MaxIntValue', 'MaxValue', 'Mean',
'MeanAndStdDev', 'Min', 'MinIntValue', 'MinValue', 'MomentSkewKurtosis',
'NetPresentValue', 'Norm', 'NumberOfPeriods', 'Payment', 'PeriodPayment',
'Poly', 'PopnStdDev', 'PopnVariance', 'Power', 'PresentValue',
'RadToCycle', 'RadToDeg', 'RadToGrad', 'RandG', 'RandomRange', 'RoundTo',
'SLNDepreciation', 'SYDDepreciation', 'SameValue', 'Sec', 'SecH',
'Secant', 'SetExceptionMask', 'SetPrecisionMode', 'SetRoundMode', 'Sign',
'SimpleRoundTo', 'SinCos', 'Sinh', 'StdDev', 'Sum', 'SumInt',
'SumOfSquares', 'SumsAndSquares', 'Tan', 'Tanh', 'TotalVariance',
'Variance'
),
4 => array(
'AnsiChar', 'AnsiString', 'Bool', 'Boolean', 'Byte', 'ByteBool', 'Cardinal', 'Char',
'Comp', 'Currency', 'DWORD', 'Double', 'Extended', 'Int64', 'Integer', 'IUnknown',
'LongBool', 'LongInt', 'LongWord', 'PAnsiChar', 'PAnsiString', 'PBool', 'PBoolean', 'PByte',
'PByteArray', 'PCardinal', 'PChar', 'PComp', 'PCurrency', 'PDWORD', 'PDate', 'PDateTime',
'PDouble', 'PExtended', 'PInt64', 'PInteger', 'PLongInt', 'PLongWord', 'Pointer', 'PPointer',
'PShortInt', 'PShortString', 'PSingle', 'PSmallInt', 'PString', 'PHandle', 'PVariant', 'PWord',
'PWordArray', 'PWordBool', 'PWideChar', 'PWideString', 'Real', 'Real48', 'ShortInt', 'ShortString',
'Single', 'SmallInt', 'String', 'TClass', 'TDate', 'TDateTime', 'TextFile', 'THandle',
'TObject', 'TTime', 'Variant', 'WideChar', 'WideString', 'Word', 'WordBool'
),
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
),
'SYMBOLS' => array(
0 => array('(', ')', '[', ']'),
1 => array('.', ',', ':', ';'),
2 => array('@', '^'),
3 => array('=', '+', '-', '*', '/')
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;',
4 => 'color: #000066; font-weight: bold;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #008000; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #ff0000; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000066;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #0000ff;'
),
'METHODS' => array(
1 => 'color: #006600;'
),
'REGEXPS' => array(
0 => 'color: #0000cc;',
1 => 'color: #ff0000;'
),
'SYMBOLS' => array(
0 => 'color: #000066;',
1 => 'color: #000066;',
2 => 'color: #000066;',
3 => 'color: #000066;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
//Hex numbers
0 => '(?<!\#)\$[0-9a-fA-F]+(?!\w)',
//Characters
1 => '\#(?:\$[0-9a-fA-F]{1,4}|\d{1,5})'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 2,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
3 => array(
'DISALLOWED_AFTER' => '(?=\s*[(;])'
)
)
)
);
?>

196
Sources/geshi/diff.php Normal file
View File

@ -0,0 +1,196 @@
<?php
/*************************************************************************************
* diff.php
* --------
* Author: Conny Brunnkvist (conny@fuchsia.se), W. Tasin (tasin@fhm.edu)
* Copyright: (c) 2004 Fuchsia Open Source Solutions (http://www.fuchsia.se/)
* Release Version: 1.0.8.11
* Date Started: 2004/12/29
*
* Diff-output language file for GeSHi.
*
* CHANGES
* -------
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
* 2006/02/27
* - changing language file to use matching of start (^) and end ($) (wt)
* 2004/12/29 (1.0.0)
* - First Release
*
* TODO (updated 2006/02/27)
* -------------------------
*
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Diff',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => ' ',
'KEYWORDS' => array(
1 => array(
'\ No newline at end of file'
),
// 2 => array(
// '***************' /* This only seems to works in some cases? */
// ),
),
'SYMBOLS' => array(
),
'CASE_SENSITIVE' => array(
1 => false,
// 2 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #aaaaaa; font-style: italic;',
// 2 => 'color: #dd6611;',
),
'COMMENTS' => array(
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => ''
),
'STRINGS' => array(
0 => ''
),
'NUMBERS' => array(
0 => ''
),
'METHODS' => array(
0 => ''
),
'SYMBOLS' => array(
0 => ''
),
'SCRIPT' => array(
0 => ''
),
'REGEXPS' => array(
0 => 'color: #440088;',
1 => 'color: #991111;',
2 => 'color: #00b000;',
3 => 'color: #888822;',
4 => 'color: #888822;',
5 => 'color: #0011dd;',
6 => 'color: #440088;',
7 => 'color: #991111;',
8 => 'color: #00b000;',
9 => 'color: #888822;',
),
),
'URLS' => array(
1 => '',
// 2 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(
0 => "[0-9,]+[acd][0-9,]+",
//Removed lines
1 => array(
GESHI_SEARCH => '(^|(?<=\A\s))\\&lt;.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
//Inserted lines
2 => array(
GESHI_SEARCH => '(^|(?<=\A\s))\\&gt;.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
//Location line
3 => array(
GESHI_SEARCH => '(^|(?<=\A\s))-{3}\\s.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
//Inserted line
4 => array(
GESHI_SEARCH => '(^|(?<=\A\s))(\\+){3}\\s.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
//Modified line
5 => array(
GESHI_SEARCH => '(^|(?<=\A\s))\\!.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
//File specification
6 => array(
GESHI_SEARCH => '(^|(?<=\A\s))[\\@]{2}.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
//Removed line
7 => array(
GESHI_SEARCH => '(^|(?<=\A\s))\\-.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
//Inserted line
8 => array(
GESHI_SEARCH => '(^|(?<=\A\s))\\+.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
//File specification
9 => array(
GESHI_SEARCH => '(^|(?<=\A\s))(\\*){3}\\s.*$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

126
Sources/geshi/div.php Normal file
View File

@ -0,0 +1,126 @@
<?php
/*************************************************************************************
* div.php
* ---------------------------------
* Author: Gabriel Lorenzo (ermakina@gmail.com)
* Copyright: (c) 2005 Gabriel Lorenzo (http://ermakina.gazpachito.net)
* Release Version: 1.0.8.11
* Date Started: 2005/06/19
*
* DIV language file for GeSHi.
*
* CHANGES
* -------
* 2005/06/22 (1.0.0)
* - First Release, includes "2nd gen" ELSEIF statement
*
* TODO (updated 2005/06/22)
* -------------------------
* - I'm pretty satisfied with this, so nothing for now... :P
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'DIV',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'while','until','to','switch','step','return','repeat','loop','if','from','frame','for','end','elseif',
'else','default','debug','continue','clone','case','break','begin'
),
2 => array(
'xor','whoami','type','sizeof','pointer','or','offset','not','neg','mod','id','dup','and','_ne','_lt',
'_le','_gt','_ge','_eq'
),
3 => array(
'setup_program','program','process','private','local','import','global','function','const',
'compiler_options'
),
4 => array(
'word','struct','string','int','byte'
),
),
'SYMBOLS' => array(
'(',')','[',']','=','+','-','*','/','!','%','^','&',':',';',',','<','>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0040b1;',
2 => 'color: #000000;',
3 => 'color: #000066; font-weight: bold;',
4 => 'color: #993333;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => 'color: #44aa44;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
0 => 'color: #202020;',
),
'SYMBOLS' => array(
0 => 'color: #44aa44;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

227
Sources/geshi/dos.php Normal file
View File

@ -0,0 +1,227 @@
<?php
/*************************************************************************************
* dos.php
* -------
* Author: Alessandro Staltari (staltari@geocities.com)
* Copyright: (c) 2005 Alessandro Staltari (http://www.geocities.com/SiliconValley/Vista/8155/)
* Release Version: 1.0.8.11
* Date Started: 2005/07/05
*
* DOS language file for GeSHi.
*
* CHANGES
* -------
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
* 2005/07/05 (1.0.0)
* - First Release
*
* TODO (updated 2005/07/05)
* -------------------------
*
* - Highlight pipes and redirection (do we really need this?)
* - Add missing keywords.
* - Find a good hyperlink for keywords.
* - Improve styles.
*
* KNOWN ISSUES (updated 2005/07/07)
* ---------------------------------
*
* - Doesn't even try to handle spaces in variables name or labels (I can't
* find a reliable way to establish if a sting is a name or not, in some
* cases it depends on the contex or enviroment status).
* - Doesn't handle %%[letter] pseudo variable used inside FOR constructs
* (it should be done only into its scope: how to handle variable it?).
* - Doesn't handle %~[something] pseudo arguments.
* - If the same keyword is placed at the end of the line and the
* beginning of the next, the second occourrence is not highlighted
* (this should be a GeSHi bug, not related to the language definition).
* - I can't avoid to have keyword highlighted even when they are not used
* as keywords but, for example, as arguments to the echo command.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'DOS',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
//DOS comment lines
'COMMENT_REGEXP' => array(
1 => "/^\s*@?REM\b.*$/mi",
2 => "/^\s*::.*$/m",
3 => "/\^./"
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/* Flow control keywords */
1 => array(
'if', 'else', 'goto', 'shift',
'for', 'in', 'do',
'call', 'exit'
),
/* IF statement keywords */
2 => array(
'not', 'exist', 'errorlevel',
'defined',
'equ', 'neq', 'lss', 'leq', 'gtr', 'geq'
),
/* Internal commands */
3 => array(
'cd', 'md', 'rd', 'chdir', 'mkdir', 'rmdir', 'dir',
'del', 'copy', 'move', 'ren', 'rename',
'echo',
'setlocal', 'endlocal', 'set',
'pause',
'pushd', 'popd', 'title', 'verify'
),
/* Special files */
4 => array(
'prn', 'nul', 'lpt3', 'lpt2', 'lpt1', 'con',
'com4', 'com3', 'com2', 'com1', 'aux'
)
),
'SYMBOLS' => array(
'(', ')', '@', '%', '!', '|', '<', '>', '&'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00b100; font-weight: bold;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #b1b100; font-weight: bold;',
4 => 'color: #0000ff; font-weight: bold;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #b100b1; font-style: italic;',
3 => 'color: #33cc33;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #ff0000; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #33cc33;',
1 => 'color: #33cc33;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
0 => 'color: #b100b1; font-weight: bold;',
1 => 'color: #448844;',
2 => 'color: #448888;',
3 => 'color: #448888;'
)
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'URLS' => array(
1 => 'http://www.ss64.com/nt/{FNAMEL}.html',
2 => 'http://www.ss64.com/nt/{FNAMEL}.html',
3 => 'http://www.ss64.com/nt/{FNAMEL}.html',
4 => 'http://www.ss64.com/nt/{FNAMEL}.html'
),
'REGEXPS' => array(
/* Label */
0 => array(
/* GESHI_SEARCH => '((?si:[@\s]+GOTO\s+|\s+:)[\s]*)((?<!\n)[^\s\n]*)',*/
GESHI_SEARCH => '((?si:[@\s]+GOTO\s+|\s+:)[\s]*)((?<!\n)[^\s\n]*)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => 'si',
GESHI_BEFORE => '\\1',
GESHI_AFTER => ''
),
/* Variable assignement */
1 => array(
/* GESHI_SEARCH => '(SET[\s]+(?si:\/A[\s]+|\/P[\s]+|))([^=\s\n]+)([\s]*=)',*/
GESHI_SEARCH => '(SET\s+(?si:\\/A\s+|\\/P\s+)?)([^=\n]+)(\s*=)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => 'si',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
),
/* Arguments or variable evaluation */
2 => array(
/* GESHI_SEARCH => '(%)([\d*]|[^%\s]*(?=%))((?<!%\d)%|)',*/
GESHI_SEARCH => '(!(?:!(?=[a-z0-9]))?)([\d*]|(?:~[adfnpstxz]*(?:$\w+:)?)?[a-z0-9](?!\w)|[^!>\n]*(?=!))((?<!%\d)%|)(?!!>)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => 'si',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
),
/* Arguments or variable evaluation */
3 => array(
/* GESHI_SEARCH => '(%)([\d*]|[^%\s]*(?=%))((?<!%\d)%|)',*/
GESHI_SEARCH => '(%(?:%(?=[a-z0-9]))?)([\d*]|(?:~[adfnpstxz]*(?:$\w+:)?)?[a-z0-9](?!\w)|[^%\n]*(?=%))((?<!%\d)%|)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => 'si',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
)
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'BRACKETS' => GESHI_NEVER,
'NUMBERS' => GESHI_NEVER
),
'KEYWORDS' => array(
1 => array(
'DISALLOWED_BEFORE' => '(?<![\w\-])'
),
2 => array(
'DISALLOWED_BEFORE' => '(?<![\w\-])'
),
3 => array(
'DISALLOWED_BEFORE' => '(?<![\w\-])'
),
4 => array(
'DISALLOWED_BEFORE' => '(?<!\w)'
)
)
)
);
?>

164
Sources/geshi/dot.php Normal file
View File

@ -0,0 +1,164 @@
<?php
/*************************************************************************************
* dot.php
* ---------------------------------
* Author: Adrien Friggeri (adrien@friggeri.net)
* Copyright: (c) 2007 Adrien Friggeri (http://www.friggeri.net)
* Release Version: 1.0.8.11
* Date Started: 2007/05/30
*
* dot language file for GeSHi.
*
* CHANGES
* -------
* 2007/05/30 (1.0.0)
* - First Release
*
* TODO (updated 2007/05/30)
* -------------------------
* Everything
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'dot',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'URL', 'arrowhead', 'arrowsize', 'arrowtail', 'bb', 'bgcolor', 'bottomlabel',
'center', 'clusterrank', 'color', 'comment', 'constraint', 'decorate',
'dir', 'distortion', 'fillcolor', 'fixedsize', 'fontcolor',
'fontname', 'fontsize', 'group', 'headclip', 'headlabel', 'headport',
'height', 'id', 'label', 'labelangle', 'labeldistance', 'labelfontcolor',
'labelfontname', 'labelfontsize', 'layer', 'layers', 'margin', 'mclimit',
'minlen', 'nodesep', 'nslimit', 'ordering', 'orientation', 'page',
'pagedir', 'peripheries', 'port_label_distance', 'quantum', 'rank', 'rankdir',
'ranksep', 'ratio', 'regular', 'rotate', 'samehead', 'sametail', 'searchsize',
'shape', 'shapefile', 'showboxes', 'sides', 'size', 'skew', 'style',
'tailclip', 'taillabel', 'tailport', 'toplabel', 'weight', 'width'
),
2 => array(
'node', 'graph', 'digraph', 'strict', 'edge', 'subgraph'
),
3 => array(
'Mcircle', 'Mdiamond', 'Mrecord', 'Msquare', 'auto', 'back', 'bold',
'both', 'box', 'circle', 'compress', 'dashed', 'diamond', 'dot',
'dotted', 'doublecircle', 'doubleoctagon', 'egg', 'ellipse', 'epsf',
'false', 'fill', 'filled', 'forward', 'global', 'hexagon', 'house',
'inv', 'invdot', 'invhouse', 'invis', 'invodot', 'invtrapezium',
'invtriangle', 'local', 'max', 'min', 'none', 'normal', 'octagon',
'odot', 'out', 'parallelogram', 'plaintext', 'polygon', 'record',
'same', 'solid', 'trapezium', 'triangle', 'tripleoctagon', 'true'
),
4 => array(
'aliceblue', 'antiquewhite', 'aquamarine', 'azure', 'beige', 'bisque', 'black',
'blanchedalmond', 'blue', 'blueviolet', 'brown', 'burlywood', 'cadetblue',
'chartreuse', 'chocolate', 'coral', 'cornflowerblue', 'cornsilk', 'crimson',
'cyan', 'darkgoldenrod', 'darkgreen', 'darkkhaki', 'darkolivegreen',
'darkorange', 'darkorchid', 'darksalmon', 'darkseagreen', 'darkslateblue',
'darkslategray', 'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue',
'dimgray', 'dodgerblue', 'firebrick', 'forestgreen', 'gainsboro', 'ghostwhite',
'gold', 'goldenrod', 'gray', 'green', 'greenyellow', 'honeydew', 'hotpink',
'indianred', 'indigo', 'ivory', 'khaki', 'lavender', 'lavenderblush',
'lawngreen', 'lemonchiffon', 'lightblue', 'lightcyan', 'lightgoldenrod',
'lightgoldenrodyellow', 'lightgray', 'lightpink', 'lightsalmon',
'lightseagreen', 'lightskyblue', 'lightslateblue', 'lightslategray',
'lightyellow', 'limegreen', 'linen', 'magenta', 'maroon', 'mediumaquamarine',
'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen',
'mediumslateblue', 'mediumspringgreen', 'mediumturquoise', 'mediumvioletred',
'midnightblue', 'mintcream', 'mistyrose', 'moccasin', 'navajowhite', 'navy',
'navyblue', 'oldlace', 'olivedrab', 'oralwhite', 'orange', 'orangered',
'orchid', 'palegoldenrod', 'palegreen', 'paleturquoise', 'palevioletred',
'papayawhip', 'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'purple',
'red', 'rosybrown', 'royalblue', 'saddlebrown', 'salmon', 'salmon2', 'sandybrown',
'seagreen', 'seashell', 'sienna', 'skyblue', 'slateblue', 'slategray', 'snow',
'springgreen', 'steelblue', 'tan', 'thistle', 'tomato', 'turquoise', 'violet',
'violetred', 'wheat', 'white', 'whitesmoke', 'yellow', 'yellowgreen'
)
),
'SYMBOLS' => array(
'[', ']', '{', '}', '-', '+', '*', '/', '<', '>', '!', '~', '%', '&', '|', '='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000066;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #993333;',
4 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #339933;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #af624d; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'METHODS' => array(
),
'SCRIPT' => array(
),
'REGEXPS' => array(
),
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
1 => true,
2 => true,
3 => true
)
);
?>

208
Sources/geshi/e.php Normal file
View File

@ -0,0 +1,208 @@
<?php
/*************************************************************************************
* e.php
* --------
* Author: Kevin Reid (kpreid@switchb.org)
* Copyright: (c) 2010 Kevin Reid (http://switchb.org/kpreid/)
* Release Version: 1.0.8.11
* Date Started: 2010/04/16
*
* E language file for GeSHi.
*
* CHANGES
* -------
* 2010-04-21 (1.0.8.8)
* - Fixing langcheck-reported bugs.
* 2010-04-14 (0.1)
* - First Release
*
* TODO (updated 2010-04-21)
* -------------------------
* - Do something useful with the keyword groups. Since RC uses CSS classes named
* by the group numbers, either
* - change the numbering to match conventional uses by other languages,
* - or find or create some way to produce usefully named classes.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array(
'LANG_NAME' => 'E',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array('/**' => '*/'), // Note: This is method doc, not a general comment syntax.
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
// FIXME: The escaping inside ` is actually doubling of any interior `, $, or @ -- backslash is NOT special
'QUOTEMARKS' => array('\'', '"', '`'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
// builtin control structures
1 => array(
'accum', 'break', 'try', 'continue', 'if', 'while', 'for', 'switch'
),
// control structures subsidiary keywords
2 => array(
'catch', 'else', 'finally', 'in', 'exit'
),
// named operators
3 => array(
'fn', 'via'
),
// variable/function/object definers
4 => array(
'def', 'bind', 'var'
),
// object definition subsidiary keywords
5 => array(
'extends', 'as', 'implements', 'guards', 'match', 'to', 'method'
),
// builtin nouns in safeEnv
6 => array(
'null', 'false', 'true', 'throw', '__loop', '__makeList',
'__makeMap', '__makeProtocolDesc', '__makeMessageDesc',
'__makeParamDesc', 'any', 'void', 'boolean', '__makeOrderedSpace',
'ValueGuard', '__MatchContext', 'require', '__makeVerbFacet', 'NaN',
'Infinity', '__identityFunc', '__makeInt', '__makeFinalSlot',
'__makeVarSlot', '__makeGuardedSlot', '__makeGuard', '__makeTwine',
'__makeSourceSpan', '__auditedBy', 'Guard', 'near', 'pbc',
'PassByCopy', 'DeepPassByCopy', 'Data', 'Persistent', 'DeepFrozen',
'int', 'float64', 'char', 'String', 'Twine', 'TextWriter', 'List',
'Map', 'nullOk', 'Tuple', '__Portrayal', 'notNull', 'vow', 'rcvr',
'SturdyRef', 'simple__quasiParser', 'twine__quasiParser',
'rx__quasiParser', 'e__quasiParser', 'epatt__quasiParser',
'sml__quasiParser', 'term__quasiParser', 'traceln', '__equalizer',
'__comparer', 'Ref', 'E', 'promiseAllFulfilled', 'EIO', 'help',
'safeScope', '__eval', 'resource__uriGetter', 'type__uriGetter',
'import__uriGetter', 'elib__uriGetter', 'elang__uriGetter',
'opaque__uriGetter'
),
// builtin nouns in privilegedEnv
7 => array(
'file__uriGetter', 'fileURL__uriGetter', 'jar__uriGetter',
'http__uriGetter', 'ftp__uriGetter', 'gopher__uriGetter',
'news__uriGetter', 'cap__uriGetter', 'makeCommand', 'stdout',
'stderr', 'stdin', 'print', 'println', 'interp', 'entropy', 'timer',
'introducer', 'identityMgr', 'makeSturdyRef', 'timeMachine',
'unsafe__uriGetter', 'currentVat', 'rune', 'awt__uriGetter',
'swing__uriGetter', 'JPanel__quasiParser', 'swt__uriGetter',
'currentDisplay', 'swtGrid__quasiParser', 'swtGrid`',
'privilegedScope'
),
// reserved keywords
8 => array(
'abstract', 'an', 'assert', 'attribute', 'be', 'begin', 'behalf',
'belief', 'believe', 'believes', 'case', 'class', 'const',
'constructor', 'declare', 'default', 'define', 'defmacro',
'delicate', 'deprecated', 'dispatch', 'do', 'encapsulate',
'encapsulated', 'encapsulates', 'end', 'ensure', 'enum', 'eventual',
'eventually', 'export', 'facet', 'forall', 'function', 'given',
'hidden', 'hides', 'inline', 'is', 'know', 'knows', 'lambda', 'let',
'methods', 'module', 'namespace', 'native', 'obeys', 'octet',
'oneway', 'operator', 'package', 'private', 'protected', 'public',
'raises', 'reliance', 'reliant', 'relies', 'rely', 'reveal', 'sake',
'signed', 'static', 'struct', 'suchthat', 'supports', 'suspect',
'suspects', 'synchronized', 'this', 'transient', 'truncatable',
'typedef', 'unsigned', 'unum', 'uses', 'using', 'utf8', 'utf16',
'virtual', 'volatile', 'wstring'
)
),
'SYMBOLS' => array(
1 => array(
'(', ')', '{', '}', '[', ']', '+', '-', '*', '/', '%', '=', '<', '>', '!', '^', '&', '|', '?', ':', ';', ','
)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #b1b100;',
3 => 'color: #b1b100;',
4 => 'color: #b1b100;',
5 => 'color: #b1b100;',
6 => 'color: #b1b100;',
7 => 'color: #b1b100;',
8 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
'MULTI' => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #009900;'
),
'STRINGS' => array(
0 => 'color: #0000ff;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;',
),
'METHODS' => array(
0 => 'color: #004000;'
),
'SYMBOLS' => array(
1 => 'color: #339933;'
),
'REGEXPS' => array(),
'SCRIPT' => array()
),
'URLS' => array(
1 => 'http://wiki.erights.org/wiki/{FNAME}',
2 => 'http://wiki.erights.org/wiki/{FNAME}',
3 => 'http://wiki.erights.org/wiki/{FNAME}',
4 => 'http://wiki.erights.org/wiki/{FNAME}',
5 => 'http://wiki.erights.org/wiki/{FNAME}',
6 => 'http://wiki.erights.org/wiki/{FNAME}',
7 => 'http://wiki.erights.org/wiki/{FNAME}',
8 => 'http://wiki.erights.org/wiki/{FNAME}'
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
2 => '<-',
3 => '::'
),
'REGEXPS' => array(),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array()
);
?>

View File

@ -0,0 +1,210 @@
<?php
/*************************************************************************************
* ecmascript.php
* --------------
* Author: Michel Mariani (http://www.tonton-pixel.com/site/)
* Copyright: (c) 2010 Michel Mariani (http://www.tonton-pixel.com/site/)
* Release Version: 1.0.8.11
* Date Started: 2010/01/08
*
* ECMAScript language file for GeSHi.
*
* CHANGES
* -------
* 2010/01/08 (1.0.8.6)
* - First Release
* - Adapted from javascript.php to support plain ECMAScript/JavaScript (no HTML, no DOM)
* - Fixed regular expression for 'COMMENT_REGEXP' to exclude 'COMMENT_MULTI' syntax
* - Added '~' and removed '@' from 'SYMBOLS'
* - Cleaned up and expanded the list of 'KEYWORDS'
* - Added support for 'ESCAPE_REGEXP' and 'NUMBERS' (from c.php)
* - Selected colors to match my web site color chart
* - Added full number highlighting in all C language style formats
* - Added highlighting of escape sequences in strings, in all C language style formats including Unicode (\uXXXX).
*
* TODO (updated 2010/01/08)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'ECMAScript',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
// Regular Expression Literals
'COMMENT_REGEXP' => array(2 => "/(?<=[\\s^])s\\/(?:\\\\.|(?!\n)[^\\*\\/\\\\])+\\/(?:\\\\.|(?!\n)[^\\*\\/\\\\])+\\/[gimsu]*(?=[\\s$\\.\\;])|(?<=[\\s^(=])m?\\/(?:\\\\.|(?!\n)[^\\*\\/\\\\])+\\/[gimsu]*(?=[\\s$\\.\\,\\;\\)])/iU"),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
//Simple Single Char Escapes
1 => "#\\\\[\\\\abfnrtv\'\"?\n]#i",
//Hexadecimal Char Specs
2 => "#\\\\x[\da-fA-F]{2}#",
//Hexadecimal Char Specs
3 => "#\\\\u[\da-fA-F]{4}#",
//Hexadecimal Char Specs
4 => "#\\\\U[\da-fA-F]{8}#",
//Octal Char Specs
5 => "#\\\\[0-7]{1,3}#"
),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array( // Reserved literals
'false', 'true',
'null'
),
2 => array( // Main keywords
'break', 'case', 'catch', 'continue', 'default', 'delete', 'do', 'else',
'finally', 'for', 'function', 'if', 'in', 'instanceof', 'new', 'return',
'switch', 'this', 'throw', 'try', 'typeof', 'var', 'void', 'while',
'with'
),
3 => array( // Extra keywords or keywords reserved for future use
'abstract', 'as', 'boolean', 'byte', 'char', 'class', 'const', 'debugger',
'double', 'enum', 'export', 'extends', 'final', 'float', 'goto', 'implements',
'import', 'int', 'interface', 'is', 'long', 'native', 'namespace', 'package',
'private', 'protected', 'public', 'short', 'static', 'super', 'synchronized', 'throws',
'transient', 'use', 'volatile'
),
4 => array( // Operators
'get', 'set'
),
5 => array( // Built-in object classes
'Array', 'Boolean', 'Date', 'EvalError', 'Error', 'Function', 'Math', 'Number',
'Object', 'RangeError', 'ReferenceError', 'RegExp', 'String', 'SyntaxError', 'TypeError', 'URIError'
),
6 => array( // Global properties
'Infinity', 'NaN', 'undefined'
),
7 => array( // Global methods
'decodeURI', 'decodeURIComponent', 'encodeURI', 'encodeURIComponent',
'eval', 'isFinite', 'isNaN', 'parseFloat', 'parseInt',
// The escape and unescape functions do not work properly for non-ASCII characters and have been deprecated.
// In JavaScript 1.5 and later, use encodeURI, decodeURI, encodeURIComponent, and decodeURIComponent.
'escape', 'unescape'
),
8 => array( // Function's arguments
'arguments'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}',
'+', '-', '*', '/', '%',
'!', '.', '&', '|', '^',
'<', '>', '=', '~',
',', ';', '?', ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #009999;',
2 => 'color: #1500C8;',
3 => 'color: #1500C8;',
4 => 'color: #1500C8;',
5 => 'color: #1500C8;',
6 => 'color: #1500C8;',
7 => 'color: #1500C8;',
8 => 'color: #1500C8;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
2 => 'color: #CC0000;',
'MULTI' => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #3366CC;',
1 => 'color: #3366CC;',
2 => 'color: #3366CC;',
3 => 'color: #3366CC;',
4 => 'color: #3366CC;',
5 => 'color: #3366CC;',
'HARD' => '',
),
'BRACKETS' => array(
0 => 'color: #008800;'
),
'STRINGS' => array(
0 => 'color: #9900FF;'
),
'NUMBERS' => array(
0 => 'color: #FF00FF;',
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #FF00FF;',
GESHI_NUMBER_OCT_PREFIX => 'color: #FF00FF;',
GESHI_NUMBER_HEX_PREFIX => 'color: #FF00FF;',
GESHI_NUMBER_FLT_SCI_SHORT => 'color: #FF00FF;',
GESHI_NUMBER_FLT_SCI_ZERO => 'color: #FF00FF;',
GESHI_NUMBER_FLT_NONSCI_F => 'color: #FF00FF;',
GESHI_NUMBER_FLT_NONSCI => 'color: #FF00FF;'
),
'METHODS' => array(
1 => 'color: #660066;'
),
'SYMBOLS' => array(
0 => 'color: #339933;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
0 => '',
1 => '',
2 => '',
3 => ''
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

395
Sources/geshi/eiffel.php Normal file
View File

@ -0,0 +1,395 @@
<?php
/*************************************************************************************
* eiffel.php
* ----------
* Author: Zoran Simic (zsimic@axarosenberg.com)
* Copyright: (c) 2005 Zoran Simic
* Release Version: 1.0.8.11
* Date Started: 2005/06/30
*
* Eiffel language file for GeSHi.
*
* CHANGES
* -------
* 2005/06/30 (1.0.7)
* - Initial release
*
* TODO (updated 2005/06/30)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Eiffel',
'COMMENT_SINGLE' => array(1 => '--'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '%',
'KEYWORDS' => array(
1 => array(
'separate',
'invariant',
'inherit',
'indexing',
'feature',
'expanded',
'deferred',
'class'
),
2 => array(
'xor',
'when',
'variant',
'until',
'unique',
'undefine',
'then',
'strip',
'select',
'retry',
'rescue',
'require',
'rename',
'reference',
'redefine',
'prefix',
'or',
'once',
'old',
'obsolete',
'not',
'loop',
'local',
'like',
'is',
'inspect',
'infix',
'include',
'implies',
'if',
'frozen',
'from',
'external',
'export',
'ensure',
'end',
'elseif',
'else',
'do',
'creation',
'create',
'check',
'as',
'and',
'alias',
'agent'
),
3 => array(
'Void',
'True',
'Result',
'Precursor',
'False',
'Current'
),
4 => array(
'UNIX_SIGNALS',
'UNIX_FILE_INFO',
'UNBOUNDED',
'TWO_WAY_TREE_CURSOR',
'TWO_WAY_TREE',
'TWO_WAY_SORTED_SET',
'TWO_WAY_LIST',
'TWO_WAY_CURSOR_TREE',
'TWO_WAY_CIRCULAR',
'TWO_WAY_CHAIN_ITERATOR',
'TUPLE',
'TREE',
'TRAVERSABLE',
'TO_SPECIAL',
'THREAD_CONTROL',
'THREAD_ATTRIBUTES',
'THREAD',
'TABLE',
'SUBSET',
'STRING_HANDLER',
'STRING',
'STREAM',
'STORABLE',
'STD_FILES',
'STACK',
'SPECIAL',
'SORTED_TWO_WAY_LIST',
'SORTED_STRUCT',
'SORTED_LIST',
'SINGLE_MATH',
'SET',
'SEQUENCE',
'SEQ_STRING',
'SEMAPHORE',
'ROUTINE',
'RESIZABLE',
'RECURSIVE_TREE_CURSOR',
'RECURSIVE_CURSOR_TREE',
'REAL_REF',
'REAL',
'RAW_FILE',
'RANDOM',
'QUEUE',
'PROXY',
'PROFILING_SETTING',
'PROCEDURE',
'PRIORITY_QUEUE',
'PRIMES',
'PRECOMP',
'POINTER_REF',
'POINTER',
'PLATFORM',
'PLAIN_TEXT_FILE',
'PATH_NAME',
'PART_SORTED_TWO_WAY_LIST',
'PART_SORTED_SET',
'PART_SORTED_LIST',
'PART_COMPARABLE',
'OPERATING_ENVIRONMENT',
'ONCE_CONTROL',
'OBJECT_OWNER',
'OBJECT_CONTROL',
'NUMERIC',
'NONE',
'MUTEX',
'MULTI_ARRAY_LIST',
'MULTAR_LIST_CURSOR',
'MEMORY',
'MEM_INFO',
'MEM_CONST',
'MATH_CONST',
'LIST',
'LINKED_TREE_CURSOR',
'LINKED_TREE',
'LINKED_STACK',
'LINKED_SET',
'LINKED_QUEUE',
'LINKED_PRIORITY_QUEUE',
'LINKED_LIST_CURSOR',
'LINKED_LIST',
'LINKED_CURSOR_TREE',
'LINKED_CIRCULAR',
'LINKABLE',
'LINEAR_ITERATOR',
'LINEAR',
'ITERATOR',
'IO_MEDIUM',
'INTERNAL',
'INTEGER_REF',
'INTEGER_INTERVAL',
'INTEGER',
'INFINITE',
'INDEXABLE',
'IDENTIFIED_CONTROLLER',
'IDENTIFIED',
'HIERARCHICAL',
'HEAP_PRIORITY_QUEUE',
'HASHABLE',
'HASH_TABLE_CURSOR',
'HASH_TABLE',
'GENERAL',
'GC_INFO',
'FUNCTION',
'FORMAT_INTEGER',
'FORMAT_DOUBLE',
'FIXED_TREE',
'FIXED_LIST',
'FIXED',
'FINITE',
'FILE_NAME',
'FILE',
'FIBONACCI',
'EXECUTION_ENVIRONMENT',
'EXCEPTIONS',
'EXCEP_CONST',
'DYNAMIC_TREE',
'DYNAMIC_LIST',
'DYNAMIC_CIRCULAR',
'DYNAMIC_CHAIN',
'DOUBLE_REF',
'DOUBLE_MATH',
'DOUBLE',
'DISPENSER',
'DIRECTORY_NAME',
'DIRECTORY',
'DECLARATOR',
'DEBUG_OUTPUT',
'CURSOR_TREE_ITERATOR',
'CURSOR_TREE',
'CURSOR_STRUCTURE',
'CURSOR',
'COUNTABLE_SEQUENCE',
'COUNTABLE',
'CONTAINER',
'CONSOLE',
'CONDITION_VARIABLE',
'COMPARABLE_STRUCT',
'COMPARABLE_SET',
'COMPARABLE',
'COMPACT_TREE_CURSOR',
'COMPACT_CURSOR_TREE',
'COLLECTION',
'CIRCULAR_CURSOR',
'CIRCULAR',
'CHARACTER_REF',
'CHARACTER',
'CHAIN',
'CELL',
'BOX',
'BOUNDED_STACK',
'BOUNDED_QUEUE',
'BOUNDED',
'BOOLEAN_REF',
'BOOLEAN',
'BOOL_STRING',
'BIT_REF',
'BINARY_TREE',
'BINARY_SEARCH_TREE_SET',
'BINARY_SEARCH_TREE',
'BILINEAR',
'BI_LINKABLE',
'BASIC_ROUTINES',
'BAG',
'ASCII',
'ARRAYED_TREE',
'ARRAYED_STACK',
'ARRAYED_QUEUE',
'ARRAYED_LIST_CURSOR',
'ARRAYED_LIST',
'ARRAYED_CIRCULAR',
'ARRAY2',
'ARRAY',
'ARGUMENTS',
'ANY',
'ACTIVE'
),
5 => array(
'yes',
'visible',
'trace',
'system',
'root',
'profile',
'override_cluster',
'object',
'no',
'multithreaded',
'msil_generation_type',
'line_generation',
'library',
'inlining_size',
'inlining',
'include_path',
'il_verifiable',
'exclude',
'exception_trace',
'dynamic_runtime',
'dotnet_naming_convention',
'disabled_debug',
'default',
'debug',
'dead_code_removal',
'console_application',
'cluster',
'cls_compliant',
'check_vape',
'assertion',
'array_optimization',
'all',
'address_expression'
),
),
'SYMBOLS' => array(
'+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', '|', ':',
'(', ')', '{', '}', '[', ']', '#'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => true,
5 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0600FF; font-weight: bold;',
2 => 'color: #0600FF; font-weight: bold;',
3 => 'color: #800080;',
4 => 'color: #800000',
5 => 'color: #603000;'
),
'COMMENTS' => array(
1 => 'color: #008000; font-style: italic;',
'MULTI' => ''
),
'ESCAPE_CHAR' => array(
0 => 'color: #005070; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #FF0000;'
),
'STRINGS' => array(
0 => 'color: #0080A0;'
),
'NUMBERS' => array(
0 => 'color: #FF0000;'
),
'METHODS' => array(
1 => 'color: #000060;',
2 => 'color: #000050;'
),
'SYMBOLS' => array(
0 => 'color: #600000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => 'http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fdocs.eiffel.com%2Feiffelstudio%2Flibraries+{FNAMEL}&amp;btnI=I%27m+Feeling+Lucky',
5 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

222
Sources/geshi/email.php Normal file
View File

@ -0,0 +1,222 @@
<?php
/*************************************************************************************
* email.php
* ---------------
* Author: Benny Baumann (BenBE@geshi.org)
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2008/10/19
*
* Email (mbox \ eml \ RFC format) language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/19 (1.0.8.1)
* - First Release
*
* TODO (updated 2008/10/19)
* -------------------------
* * Better checks when a header field should be expected
* * Fix the bound checks for kw groups 2 and 3, as well as rx group 1
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'eMail (mbox)',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'HTTP', 'SMTP', 'ASMTP', 'ESMTP'
),
2 => array(
'Authentication-Results','Comment','Content-Description','Content-Type',
'Content-Disposition','Content-Transfer-Encoding','Delivered-To',
'Dkim-Signature','Domainkey-Signature','In-Reply-To','Message-Id',
'MIME-Version','OpenPGP','Received','Received-SPF','References',
'Reply-To', 'Resend-From','Resend-To','Return-Path','User-Agent'
),
3 => array(
'Date','From','Sender','Subject','To','CC'
),
4 => array(
'by', 'for', 'from', 'id', 'with'
)
),
'SYMBOLS' => array(
':', ';', '<', '>', '[', ']'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => false,
3 => false,
4 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000FF; font-weight: bold;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #800000; font-weight: bold;',
4 => 'font-weight: bold;',
),
'COMMENTS' => array(
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'SCRIPT' => array(
0 => 'color: #000040;',
),
'REGEXPS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #0000FF;',
3 => 'color: #008000;',
4 => 'color: #0000FF; font-weight: bold;',
5 => 'font-weight: bold;',
6 => 'color: #400080;'
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
// Non-Standard-Header
1 => array(
GESHI_SEARCH => "(?<=\A\x20|\n)x-[a-z0-9\-]*(?=\s*:|\s*<)",
GESHI_REPLACE => "\\0",
GESHI_MODIFIERS => "smi",
GESHI_BEFORE => "",
GESHI_AFTER => ""
),
//Email-Adresses or Mail-IDs
2 => array(
GESHI_SEARCH => "\b(?<!\\/)(?P<q>\"?)[\w\.\-]+\k<q>@(?!-)[\w\-]+(?<!-)(?:(?:\.(?!-)[\w\-]+(?<!-))*)?",
GESHI_REPLACE => "\\0",
GESHI_MODIFIERS => "mi",
GESHI_BEFORE => "",
GESHI_AFTER => ""
),
//Date values in RFC format
3 => array(
GESHI_SEARCH => "\b(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s+\d\d?\s+" .
"(?:Jan|Feb|Mar|apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+" .
"\d{4}\s+\d\d?:\d\d:\d\d\s+[+\-]\d{4}(?:\s+\(\w+\))?",
GESHI_REPLACE => "\\0",
GESHI_MODIFIERS => "mi",
GESHI_BEFORE => "",
GESHI_AFTER => ""
),
//IP addresses
4 => array(
GESHI_SEARCH => "(?<=\s)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=\s)|".
"(?<=\[)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=\])|".
"(?<==)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=<)|".
"(?<=\s)(?:[a-f\d]{1,4}\:)+(?:[a-f\d]{0,4})?(?:\:[a-f\d]{1,4})+(?=\s)|".
"(?<=\[)(?:[a-f\d]{1,4}\:)+(?:[a-f\d]{0,4})?(?:\:[a-f\d]{1,4})+(?=\])|".
"(?<==)(?:[a-f\d]{1,4}\:)+(?:[a-f\d]{0,4})?(?:\:[a-f\d]{1,4})+(?=<)|".
"(?<=\s)\:(?:\:[a-f\d]{1,4})+(?=\s)|".
"(?<=\[)\:(?:\:[a-f\d]{1,4})+(?=\])|".
"(?<==)\:(?:\:[a-f\d]{1,4})+(?=<)|".
"(?<=\s)(?:[a-f\d]{1,4}\:)+\:(?=\s)|".
"(?<=\[)(?:[a-f\d]{1,4}\:)+\:(?=\])|".
"(?<==)(?:[a-f\d]{1,4}\:)+\:(?=<)",
GESHI_REPLACE => "\\0",
GESHI_MODIFIERS => "i",
GESHI_BEFORE => "",
GESHI_AFTER => ""
),
//Field-Assignments
5 => array(
GESHI_SEARCH => "(?<=\s)[A-Z0-9\-\.]+(?==(?:$|\s$|[^\s=]))",
GESHI_REPLACE => "\\0",
GESHI_MODIFIERS => "mi",
GESHI_BEFORE => "",
GESHI_AFTER => ""
),
//MIME type
6 => array(
GESHI_SEARCH => "(?<=\s)(?:audio|application|image|multipart|text|".
"video|x-[a-z0-9\-]+)\/[a-z0-9][a-z0-9\-]*(?=\s|<|$)",
GESHI_REPLACE => "\\0",
GESHI_MODIFIERS => "m",
GESHI_BEFORE => "",
GESHI_AFTER => ""
)
),
'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
'SCRIPT_DELIMITERS' => array(
0 => "/(?P<start>^)[A-Za-z][a-zA-Z0-9\-]*\s*:\s*(?:.|(?=\n\s)\n)*(?P<end>$)/m"
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true,
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
2 => array(
'DISALLOWED_BEFORE' => '(?<=\A\x20|\n)',
'DISALLOWED_AFTER' => '(?=\s*:)',
),
3 => array(
'DISALLOWED_BEFORE' => '(?<=\A\x20|\n)',
'DISALLOWED_AFTER' => '(?=\s*:)',
),
4 => array(
'DISALLOWED_BEFORE' => '(?<=\s)',
'DISALLOWED_AFTER' => '(?=\s|\b)',
)
),
'ENABLE_FLAGS' => array(
'BRACKETS' => GESHI_NEVER,
'COMMENTS' => GESHI_NEVER,
'NUMBERS' => GESHI_NEVER
)
)
);
?>

154
Sources/geshi/epc.php Normal file
View File

@ -0,0 +1,154 @@
<?php
/*************************************************************************************
* epc.php
* --------
* Author: Thorsten Muehlfelder (muehlfelder@enertex.de)
* Copyright: (c) 2010 Enertex Bayern GmbH
* Release Version: 1.0.8.11
* Date Started: 2010/08/26
*
* Enerscript language file for GeSHi.
*
* CHANGES
* -------
* 2010/08/26 (1.0.8.10)
* - First Release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'EPC',
'COMMENT_SINGLE' => array('//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
//[Sections]
//1 => "/^\\[.*\\]/"
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(
0 => '"',
1 => '$'
),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'if', 'then', 'else', 'endif',
'and', 'or', 'xor', 'hysteresis'
),
2 => array(
'read', 'write', 'event',
'gettime', 'settime', 'getdate', 'setdate', 'gettimedate', 'settimedate',
'hour', 'minute', 'second', 'changehour', 'changeminute', 'changesecond',
'date', 'month', 'day', 'dayofweek', 'sun', 'azimuth', 'elevation',
'sunrisehour', 'sunriseminute', 'sunsethour', 'sunsetminute',
'wtime', 'htime', 'mtime', 'stime',
'cwtime', 'chtime', 'cmtime', 'cstime',
'delay', 'after', 'cycle',
'readflash', 'writeflash',
'abs', 'acos', 'asin', 'atan', 'cos', 'ceil', 'average', 'exp', 'floor',
'log', 'max', 'min', 'mod', 'pow', 'sqrt', 'sin', 'tan', 'change', 'convert',
'eval', 'systemstart', 'random', 'comobject', 'sleep', 'scene', 'storescene', 'callscene',
'find', 'stringcast', 'stringset', 'stringformat', 'split', 'size',
'readrs232'. 'sendrs232', 'address', 'readknx',
'readudp', 'sendudp', 'connecttcp', 'closetcp', 'readtcp', 'sendtcp',
'resolve', 'sendmail',
'button', 'webbutton', 'chart', 'webchart', 'webdisplay', 'getslider', 'pshifter', 'mpshifter',
'getpslider', 'mbutton', 'mbbutton', 'mchart', 'mpchart', 'mpbutton', 'pdisplay', 'pchart',
'pbutton', 'setslider', 'setpslider', 'slider', 'pslider', 'page', 'line', 'header',
'footer', 'none', 'plink', 'link', 'frame', 'dframe'
)
),
'SYMBOLS' => array(
0 => array(
'%', 'b01',
),
1 => array(
'+', '-', '==', '>=', '=<',
),
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #e63ec3;',
2 => 'color: #e63ec3;'
),
'COMMENTS' => array(
0 => 'color: #0000ff;'
//1 => 'color: #ffa500;'
),
'ESCAPE_CHAR' => array(
1 => 'color: #000099;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #8a0808;',
1 => 'color: #6e6e6e;'
),
'NUMBERS' => array(
0 => 'color: #0b610b;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #0b610b;',
1 => 'color: #e63ec3;'
),
'REGEXPS' => array(
1 => 'color: #0b610b;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
// Numbers, e.g. 255u08
1 => "[0-9]*[subf][0136][12468]"
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'COMMENTS' => array(
'DISALLOWED_BEFORE' => '$'
),
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![\.\-a-zA-Z0-9_\$\#])",
'DISALLOWED_AFTER' => "(?![\.\-a-zA-Z0-9_%=\\/])"
)
)
);
?>

441
Sources/geshi/erlang.php Normal file
View File

@ -0,0 +1,441 @@
<?php
/*************************************************************************************
* erlang.php
* --------
* Author: Benny Baumann (BenBE@geshi.org)
* Contributions:
* - Uwe Dauernheim (uwe@dauernheim.net)
* - Dan Forest-Barbier (dan@twisted.in)
* Copyright: (c) 2008 Uwe Dauernheim (http://www.kreisquadratur.de/)
* Release Version: 1.0.8.11
* Date Started: 2008-09-27
*
* Erlang language file for GeSHi.
*
* CHANGES
* -------
* 2009/05/02 (1.0.8.3)
* - Now using 'PARSER_CONTROL' instead of huge rexgexps, better and cleaner
*
* 2009/04/26 (1.0.8.3)
* - Only link to existing docs / Fixes
*
* 2008-09-28 (1.0.0.1)
* [!] Bug fixed with keyword module.
* [+] Added more function names
*
* 2008-09-27 (1.0.0)
* [ ] First Release
*
* TODO (updated 2008-09-27)
* -------------------------
* [!] Stop ';' from being transformed to '<SEMI>'
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array(
'LANG_NAME' => 'Erlang',
'COMMENT_SINGLE' => array(1 => '%'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'HARDQUOTE' => array("'", "'"),
'HARDESCAPE' => array("'", "\\"),
'HARDCHAR' => "\\",
'ESCAPE_CHAR' => '\\',
'NUMBERS' => GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
//Control flow keywrods
1 => array(
'after', 'andalso', 'begin', 'case', 'catch', 'end', 'fun', 'if',
'of', 'orelse', 'receive', 'try', 'when', 'query'
),
//Binary operators
2 => array(
'and', 'band', 'bnot', 'bor', 'bsl', 'bsr', 'bxor', 'div', 'not',
'or', 'rem', 'xor'
),
3 => array(
'abs', 'alive', 'apply', 'atom_to_list', 'binary_to_list',
'binary_to_term', 'concat_binary', 'date', 'disconnect_node',
'element', 'erase', 'exit', 'float', 'float_to_list', 'get',
'get_keys', 'group_leader', 'halt', 'hd', 'integer_to_list',
'is_alive', 'length', 'link', 'list_to_atom', 'list_to_binary',
'list_to_float', 'list_to_integer', 'list_to_pid', 'list_to_tuple',
'load_module', 'make_ref', 'monitor_node', 'node', 'nodes', 'now',
'open_port', 'pid_to_list', 'process_flag', 'process_info',
'process', 'put', 'register', 'registered', 'round', 'self',
'setelement', 'size', 'spawn', 'spawn_link', 'split_binary',
'statistics', 'term_to_binary', 'throw', 'time', 'tl', 'trunc',
'tuple_to_list', 'unlink', 'unregister', 'whereis'
),
// Built-In Functions
4 => array(
'atom', 'binary', 'constant', 'function', 'integer', 'is_atom',
'is_binary', 'is_constant', 'is_function', 'is_integer', 'is_list',
'is_number', 'is_pid', 'is_reference', 'is_record', 'list',
'number', 'pid', 'ports', 'port_close', 'port_info', 'reference'
),
// Erlang/OTP internal modules (scary one)
5 => array(
'alarm_handler', 'any', 'app', 'application', 'appmon', 'appup',
'array', 'asn1ct', 'asn1rt', 'auth', 'base64', 'beam_lib', 'c',
'calendar', 'code', 'common_test_app', 'compile', 'config',
'corba', 'corba_object', 'cosEventApp', 'CosEventChannelAdmin',
'CosEventChannelAdmin_ConsumerAdmin',
'CosEventChannelAdmin_EventChannel',
'CosEventChannelAdmin_ProxyPullConsumer',
'CosEventChannelAdmin_ProxyPullSupplier',
'CosEventChannelAdmin_ProxyPushConsumer',
'CosEventChannelAdmin_ProxyPushSupplier',
'CosEventChannelAdmin_SupplierAdmin', 'CosEventDomainAdmin',
'CosEventDomainAdmin_EventDomain',
'CosEventDomainAdmin_EventDomainFactory',
'cosEventDomainApp', 'CosFileTransfer_Directory',
'CosFileTransfer_File', 'CosFileTransfer_FileIterator',
'CosFileTransfer_FileTransferSession',
'CosFileTransfer_VirtualFileSystem',
'cosFileTransferApp', 'CosNaming', 'CosNaming_BindingIterator',
'CosNaming_NamingContext', 'CosNaming_NamingContextExt',
'CosNotification', 'CosNotification_AdminPropertiesAdmin',
'CosNotification_QoSAdmin', 'cosNotificationApp',
'CosNotifyChannelAdmin_ConsumerAdmin',
'CosNotifyChannelAdmin_EventChannel',
'CosNotifyChannelAdmin_EventChannelFactory',
'CosNotifyChannelAdmin_ProxyConsumer',
'CosNotifyChannelAdmin_ProxyPullConsumer',
'CosNotifyChannelAdmin_ProxyPullSupplier',
'CosNotifyChannelAdmin_ProxyPushConsumer',
'CosNotifyChannelAdmin_ProxyPushSupplier',
'CosNotifyChannelAdmin_ProxySupplier',
'CosNotifyChannelAdmin_SequenceProxyPullConsumer',
'CosNotifyChannelAdmin_SequenceProxyPullSupplier',
'CosNotifyChannelAdmin_SequenceProxyPushConsumer',
'CosNotifyChannelAdmin_SequenceProxyPushSupplier',
'CosNotifyChannelAdmin_StructuredProxyPullConsumer',
'CosNotifyChannelAdmin_StructuredProxyPullSupplier',
'CosNotifyChannelAdmin_StructuredProxyPushConsumer',
'CosNotifyChannelAdmin_StructuredProxyPushSupplier',
'CosNotifyChannelAdmin_SupplierAdmin',
'CosNotifyComm_NotifyPublish', 'CosNotifyComm_NotifySubscribe',
'CosNotifyFilter_Filter', 'CosNotifyFilter_FilterAdmin',
'CosNotifyFilter_FilterFactory', 'CosNotifyFilter_MappingFilter',
'cosProperty', 'CosPropertyService_PropertiesIterator',
'CosPropertyService_PropertyNamesIterator',
'CosPropertyService_PropertySet',
'CosPropertyService_PropertySetDef',
'CosPropertyService_PropertySetDefFactory',
'CosPropertyService_PropertySetFactory', 'cosTime',
'CosTime_TimeService', 'CosTime_TIO', 'CosTime_UTO',
'CosTimerEvent_TimerEventHandler',
'CosTimerEvent_TimerEventService', 'cosTransactions',
'CosTransactions_Control', 'CosTransactions_Coordinator',
'CosTransactions_RecoveryCoordinator', 'CosTransactions_Resource',
'CosTransactions_SubtransactionAwareResource',
'CosTransactions_Terminator', 'CosTransactions_TransactionFactory',
'cover', 'cprof', 'cpu_sup', 'crashdump', 'crypto', 'crypto_app',
'ct', 'ct_cover', 'ct_ftp', 'ct_master', 'ct_rpc', 'ct_snmp',
'ct_ssh', 'ct_telnet', 'dbg', 'debugger', 'dets', 'dialyzer',
'dict', 'digraph', 'digraph_utils', 'disk_log', 'disksup',
'docb_gen', 'docb_transform', 'docb_xml_check', 'docbuilder_app',
'driver_entry', 'edoc', 'edoc_doclet', 'edoc_extract',
'edoc_layout', 'edoc_lib', 'edoc_run', 'egd', 'ei', 'ei_connect',
'epmd', 'epp', 'epp_dodger', 'eprof', 'erl', 'erl_boot_server',
'erl_call', 'erl_comment_scan', 'erl_connect', 'erl_ddll',
'erl_driver', 'erl_error', 'erl_eterm', 'erl_eval',
'erl_expand_records', 'erl_format', 'erl_global', 'erl_id_trans',
'erl_internal', 'erl_lint', 'erl_malloc', 'erl_marshal',
'erl_parse', 'erl_pp', 'erl_prettypr', 'erl_prim_loader',
'erl_prim_loader_stub', 'erl_recomment', 'erl_scan',
'erl_set_memory_block', 'erl_syntax', 'erl_syntax_lib', 'erl_tar',
'erl_tidy', 'erlang', 'erlang_mode', 'erlang_stub', 'erlc',
'erlsrv', 'error_handler', 'error_logger', 'erts_alloc',
'erts_alloc_config', 'escript', 'et', 'et_collector',
'et_selector', 'et_viewer', 'etop', 'ets', 'eunit', 'file',
'file_sorter', 'filelib', 'filename', 'fixed', 'fprof', 'ftp',
'gb_sets', 'gb_trees', 'gen_event', 'gen_fsm', 'gen_sctp',
'gen_server', 'gen_tcp', 'gen_udp', 'gl', 'global', 'global_group',
'glu', 'gs', 'heart', 'http', 'httpd', 'httpd_conf',
'httpd_socket', 'httpd_util', 'i', 'ic', 'ic_c_protocol',
'ic_clib', 'igor', 'inet', 'inets', 'init', 'init_stub',
'instrument', 'int', 'interceptors', 'inviso', 'inviso_as_lib',
'inviso_lfm', 'inviso_lfm_tpfreader', 'inviso_rt',
'inviso_rt_meta', 'io', 'io_lib', 'kernel_app', 'lib', 'lists',
'lname', 'lname_component', 'log_mf_h', 'make', 'math', 'megaco',
'megaco_codec_meas', 'megaco_codec_transform',
'megaco_edist_compress', 'megaco_encoder', 'megaco_flex_scanner',
'megaco_tcp', 'megaco_transport', 'megaco_udp', 'megaco_user',
'memsup', 'mnesia', 'mnesia_frag_hash', 'mnesia_registry',
'mod_alias', 'mod_auth', 'mod_esi', 'mod_security',
'Module_Interface', 'ms_transform', 'net_adm', 'net_kernel',
'new_ssl', 'nteventlog', 'observer_app', 'odbc', 'orber',
'orber_acl', 'orber_diagnostics', 'orber_ifr', 'orber_tc',
'orddict', 'ordsets', 'os', 'os_mon', 'os_mon_mib', 'os_sup',
'otp_mib', 'overload', 'packages', 'percept', 'percept_profile',
'pg', 'pg2', 'pman', 'pool', 'prettypr', 'proc_lib', 'proplists',
'public_key', 'qlc', 'queue', 'random', 'rb', 're', 'regexp',
'registry', 'rel', 'release_handler', 'reltool', 'relup', 'rpc',
'run_erl', 'run_test', 'runtime_tools_app', 'sasl_app', 'script',
'seq_trace', 'sets', 'shell', 'shell_default', 'slave', 'snmp',
'snmp_app', 'snmp_community_mib', 'snmp_framework_mib',
'snmp_generic', 'snmp_index', 'snmp_notification_mib', 'snmp_pdus',
'snmp_standard_mib', 'snmp_target_mib', 'snmp_user_based_sm_mib',
'snmp_view_based_acm_mib', 'snmpa', 'snmpa_conf', 'snmpa_error',
'snmpa_error_io', 'snmpa_error_logger', 'snmpa_error_report',
'snmpa_local_db', 'snmpa_mpd', 'snmpa_network_interface',
'snmpa_network_interface_filter',
'snmpa_notification_delivery_info_receiver',
'snmpa_notification_filter', 'snmpa_supervisor', 'snmpc', 'snmpm',
'snmpm_conf', 'snmpm_mpd', 'snmpm_network_interface', 'snmpm_user',
'sofs', 'ssh', 'ssh_channel', 'ssh_connection', 'ssh_sftp',
'ssh_sftpd', 'ssl', 'ssl_app', 'ssl_pkix', 'start', 'start_erl',
'start_webtool', 'stdlib_app', 'string', 'supervisor',
'supervisor_bridge', 'sys', 'systools', 'tags', 'test_server',
'test_server_app', 'test_server_ctrl', 'tftp', 'timer', 'toolbar',
'ttb', 'tv', 'unicode', 'unix_telnet', 'user', 'webtool', 'werl',
'win32reg', 'wrap_log_reader', 'wx', 'wx_misc', 'wx_object',
'wxAcceleratorEntry', 'wxAcceleratorTable', 'wxArtProvider',
'wxAuiDockArt', 'wxAuiManager', 'wxAuiNotebook', 'wxAuiPaneInfo',
'wxAuiTabArt', 'wxBitmap', 'wxBitmapButton', 'wxBitmapDataObject',
'wxBoxSizer', 'wxBrush', 'wxBufferedDC', 'wxBufferedPaintDC',
'wxButton', 'wxCalendarCtrl', 'wxCalendarDateAttr',
'wxCalendarEvent', 'wxCaret', 'wxCheckBox', 'wxCheckListBox',
'wxChildFocusEvent', 'wxChoice', 'wxClientDC', 'wxClipboard',
'wxCloseEvent', 'wxColourData', 'wxColourDialog',
'wxColourPickerCtrl', 'wxColourPickerEvent', 'wxComboBox',
'wxCommandEvent', 'wxContextMenuEvent', 'wxControl',
'wxControlWithItems', 'wxCursor', 'wxDataObject', 'wxDateEvent',
'wxDatePickerCtrl', 'wxDC', 'wxDialog', 'wxDirDialog',
'wxDirPickerCtrl', 'wxDisplayChangedEvent', 'wxEraseEvent',
'wxEvent', 'wxEvtHandler', 'wxFileDataObject', 'wxFileDialog',
'wxFileDirPickerEvent', 'wxFilePickerCtrl', 'wxFindReplaceData',
'wxFindReplaceDialog', 'wxFlexGridSizer', 'wxFocusEvent', 'wxFont',
'wxFontData', 'wxFontDialog', 'wxFontPickerCtrl',
'wxFontPickerEvent', 'wxFrame', 'wxGauge', 'wxGBSizerItem',
'wxGenericDirCtrl', 'wxGLCanvas', 'wxGraphicsBrush',
'wxGraphicsContext', 'wxGraphicsFont', 'wxGraphicsMatrix',
'wxGraphicsObject', 'wxGraphicsPath', 'wxGraphicsPen',
'wxGraphicsRenderer', 'wxGrid', 'wxGridBagSizer', 'wxGridCellAttr',
'wxGridCellEditor', 'wxGridCellRenderer', 'wxGridEvent',
'wxGridSizer', 'wxHelpEvent', 'wxHtmlEasyPrinting', 'wxIcon',
'wxIconBundle', 'wxIconizeEvent', 'wxIdleEvent', 'wxImage',
'wxImageList', 'wxJoystickEvent', 'wxKeyEvent',
'wxLayoutAlgorithm', 'wxListBox', 'wxListCtrl', 'wxListEvent',
'wxListItem', 'wxListView', 'wxMask', 'wxMaximizeEvent',
'wxMDIChildFrame', 'wxMDIClientWindow', 'wxMDIParentFrame',
'wxMemoryDC', 'wxMenu', 'wxMenuBar', 'wxMenuEvent', 'wxMenuItem',
'wxMessageDialog', 'wxMiniFrame', 'wxMirrorDC',
'wxMouseCaptureChangedEvent', 'wxMouseEvent', 'wxMoveEvent',
'wxMultiChoiceDialog', 'wxNavigationKeyEvent', 'wxNcPaintEvent',
'wxNotebook', 'wxNotebookEvent', 'wxNotifyEvent',
'wxPageSetupDialog', 'wxPageSetupDialogData', 'wxPaintDC',
'wxPaintEvent', 'wxPalette', 'wxPaletteChangedEvent', 'wxPanel',
'wxPasswordEntryDialog', 'wxPen', 'wxPickerBase', 'wxPostScriptDC',
'wxPreviewCanvas', 'wxPreviewControlBar', 'wxPreviewFrame',
'wxPrintData', 'wxPrintDialog', 'wxPrintDialogData', 'wxPrinter',
'wxPrintout', 'wxPrintPreview', 'wxProgressDialog',
'wxQueryNewPaletteEvent', 'wxRadioBox', 'wxRadioButton',
'wxRegion', 'wxSashEvent', 'wxSashLayoutWindow', 'wxSashWindow',
'wxScreenDC', 'wxScrollBar', 'wxScrolledWindow', 'wxScrollEvent',
'wxScrollWinEvent', 'wxSetCursorEvent', 'wxShowEvent',
'wxSingleChoiceDialog', 'wxSizeEvent', 'wxSizer', 'wxSizerFlags',
'wxSizerItem', 'wxSlider', 'wxSpinButton', 'wxSpinCtrl',
'wxSpinEvent', 'wxSplashScreen', 'wxSplitterEvent',
'wxSplitterWindow', 'wxStaticBitmap', 'wxStaticBox',
'wxStaticBoxSizer', 'wxStaticLine', 'wxStaticText', 'wxStatusBar',
'wxStdDialogButtonSizer', 'wxStyledTextCtrl', 'wxStyledTextEvent',
'wxSysColourChangedEvent', 'wxTextAttr', 'wxTextCtrl',
'wxTextDataObject', 'wxTextEntryDialog', 'wxToggleButton',
'wxToolBar', 'wxToolTip', 'wxTopLevelWindow', 'wxTreeCtrl',
'wxTreeEvent', 'wxUpdateUIEvent', 'wxWindow', 'wxWindowCreateEvent',
'wxWindowDC', 'wxWindowDestroyEvent', 'wxXmlResource', 'xmerl',
'xmerl_eventp', 'xmerl_scan', 'xmerl_xpath', 'xmerl_xs',
'xmerl_xsd', 'xref', 'yecc', 'zip', 'zlib', 'zlib_stub'
),
// Binary modifiers
6 => array(
'big', 'binary', 'float', 'integer', 'little', 'signed', 'unit', 'unsigned'
)
),
'SYMBOLS' => array(
0 => array('(', ')', '[', ']', '{', '}'),
1 => array('->', ',', ';', '.'),
2 => array('<<', '>>'),
3 => array('=', '||', '-', '+', '*', '/', '++', '--', '!', '<', '>', '>=',
'=<', '==', '/=', '=:=', '=/=')
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #186895;',
2 => 'color: #014ea4;',
3 => 'color: #fa6fff;',
4 => 'color: #fa6fff;',
5 => 'color: #ff4e18;',
6 => 'color: #9d4f37;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
'MULTI' => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
'HARD' => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #109ab8;'
),
'STRINGS' => array(
0 => 'color: #ff7800;'
),
'NUMBERS' => array(
0 => 'color: #ff9600;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #004866;',
1 => 'color: #6bb810;',
2 => 'color: #ee3800;',
3 => 'color: #014ea4;'
),
'REGEXPS' => array(
0 => 'color: #6941fd;',
1 => 'color: #d400ed;',
2 => 'color: #5400b3;',
3 => 'color: #ff3c00;',
4 => 'color: #6941fd;',
5 => 'color: #45b3e6;',
6 => 'color: #ff9600;',
7 => 'color: #d400ed;',
8 => 'color: #ff9600;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => 'http://erlang.org/doc/man/{FNAME}.html',
6 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '-&gt;',
2 => ':'
),
'REGEXPS' => array(
//<2F>Macro definitions
0 => array(
GESHI_SEARCH => '(-define\s*\()([a-zA-Z0-9_]+)(\(|,)',
GESHI_REPLACE => '\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\1',
GESHI_AFTER => '\3'
),
// Record definitions
1 => array(
GESHI_SEARCH => '(-record\s*\()([a-zA-Z0-9_]+)(,)',
GESHI_REPLACE => '\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\1',
GESHI_AFTER => '\3'
),
// Precompiler directives
2 => array(
GESHI_SEARCH => '(-)([a-z][a-zA-Z0-9_]*)(\()',
GESHI_REPLACE => '\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\1',
GESHI_AFTER => '\3'
),
// Functions
3 => array(
GESHI_SEARCH => '([a-z]\w*|\'\w*\')(\s*\()',
GESHI_REPLACE => '\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => '\2'
),
// Macros
4 => array(
GESHI_SEARCH => '(\?)([a-zA-Z0-9_]+)',
GESHI_REPLACE => '\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\1',
GESHI_AFTER => ''
),
// Variables - With hack to avoid interfering wish GeSHi internals
5 => array(
GESHI_SEARCH => '([([{,<+*-\/=\s!]|&lt;)(?!(?:PIPE|SEMI|DOT|NUM|REG3XP\d*)\W)([A-Z_]\w*)(?!\w)',
GESHI_REPLACE => '\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\1',
GESHI_AFTER => ''
),
// ASCII<49>codes
6 => '(\$[a-zA-Z0-9_])',
// Records
7 => array(
GESHI_SEARCH => '(#)([a-z][a-zA-Z0-9_]*)(\.|\{)',
GESHI_REPLACE => '\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\1',
GESHI_AFTER => '\3'
),
// Numbers with a different radix
8 => '(?<=>)(#[a-zA-Z0-9]*)'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array(),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
3 => array(
'DISALLOWED_BEFORE' => '(?<![\w])',
'DISALLOWED_AFTER' => ''//'(?=\s*\()'
),
5 => array(
'DISALLOWED_BEFORE' => '(?<=\'|)',
'DISALLOWED_AFTER' => '(?=(\'|):)'
),
6 => array(
'DISALLOWED_BEFORE' => '(?<=\/|-)',
'DISALLOWED_AFTER' => ''
)
)
),
);
?>

140
Sources/geshi/euphoria.php Normal file
View File

@ -0,0 +1,140 @@
<?php
/*************************************************************************************
* euphoria.php
* ---------------------------------
* Author: Nicholas Koceja (nerketur@hotmail.com)
* Copyright: (c) 2010 Nicholas Koceja
* Release Version: 1.0.8.11
* Date Started: 11/24/2010
*
* Euphoria language file for GeSHi.
*
* Author's note: The colors are based off of the Euphoria Editor (ed.ex) colors.
* Also, I added comments in places so I could remember a few things about Euphoria.
*
*
* CHANGES
* -------
* <date-of-release> (1.0.8.9)
* - First Release
*
* TODO (updated <date-of-release>)
* -------------------------
* seperate the funtions from the procedures, and have a slight color change for each.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Euphoria',
'COMMENT_SINGLE' => array(1 => '--'),
'COMMENT_MULTI' => array(), //Euphoria doesn't support multi-line comments
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array( // keywords
'and', 'by', 'constant', 'do', 'else', 'elsif', 'end', 'exit',
'for', 'function', 'global', 'if', 'include', 'not', 'or',
'procedure', 'return', 'then', 'to', 'type', 'while', 'with',
'without', 'xor'
),
2 => array( // built-ins
'abort', 'and_bits', 'append', 'arctan', 'atom', 'c_func', 'call',
'c_proc', 'call_func', 'call_proc', 'clear_screen', 'close', 'compare',
'command_line', 'cos', 'date', 'equal', 'find', 'find_from', 'floor',
'getc', 'getenv', 'gets', 'get_key', 'get_pixel', 'integer', 'length',
'log', 'machine_func', 'machine_proc', 'match', 'match_from',
'mem_copy', 'mem_set', 'not_bits', 'object', 'open', 'or_bits', 'peek',
'peek4s', 'peek4u', 'pixel', 'platform', 'poke', 'poke4', 'position',
'power', 'prepend', 'print', 'printf', 'profile', 'puts', 'rand',
'remainder', 'repeat', 'routine_id', 'sequence', 'sin', 'sprintf',
'sqrt', 'system', 'system_exec', 'tan', 'task_clock_stop',
'task_clock_start', 'task_create', 'task_list', 'task_schedule',
'task_self', 'task_status', 'task_suspend', 'task_yield', 'time',
'trace', 'xor_bits'
),
),
'SYMBOLS' => array(
0 => array(
'(', ')', '{', '}', '[', ']'
),
1 => array(
'+', '-', '*', '/', '=', '&', '^'
),
2 => array(
'&', '?', ','
)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000ff; font-weight: bold;', // keywords
2 => 'color: #cc33ff; font-weight: bold;', // builtins
),
'COMMENTS' => array(
1 => 'color: #ff0000; font-style: italic;',
'MULTI' => '' // doesn't exist
),
'ESCAPE_CHAR' => array(
0 => 'color: #009900; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #999900; font-weight: bold;'
),
'STRINGS' => array(
0 => 'color: #00cc00;'
),
'NUMBERS' => array(
0 => 'color: #cc33cc; font-style: italic'
),
'METHODS' => array( // Doesn't exist in Euphoria. Everything is a function =)
0 => ''
),
'SYMBOLS' => array(
0 => 'color: #999900;', // brackets
1 => 'color: #333333;', // operators
2 => 'color: #333333; font-style: bold' // print+concat
),
'REGEXPS' => array(
),
'SCRIPT' => array( // Never included in scripts.
)
),
'REGEXPS' => array(
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

151
Sources/geshi/f1.php Normal file
View File

@ -0,0 +1,151 @@
<?php
/*************************************************************************************
* f1.php
* -------
* Author: Juro Bystricky (juro@f1compiler.com)
* Copyright: K2 Software Corp.
* Release Version: 1.0.8.11
* Date Started: 2010/07/06
*
* Formula One language file for GeSHi.
*
* CHANGES
* -------
* 2010/07/06 (1.0.8.9)
* - First Release
*
* TODO
* -------------------------
* - Add more RTL functions with URLs
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array(
'LANG_NAME' => 'Formula One',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('{' => '}'),
'COMMENT_REGEXP' => array(
//Nested Comments
2 => "/(\{(?:\{.*\}|[^\{])*\})/m"
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'",'"'),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
//Simple Single Char Escapes
1 => "#\\\\[\\\\nrt\'\"?\n]#i",
//Hexadecimal Char Specs (Utf16 codes, Unicode versions only)
2 => "#\\\\u[\da-fA-F]{4}#",
),
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE |
GESHI_NUMBER_BIN_PREFIX_0B |
GESHI_NUMBER_OCT_PREFIX_0O |
GESHI_NUMBER_HEX_PREFIX |
GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
1 => array(
'pred','proc','subr','else','elsif','iff','if','then','false','true',
'case','of','use','local','mod','end','list','file','all','one','max','min','rel',
'external','Nil','_stdcall','_cdecl','_addressof','_pred','_file','_line'
),
2 => array(
'Ascii','Bin','I','L','P','R','S','U'
),
3 => array(
'Append','in','Dupl','Len','Print','_AllDifferent','_AllAscending',
'_AllDescending','_Ascending','_Descending'
)
),
'SYMBOLS' => array(
0 => array('(', ')', '[', ']'),
1 => array('<', '>','='),
2 => array('+', '-', '*', '/'),
3 => array('&', '|'),
4 => array(':', ';')
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0000ff;',
2 => 'color: #000080;',
3 => 'color: #000080;',
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'COMMENTS' => array(
1 => 'color: #008000; font-style: italic;',
2 => 'color: #008000; font-style: italic;',
'MULTI' => 'color: #008000; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
1 => 'color: #000099; font-weight: bold;',
2 => 'color: #009999; font-weight: bold;',
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #800000;'
),
'METHODS' => array(
1 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #000000;',
1 => 'color: #000000;',
2 => 'color: #000000;',
3 => 'color: #000000;',
4 => 'color: #000000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => 'http://www.f1compiler.com/f1helponline/f1_runtime_library.html#{FNAME}'
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4
);
?>

218
Sources/geshi/falcon.php Normal file
View File

@ -0,0 +1,218 @@
<?php
/*************************************************************************************
* falcon.php
* ---------------------------------
* Author: billykater (billykater+geshi@gmail.com)
* Copyright: (c) 2010 billykater (http://falconpl.org/)
* Release Version: 1.0.8.11
* Date Started: 2010/06/07
*
* Falcon language file for GeSHi.
*
* CHANGES
* -------
* <2010/8/1> (1.0.8.10)
* - First Release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* ************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Falcon',
'COMMENT_SINGLE' => array( 1 => '//' ),
'COMMENT_MULTI' => array( '/*' => '*/' ),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array( "'", '"' ),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'break','case','catch','class','const','continue','def','default',
'dropping','elif','else','end','enum','for','forfirst','forlast',
'formiddle','from','function','global','if','init','innerfunc',
'launch','loop','object','raise','return','select','state','static',
'switch','try','while'
),
2 => array(
'false','nil','true',
),
3 => array(
'and','as','eq','fself','in','not','notin','or','provides','self','to'
),
4 => array(
'directive','export','import','load','macro'
),
5 => array(
'ArrayType','BooleanType','ClassMethodType','ClassType','DictionaryType',
'FunctionType','MemBufType','MethodType','NilType','NumericType','ObjectType',
'RangeType','StringType','LBindType'
),
6 => array(
"CurrentTime","IOStream","InputStream","MemBufFromPtr","OutputStream",
"PageDict","ParseRFC2822","abs","acos","all",
"allp","any","anyp","argd","argv",
"arrayAdd","arrayBuffer","arrayCompact","arrayDel","arrayDelAll",
"arrayFill","arrayFind","arrayHead","arrayIns","arrayMerge",
"arrayNM","arrayRemove","arrayResize","arrayScan","arraySort",
"arrayTail","asin","assert","atan","atan2",
"attributes","baseClass","beginCritical","bless","brigade",
"broadcast","cascade","ceil","choice","chr",
"className","clone","combinations","compare","consume",
"cos","deg2rad","deoob","derivedFrom","describe",
"deserialize","dictBack","dictBest","dictClear","dictFill",
"dictFind","dictFront","dictGet","dictKeys","dictMerge",
"dictRemove","dictSet","dictValues","dirChange","dirCurrent",
"dirMake","dirMakeLink","dirReadLink","dirRemove","dolist",
"endCritical","epoch","eval","exit","exp",
"factorial","fileChgroup","fileChmod","fileChown","fileCopy",
"fileExt","fileMove","fileName","fileNameMerge","filePath",
"fileRemove","fileType","fileUnit","filter","fint",
"firstOf","floop","floor","fract","getAssert",
"getEnviron","getProperty","getSlot","getSystemEncoding","getenv",
"iff","include","input","inspect","int",
"isBound","isCallable","isoob","lbind","len",
"let","lit","log","map","max",
"metaclass","min","numeric","oob","ord",
"paramCount","paramIsRef","paramSet","parameter","passvp",
"permutations","pow","print","printl","properties",
"rad2deg","random","randomChoice","randomDice","randomGrab",
"randomPick","randomSeed","randomWalk","readURI","reduce",
"retract","round","seconds","serialize","set",
"setProperty","setenv","sin","sleep","stdErr",
"stdErrRaw","stdIn","stdInRaw","stdOut","stdOutRaw",
"strBack","strBackFind","strBackTrim","strBuffer","strCmpIgnoreCase",
"strEndsWith","strEscape","strEsq","strFill","strFind",
"strFromMemBuf","strFront","strFrontTrim","strLower","strMerge",
"strReplace","strReplicate","strSplit","strSplitTrimmed","strStartsWith",
"strToMemBuf","strTrim","strUnescape","strUnesq","strUpper",
"strWildcardMatch","subscribe","systemErrorDescription","tan","times",
"toString","transcodeFrom","transcodeTo","typeOf","unsetenv",
"unsubscribe","valof","vmFalconPath","vmIsMain","vmModuleName",
"vmModuleVersionInfo","vmSearchPath","vmSystemType","vmVersionInfo","vmVersionName",
"writeURI","xmap","yield","yieldOut"
),
7 => array(
"AccessError","Array","BOM","Base64","Class",
"ClassMethod","CloneError","CmdlineParser","CodeError","Continuation",
"Dictionary","Directory","Error","FileStat","Format",
"Function","GarbagePointer","GenericError","Integer","InterruptedError",
"IoError","Iterator","LateBinding","List","MathError",
"MemoryBuffer","MessageError","Method","Numeric","Object",
"ParamError","ParseError","Path","Range","Semaphore",
"Sequence","Set","Stream","String","StringStream",
"SyntaxError","Table","TableError","TimeStamp","TimeZone",
"Tokenizer","TypeError","URI","VMSlot"
),
8 => array(
"args","scriptName","scriptPath"
),
9 => array(
"GC"
),
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => 'http://falconpl.org/project_docs/core/functions.html#typeOf',
6 => 'http://falconpl.org/project_docs/core/functions.html#{FNAME}',
7 => 'http://falconpl.org/project_docs/core/class_{FNAME}.html',
8 => 'http://falconpl.org/project_docs/core/globals.html#{FNAME}',
9 => 'http://falconpl.org/project_docs/core/object_{FNAME}.html)'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true,
9 => true
),
'SYMBOLS' => array(
'(',')','$','%','&','/','{','[',']','=','}','?','+','-','#','*','@',
'<','>','|',',',':',';','\\','^'
),
'REGEXPS' => array(
0 => array(
GESHI_SEARCH => '(\[)([a-zA-Z_]|\c{C})(?:[a-zA-Z0-9_]|\p{C})*(\])',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3',
),
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
0 => array( '<?' => '?>' )
),
'HIGHLIGHT_STRICT_BLOCK' => array(
0 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000080;font-weight:bold;',
2 => 'color: #800000;font-weight:bold;',
3 => 'color: #800000;font-weight:bold;',
4 => 'color: #000080;font-weight:bold;',
5 => 'color: #000000;font-weight:bold;',
6 => 'font-weight:bold;',
7 => 'font-weight:bold;',
8 => 'font-weight:bold;'
),
'COMMENTS' => array(
1 => 'color: #29B900;',
'MULTI' => 'color: #008080'
),
'STRINGS' => array(
0 => 'color: #800000'
),
'BRACKETS' => array(
0 => 'color: #000000'
),
'ESCAPE_CHAR' => array(
0 => 'color: #800000'
),
'NUMBERS' => array(
0 => 'color: #000000'
),
'METHODS' => array(
0 => 'color: #000000'
),
'SYMBOLS' => array(
0 => 'color: #8B0513'
),
'SCRIPT' => array(
0 => ''
),
'REGEXPS' => array(
0 => 'color: #FF00FF'
)
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
'.'
)
);
?>

327
Sources/geshi/fo.php Normal file
View File

@ -0,0 +1,327 @@
<?php
/*************************************************************************************
* fo.php
* --------
* Author: Tan-Vinh Nguyen (tvnguyen@web.de)
* Copyright: (c) 2009 Tan-Vinh Nguyen
* Release Version: 1.0.8.11
* Date Started: 2009/03/23
*
* fo language file for GeSHi.
*
* FO stands for "Flexible Oberflaechen" (Flexible Surfaces) and
* is part of the abas-ERP.
*
* CHANGES
* -------
* 2009/03/23 (1.0.0)
* - First Release
* Basic commands in German and English
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'FO (abas-ERP)',
'COMMENT_SINGLE' => array(1 => '..'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
//Control Flow
1 => array(
/* see http://www.abas.de/sub_de/kunden/help/hd/html/9.html */
/* fo keywords, part 1: control flow */
'.weiter', '.continue'
/* this language works with goto's only*/
),
//FO Keywords
2 => array(
/* fo keywords, part 2 */
'.fo', '.formel', '.formula',
'.zuweisen', '.assign',
'.fehler', '.error',
'.ende', '.end'
),
//Java Keywords
3 => array(
/* Java keywords, part 3: primitive data types */
'.art', '.type',
'integer', 'real', 'bool', 'text', 'datum', 'woche', 'termin', 'zeit',
'mehr', 'MEHR'
),
//Reserved words in fo literals
4 => array(
/* other reserved words in fo literals */
/* should be styled to look similar to numbers and Strings */
'false', 'null', 'true',
'OBJEKT',
'VORGANG', 'PROCESS',
'OFFEN', 'OPEN',
'ABORT',
'AN', 'ADDEDTO',
'AUF', 'NEW',
'BILDSCHIRM', 'TERMINAL',
'PC',
'MASKE', 'SCREEN',
'ZEILE', 'LINE'
),
// interpreter settings
5 => array (
'..!INTERPRETER', 'DEBUG'
),
// database commands
6 => array (
'.hole', '.hol', '.select',
'.lade', '.load',
'.aktion', '.action',
'.belegen', '.occupy',
'.bringe', '.rewrite',
'.dazu', '.add',
'.löschen', '.delete',
'.mache', '.make',
'.merke', '.reserve',
'.setze', '.set',
'SPERREN', 'LOCK',
'TEIL', 'PART',
'KEINESPERRE',
'AMASKE', 'ASCREEN',
'BETRIEB', 'WORK-ORDER',
'NUMERISCH', 'NUMERICAL',
'VORSCHLAG', 'SUGGESTION',
'OBLIGO', 'OUTSTANDING',
'LISTE', 'LIST',
'DRUCK', 'PRINT',
'ÜBERNAHME', 'TAGEOVER',
'ABLAGE', 'FILINGSYSTEM',
'BDE', 'PDC',
'BINDUNG', 'ALLOCATION',
'BUCHUNG', 'ENTRY',
'COLLI', 'SERIAL',
'DATEI', 'FILE',
'VERKAUF', 'SALES',
'EINKAUF', 'PURCHASING',
'EXEMPLAR', 'EXAMPLE',
'FERTIGUNG', 'PRODUCTION',
'FIFO',
'GRUPPE', 'GROUP',
'JAHR', 'YEAR',
'JOURNAL',
'KOPF', 'HEADER',
'KOSTEN',
'LIFO',
'LMENGE', 'SQUANTITY',
'LOHNFERTIGUNG', 'SUBCONTRACTING',
'LPLATZ', 'LOCATION',
'MBELEGUNG', 'MACHLOADING',
'MONAT', 'MONTH', 'MZ',
'NACHRICHT', 'MESSAGE',
'PLAN', 'TARGET',
'REGIONEN', 'REGIONS',
'SERVICEANFRAGE', 'SERVICEREQUEST',
'VERWENDUNG', 'APPLICATION',
'WEITER', 'CONTINUE',
'ABBRUCH', 'CANCEL',
'ABLAGEKENNZEICHEN', 'FILLINGCODE',
'ALLEIN', 'SINGLEUSER',
'AUFZAEHLTYP', 'ENUMERATION-TYPE',
'AUSGABE', 'OUTPUT',
'DEZPUNKT', 'DECPOINT'
),
// output settings
7 => array (
'.absatz', '.para',
'.blocksatz', '.justified',
'.flattersatz', '.unjustified',
'.format',
'.box',
'.drucken', '.print',
'.gedruckt', '.printed',
'.länge', '.length',
'.links', '.left',
'.rechts', '.right',
'.oben', '.up',
'.unten', '.down',
'.seite', '.page',
'.tabellensatz', '.tablerecord',
'.trenner', '.separator',
'ARCHIV'
),
// text commands
8 => array (
'.text',
'.atext',
'.println',
'.uebersetzen', '.translate'
),
// I/O commands
9 => array (
'.aus', '.ausgabe', '.output',
'.ein', '.eingabe', '.input',
'.datei', '.file',
'.lesen', '.read',
'.sortiere', '.sort',
'-ÖFFNEN', '-OPEN',
'-TEST',
'-LESEN', '-READ',
'VON', 'FROM'
),
//system
10 => array (
'.browser',
'.kommando', '.command',
'.system', '.dde',
'.editiere', '.edit',
'.hilfe', '.help',
'.kopieren', '.copy',
'.pc.clip',
'.pc.copy',
'.pc.dll',
'.pc.exec',
'.pc.open',
'DIAGNOSE', 'ERRORREPORT',
'DOPPELPUNKT', 'COLON',
'ERSETZUNG', 'REPLACEMENT',
'WARTEN', 'PARALLEL'
),
//fibu/accounting specific commands
11 => array (
'.budget',
'.chart',
'VKZ',
'KONTO', 'ACCOUNT',
'AUSZUG', 'STATEMENT',
'WAEHRUNG', 'CURRENCY',
'WAEHRUNGSKURS', 'EXCHANGERATE',
'AUSWAEHR', 'FORCURR',
'BUCHUNGSKREIS', 'SET OF BOOKS'
),
// efop - extended flexible surface
12 => array (
'.cursor',
'.farbe', '.colour',
'.fenster', '.window',
'.hinweis', '.note',
'.menue', '.menu',
'.schutz', '.protection',
'.zeigen', '.view',
'.zeile', '.line',
'VORDERGRUND', 'FOREGROUND',
'HINTERGRUND', 'BACKGROUND',
'SOFORT', 'IMMEDIATELY',
'AKTUALISIEREN', 'UPDATE',
'FENSTERSCHLIESSEN', 'CLOSEWINDOWS'
),
),
'SYMBOLS' => array(
0 => array('(', ')', '[', ']', '{', '}', '*', '&', '%', ';', '<', '>'),
1 => array('?', '!')
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
/* all fo keywords are case sensitive, don't have to but I like this type of coding */
1 => true, 2 => true, 3 => true, 4 => true,
5 => true, 6 => true, 7 => true, 8 => true, 9 => true,
10 => true, 11 => true, 12 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #006600; font-weight: bold;',
4 => 'color: #006600; font-weight: bold;',
5 => 'color: #003399; font-weight: bold;',
6 => 'color: #003399; font-weight: bold;',
7 => 'color: #003399; font-weight: bold;',
8 => 'color: #003399; font-weight: bold;',
9 => 'color: #003399; font-weight: bold;',
10 => 'color: #003399; font-weight: bold;',
11 => 'color: #003399; font-weight: bold;',
12 => 'color: #003399; font-weight: bold;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
//2 => 'color: #006699;',
'MULTI' => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #009900;'
),
'STRINGS' => array(
0 => 'color: #0000ff;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006633;',
2 => 'color: #006633;'
),
'SYMBOLS' => array(
0 => 'color: #339933;',
1 => 'color: #000000; font-weight: bold;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => '',
9 => '',
10 => '',
11 => '',
12 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

160
Sources/geshi/fortran.php Normal file
View File

@ -0,0 +1,160 @@
<?php
/*************************************************************************************
* fortran.php
* -----------
* Author: Cedric Arrabie (cedric.arrabie@univ-pau.fr)
* Copyright: (C) 2006 Cetric Arrabie
* Release Version: 1.0.8.11
* Date Started: 2006/04/22
*
* Fortran language file for GeSHi.
*
* CHANGES
* -------
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
* 2006/04/20 (1.0.0)
* - First Release
*
* TODO
* -------------------------
* - Get a list of inbuilt functions to add (and explore fortran more
* to complete this rather bare language file)
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME'=>'Fortran',
'COMMENT_SINGLE'=> array(1 =>'!',2=>'Cf2py'),
'COMMENT_MULTI'=> array(),
//Fortran Comments
'COMMENT_REGEXP' => array(1 => '/^C.*?$/mi'),
'CASE_KEYWORDS'=> GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS'=> array("'",'"'),
'ESCAPE_CHAR'=>'\\',
'KEYWORDS'=> array(
1 => array(
'allocate','block','call','case','contains','continue','cycle','deallocate',
'default','do','else','elseif','elsewhere','end','enddo','endif','endwhere',
'entry','exit','function','go','goto','if','interface','module','nullify','only',
'operator','procedure','program','recursive','return','select','stop',
'subroutine','then','to','where','while',
'access','action','advance','blank','blocksize','carriagecontrol',
'delim','direct','eor','err','exist','file','flen','fmt','form','formatted',
'iostat','name','named','nextrec','nml','number','opened','pad','position',
'readwrite','recl','sequential','status','unformatted','unit'
),
2 => array(
'.AND.','.EQ.','.EQV.','.GE.','.GT.','.LE.','.LT.','.NE.','.NEQV.','.NOT.',
'.OR.','.TRUE.','.FALSE.'
),
3 => array(
'allocatable','character','common','complex','data','dimension','double',
'equivalence','external','implicit','in','inout','integer','intent','intrinsic',
'kind','logical','namelist','none','optional','out','parameter','pointer',
'private','public','real','result','save','sequence','target','type','use'
),
4 => array(
'abs','achar','acos','adjustl','adjustr','aimag','aint','all','allocated',
'anint','any','asin','atan','atan2','bit_size','break','btest','carg',
'ceiling','char','cmplx','conjg','cos','cosh','cpu_time','count','cshift',
'date_and_time','dble','digits','dim','dot_product','dprod dvchk',
'eoshift','epsilon','error','exp','exponent','floor','flush','fraction',
'getcl','huge','iachar','iand','ibclr','ibits','ibset','ichar','ieor','index',
'int','intrup','invalop','ior','iostat_msg','ishft','ishftc','lbound',
'len','len_trim','lge','lgt','lle','llt','log','log10','matmul','max','maxexponent',
'maxloc','maxval','merge','min','minexponent','minloc','minval','mod','modulo',
'mvbits','nbreak','ndperr','ndpexc','nearest','nint','not','offset','ovefl',
'pack','precfill','precision','present','product','prompt','radix',
'random_number','random_seed','range','repeat','reshape','rrspacing',
'scale','scan','segment','selected_int_kind','selected_real_kind',
'set_exponent','shape','sign','sin','sinh','size','spacing','spread','sqrt',
'sum system','system_clock','tan','tanh','timer','tiny','transfer','transpose',
'trim','ubound','undfl','unpack','val','verify'
),
),
'SYMBOLS'=> array(
'(',')','{','}','[',']','=','+','-','*','/','!','%','^','&',':'
),
'CASE_SENSITIVE'=> array(
GESHI_COMMENTS => true,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES'=> array(
'KEYWORDS'=> array(
1 =>'color: #b1b100;',
2 =>'color: #000000; font-weight: bold;',
3 =>'color: #000066;',
4 =>'color: #993333;'
),
'COMMENTS'=> array(
1 =>'color: #666666; font-style: italic;',
2 =>'color: #339933;',
'MULTI'=>'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR'=> array(
0 =>'color: #000099; font-weight: bold;'
),
'BRACKETS'=> array(
0 =>'color: #009900;'
),
'STRINGS'=> array(
0 =>'color: #ff0000;'
),
'NUMBERS'=> array(
0 =>'color: #cc66cc;'
),
'METHODS'=> array(
1 =>'color: #202020;',
2 =>'color: #202020;'
),
'SYMBOLS'=> array(
0 =>'color: #339933;'
),
'REGEXPS'=> array(
),
'SCRIPT'=> array(
)
),
'URLS'=> array(
1 =>'',
2 =>'',
3 =>'',
4 =>''
),
'OOLANG'=> true,
'OBJECT_SPLITTERS'=> array(
1 =>'.',
2 =>'::'
),
'REGEXPS'=> array(
),
'STRICT_MODE_APPLIES'=> GESHI_NEVER,
'SCRIPT_DELIMITERS'=> array(
),
'HIGHLIGHT_STRICT_BLOCK'=> array(
)
);
?>

141
Sources/geshi/freebasic.php Normal file
View File

@ -0,0 +1,141 @@
<?php
/*************************************************************************************
* freebasic.php
* -------------
* Author: Roberto Rossi
* Copyright: (c) 2005 Roberto Rossi (http://rsoftware.altervista.org)
* Release Version: 1.0.8.11
* Date Started: 2005/08/19
*
* FreeBasic (http://www.freebasic.net/) language file for GeSHi.
*
* CHANGES
* -------
* 2005/08/19 (1.0.0)
* - First Release
*
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'FreeBasic',
'COMMENT_SINGLE' => array(1 => "'", 2 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
"append", "as", "asc", "asin", "asm", "atan2", "atn", "beep", "bin", "binary", "bit",
"bitreset", "bitset", "bload", "bsave", "byref", "byte", "byval", "call",
"callocate", "case", "cbyte", "cdbl", "cdecl", "chain", "chdir", "chr", "cint",
"circle", "clear", "clng", "clngint", "close", "cls", "color", "command",
"common", "cons", "const", "continue", "cos", "cshort", "csign", "csng",
"csrlin", "cubyte", "cuint", "culngint", "cunsg", "curdir", "cushort", "custom",
"cvd", "cvi", "cvl", "cvlongint", "cvs", "cvshort", "data", "date",
"deallocate", "declare", "defbyte", "defdbl", "defined", "defint", "deflng",
"deflngint", "defshort", "defsng", "defstr", "defubyte", "defuint",
"defulngint", "defushort", "dim", "dir", "do", "double", "draw", "dylibload",
"dylibsymbol", "else", "elseif", "end", "enum", "environ", 'environ$', "eof",
"eqv", "erase", "err", "error", "exec", "exepath", "exit", "exp", "export",
"extern", "field", "fix", "flip", "for", "fre", "freefile", "function", "get",
"getjoystick", "getkey", "getmouse", "gosub", "goto", "hex", "hibyte", "hiword",
"if", "iif", "imagecreate", "imagedestroy", "imp", "inkey", "inp", "input",
"instr", "int", "integer", "is", "kill", "lbound", "lcase", "left", "len",
"let", "lib", "line", "lobyte", "loc", "local", "locate", "lock", "lof", "log",
"long", "longint", "loop", "loword", "lset", "ltrim", "mid", "mkd", "mkdir",
"mki", "mkl", "mklongint", "mks", "mkshort", "mod", "multikey", "mutexcreate",
"mutexdestroy", "mutexlock", "mutexunlock", "name", "next", "not", "oct", "on",
"once", "open", "option", "or", "out", "output", "overload", "paint", "palette",
"pascal", "pcopy", "peek", "peeki", "peeks", "pipe", "pmap", "point", "pointer",
"poke", "pokei", "pokes", "pos", "preserve", "preset", "print", "private",
"procptr", "pset", "ptr", "public", "put", "random", "randomize", "read",
"reallocate", "redim", "rem", "reset", "restore", "resume",
"return", "rgb", "rgba", "right", "rmdir", "rnd", "rset", "rtrim", "run",
"sadd", "screen", "screencopy", "screeninfo", "screenlock", "screenptr",
"screenres", "screenset", "screensync", "screenunlock", "seek", "statement",
"selectcase", "setdate", "setenviron", "setmouse",
"settime", "sgn", "shared", "shell", "shl", "short", "shr", "sin", "single",
"sizeof", "sleep", "space", "spc", "sqr", "static", "stdcall", "step", "stop",
"str", "string", "strptr", "sub", "swap", "system", "tab", "tan",
"then", "threadcreate", "threadwait", "time", "timer", "to", "trans",
"trim", "type", "ubound", "ubyte", "ucase", "uinteger", "ulongint", "union",
"unlock", "unsigned", "until", "ushort", "using", "va_arg", "va_first",
"va_next", "val", "val64", "valint", "varptr", "view", "viewprint", "wait",
"wend", "while", "width", "window", "windowtitle", "with", "write", "xor",
"zstring", "explicit", "escape", "true", "false"
)
),
'SYMBOLS' => array(
'(', ')'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #808080;',
2 => 'color: #339933;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
0 => 'color: #66cc66;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

View File

@ -0,0 +1,168 @@
<?php
/*************************************************************************************
* freeswitch.php
* --------
* Author: James Rose (james.gs@stubbornroses.com)
* Copyright: (c) 2006 Christian Lescuyer http://xtian.goelette.info
* Release Version: 1.0.8.11n/a
* Date Started: 2011/11/18
*
* FreeSWITCH language file for GeSHi.
*
* This file is based on robots.php
*
* 2011/11/18 (1.0.0)
* - First Release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'FreeSWITCH',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(1 => "/^Comment:.*?$/m"),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
// 1 => array(
// 'Disallow', 'Request-rate', 'Robot-version',
// 'Sitemap', 'User-agent', 'Visit-time'
// )
),
'SYMBOLS' => array(
// ':'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false
),
//order is important. regexes will overwrite most things....
'STYLES' => array(
'KEYWORDS' => array(
// 1 => 'color: #FF0000; font-weight: bold;',//red
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
// 0 => 'color: #66cc66;'
),
'STRINGS' => array(
// 0 => 'color: #ff0000;'
),
'NUMBERS' => array(
// 0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
// 0 => 'color: #66cc66;'
),
'REGEXPS' => array(
0 => 'color: firebrick; font-weight: bold;',
1 => 'color: cornflowerblue; font-weight: bold;',
2 => 'color: goldenrod; font-weight: bold;',
3 => 'color: green; font-weight: bold;',
4 => 'color: dimgrey; font-style: italic;',
5 => 'color: green; font-weight: bold;',
6 => 'color: firebrick; font-weight: bold;',
7 => 'color: indigo; font-weight: italic;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
// 1 => 'http://www.robotstxt.org/wc/norobots.html'
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
0 => array(
GESHI_SEARCH => '(^.*ERROR.*)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => 'im',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
1 => array(
GESHI_SEARCH => '(^.*NOTICE.*)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => 'im',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
2 => array(
GESHI_SEARCH => '(^.*DEBUG.*)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
3 => array(
GESHI_SEARCH => '(^.*INFO.*|.*info\(.*|^Channel.*|^Caller.*|^variable.*)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
4 => array(
GESHI_SEARCH => '(^Dialplan.*)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => 'im',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
5 => array(
GESHI_SEARCH => '(Regex\ \(PASS\))',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
6 => array(
GESHI_SEARCH => '(Regex\ \(FAIL\))',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
7 => array(
GESHI_SEARCH => '(\d{7,15})',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => ''
)
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

213
Sources/geshi/fsharp.php Normal file
View File

@ -0,0 +1,213 @@
<?php
/*************************************************************************************
* fsharp.php
* ----------
* Author: julien ortin (jo_spam-divers@yahoo.fr)
* Copyright: (c) 2009 julien ortin
* Release Version: 1.0.8.11
* Date Started: 2009/09/20
*
* F# language file for GeSHi.
*
* CHANGES
* -------
* 2009/09/22 (1.0.1)
* - added rules for single char handling (generics ['a] vs char ['x'])
* - added symbols and keywords
* 2009/09/20 (1.0.0)
* - Initial release
*
* TODO
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array(
'LANG_NAME' => 'F#',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(3 => '/\(\*(?!\)).*?\*\)/s'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'HARDQUOTE' => array('@"', '"'),
'HARDESCAPE' => array('"'),
'HARDCHAR' => '"',
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
/* main F# keywords */
/* section 3.4 */
1 => array(
'abstract', 'and', 'as', 'assert', 'base', 'begin', 'class', 'default', 'delegate', 'do', 'done',
'downcast', 'downto', 'elif', 'else', 'end', 'exception', 'extern', 'false', 'finally', 'for',
'fun', 'function', 'if', 'in', 'inherit', 'inline', 'interface', 'internal', 'lazy', 'let',
'match', 'member', 'module', 'mutable', 'namespace', 'new', 'not', 'null', 'of', 'open', 'or',
'override', 'private', 'public', 'rec', 'return', 'sig', 'static', 'struct', 'then', 'to',
'true', 'try', 'type', 'upcast', 'use', 'val', 'void', 'when', 'while', 'with', 'yield',
'asr', 'land', 'lor', 'lsl', 'lsr', 'lxor', 'mod',
/* identifiers are reserved for future use by F# */
'atomic', 'break', 'checked', 'component', 'const', 'constraint', 'constructor',
'continue', 'eager', 'fixed', 'fori', 'functor', 'global', 'include', 'method', 'mixin',
'object', 'parallel', 'params', 'process', 'protected', 'pure', 'sealed', 'tailcall',
'trait', 'virtual', 'volatile',
/* take monads into account */
'let!', 'yield!'
),
/* define names of main libraries in F# Core, so we can link to it
* http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/manual/namespaces.html
*/
2 => array(
'Array', 'Array2D', 'Array3D', 'Array4D', 'ComparisonIdentity', 'HashIdentity', 'List',
'Map', 'Seq', 'SequenceExpressionHelpers', 'Set', 'CommonExtensions', 'Event',
'ExtraTopLevelOperators', 'LanguagePrimitives', 'NumericLiterals', 'Operators',
'OptimizedClosures', 'Option', 'String', 'NativePtr', 'Printf'
),
/* 17.2 & 17.3 */
3 => array(
'abs', 'acos', 'asin', 'atan', 'atan2', 'ceil', 'cos', 'cosh', 'exp',
'floor', 'log', 'log10', 'pown', 'round', 'sign', 'sin', 'sinh', 'sqrt',
'tan', 'tanh',
'ignore',
'fst', 'snd',
'stdin', 'stdout', 'stderr',
'KeyValue',
'max', 'min'
),
/* Pervasives Types & Overloaded Conversion Functions */
4 => array(
'bool', 'byref', 'byte', 'char', 'decimal', 'double', 'exn', 'float', 'float32',
'FuncConvert', 'ilsigptr', 'int', 'int16', 'int32', 'int64', 'int8',
'nativeint', 'nativeptr', 'obj', 'option', 'ref', 'sbyte', 'single', 'string', 'uint16',
'uint32', 'uint64', 'uint8', 'unativeint', 'unit',
'enum',
'async', 'seq', 'dict'
),
/* 17.2 Exceptions */
5 => array (
'failwith', 'invalidArg', 'raise', 'rethrow'
),
/* 3.3 Conditional compilation & 13.3 Compiler Directives + light / light off */
6 => array(
'(*IF-FSHARP', 'ENDIF-FSHARP*)', '(*F#', 'F#*)', '(*IF-OCAML', 'ENDIF-OCAML*)',
'#light',
'#if', '#else', '#endif', '#indent', '#nowarn', '#r', '#reference',
'#I', '#Include', '#load', '#time', '#help', '#q', '#quit',
),
/* 3.11 Pre-processor Declarations / Identifier Replacements */
7 => array(
'__SOURCE_DIRECTORY__', '__SOURCE_FILE__', '__LINE__'
),
/* 17.2 Object Transformation Operators */
8 => array(
'box', 'hash', 'sizeof', 'typeof', 'typedefof', 'unbox'
)
),
/* 17.2 basic operators + the yield and yield! arrows */
'SYMBOLS' => array(
1 => array('+', '-', '/', '*', '**', '%', '~-'),
2 => array('<', '<=', '>', '<=', '=', '<>'),
3 => array('<<<', '>>>', '^^^', '&&&', '|||', '~~~'),
4 => array('|>', '>>', '<|', '<<'),
5 => array('!', '->', '->>'),
6 => array('[',']','(',')','{','}', '[|', '|]', '(|', '|)'),
7 => array(':=', ';', ';;')
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true, /* keywords */
2 => true, /* modules */
3 => true, /* pervasives functions */
4 => true, /* types and overloaded conversion operators */
5 => true, /* exceptions */
6 => true, /* conditional compilation & compiler Directives */
7 => true, /* pre-processor declarations / identifier replacements */
8 => true /* object transformation operators */
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #06c; font-weight: bold;', /* nice blue */
2 => 'color: #06c; font-weight: bold;', /* nice blue */
3 => 'color: #06c; font-weight: bold;', /* nice blue */
4 => 'color: #06c; font-weight: bold;', /* nice blue */
5 => 'color: #06c; font-weight: bold;', /* nice blue */
6 => 'color: #06c; font-weight: bold;', /* nice blue */
7 => 'color: #06c; font-weight: bold;', /* nice blue */
8 => 'color: #06c; font-weight: bold;' /* nice blue */
),
'COMMENTS' => array(
'MULTI' => 'color: #5d478b; font-style: italic;', /* light purple */
1 => 'color: #5d478b; font-style: italic;',
2 => 'color: #5d478b; font-style: italic;', /* light purple */
3 => 'color: #5d478b; font-style: italic;' /* light purple */
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
0 => 'color: #6c6;'
),
'STRINGS' => array(
0 => 'color: #3cb371;' /* nice green */
),
'NUMBERS' => array(
0 => 'color: #c6c;' /* pink */
),
'METHODS' => array(
1 => 'color: #060;' /* dark green */
),
'REGEXPS' => array(
),
'SYMBOLS' => array(
0 => 'color: #a52a2a;' /* maroon */
),
'SCRIPT' => array(
)
),
'URLS' => array(
/* some of keywords are Pervasives functions (land, lxor, asr, ...) */
1 => '',
2 => 'http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/manual/namespaces.html',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])",
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_<\|%\\-])"
)
)
);
?>

214
Sources/geshi/gambas.php Normal file
View File

@ -0,0 +1,214 @@
<?php
/*************************************************************************************
* gambas.php
* ---------
* Author: Jesus Guardon (jguardon@telefonica.net)
* Copyright: (c) 2009 Jesus Guardon (http://gambas-es.org),
* Benny Baumann (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2004/08/20
*
* GAMBAS language file for GeSHi.
* GAMBAS Official Site: http://gambas.sourceforge.net
*
* CHANGES
* -------
* 2009/09/26 (1.0.1)
* - Splitted dollar-ended keywords in another group to match with or without '$'
* - Modified URL for object/components keywords search through Google "I'm feeling lucky"
* 2009/09/23 (1.0.0)
* - Initial release
*
* TODO (updated 2009/09/26)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'GAMBAS',
'COMMENT_SINGLE' => array(1 => "'"),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
//keywords
1 => array(
'APPEND', 'AS', 'BREAK', 'BYREF', 'CASE', 'CATCH', 'CLASS', 'CLOSE', 'CONST', 'CONTINUE', 'COPY',
'CREATE', 'DEBUG', 'DEC', 'DEFAULT', 'DIM', 'DO', 'EACH', 'ELSE', 'END', 'ENDIF', 'ERROR', 'EVENT', 'EXEC',
'EXPORT', 'EXTERN', 'FALSE', 'FINALLY', 'FLUSH', 'FOR', 'FUNCTION', 'GOTO', 'IF', 'IN', 'INC', 'INHERITS',
'INPUT', 'FROM', 'IS', 'KILL', 'LAST', 'LIBRARY', 'LIKE', 'LINE INPUT', 'LINK', 'LOCK', 'LOOP', 'ME',
'MKDIR', 'MOVE', 'NEW', 'NEXT', 'NULL', 'OPEN', 'OPTIONAL', 'OUTPUT', 'PIPE', 'PRINT', 'PRIVATE',
'PROCEDURE', 'PROPERTY', 'PUBLIC', 'QUIT', 'RAISE', 'RANDOMIZE', 'READ', 'REPEAT', 'RETURN', 'RMDIR',
'SEEK', 'SELECT', 'SHELL', 'SLEEP', 'STATIC', 'STEP', 'STOP', 'SUB', 'SUPER', 'SWAP', 'THEN', 'TO',
'TRUE', 'TRY', 'UNLOCK', 'UNTIL', 'WAIT', 'WATCH', 'WEND', 'WHILE', 'WITH', 'WRITE'
),
//functions
2 => array(
'Abs', 'Access', 'Acos', 'Acosh', 'Alloc', 'Ang', 'Asc', 'ASin', 'ASinh', 'Asl', 'Asr', 'Assign', 'Atan',
'ATan2', 'ATanh',
'BChg', 'BClr', 'Bin', 'BSet', 'BTst',
'CBool', 'Cbr', 'CByte', 'CDate', 'CFloat', 'Choose', 'Chr', 'CInt', 'CLong', 'Comp', 'Conv', 'Cos',
'Cosh', 'CShort', 'CSng', 'CStr',
'DateAdd', 'DateDiff', 'Day', 'DConv', 'Deg', 'DFree', 'Dir',
'Eof', 'Eval', 'Exist', 'Exp', 'Exp10', 'Exp2', 'Expm',
'Fix', 'Format', 'Frac', 'Free',
'Hex', 'Hour', 'Hyp',
'Iif', 'InStr', 'Int', 'IsAscii', 'IsBlank', 'IsBoolean', 'IsByte', 'IsDate', 'IsDigit', 'IsDir',
'IsFloat', 'IsHexa', 'IsInteger', 'IsLCase', 'IsLetter', 'IsLong', 'IsNull', 'IsNumber', 'IsObject',
'IsPunct', 'IsShort', 'IsSingle', 'IsSpace', 'IsString', 'IsUCase', 'IsVariant',
'LCase', 'Left', 'Len', 'Lof', 'Log', 'Log10', 'Log2', 'Logp', 'Lsl', 'Lsr', 'LTrim',
'Mag', 'Max', 'Mid', 'Min', 'Minute', 'Month', 'Now', 'Quote',
'Rad', 'RDir', 'Realloc', 'Replace', 'Right', 'RInStr', 'Rnd', 'Rol', 'Ror', 'Round', 'RTrim',
'Scan', 'SConv', 'Second', 'Seek', 'Sgn', 'Shl', 'Shr', 'Sin', 'Sinh', 'Space', 'Split', 'Sqr',
'Stat', 'Str', 'StrPtr', 'Subst',
'Tan', 'Tanh', 'Temp$', 'Time', 'Timer', 'Tr', 'Trim', 'TypeOf',
'UCase', 'Unquote', 'Val', 'VarPtr', 'Week', 'WeekDay', 'Year'
),
//string functions
3 => array(
'Bin$', 'Chr$', 'Conv$', 'DConv$', 'Format$', 'Hex$', 'LCase$', 'Left$', 'LTrim$', 'Mid$', 'Quote$',
'Replace$', 'Right$', 'SConv$', 'Space$', 'Str$', 'String$', 'Subst$', 'Tr$', 'Trim$', 'UCase$',
'Unquote$'
),
//datatypes
4 => array(
'Boolean', 'Byte', 'Short', 'Integer', 'Long', 'Single', 'Float', 'Date', 'String', 'Variant', 'Object',
'Pointer', 'File'
),
//operators
5 => array(
'AND', 'DIV', 'MOD', 'NOT', 'OR', 'XOR'
),
//objects/classes
6 => array(
'Application', 'Array', 'Byte[]', 'Collection', 'Component', 'Enum', 'Observer', 'Param', 'Process',
'Stream', 'System', 'User', 'Chart', 'Compress', 'Crypt', 'Blob', 'Connection', 'DB', 'Database',
'DatabaseUser', 'Field', 'Index', 'Result', 'ResultField', 'Table', 'DataBrowser', 'DataCombo',
'DataControl', 'DataSource', 'DataView', 'Desktop', 'DesktopFile', 'Balloon', 'ColorButton',
'ColorChooser', 'DateChooser', 'DirChooser', 'DirView', 'Expander', 'FileChooser', 'FileView',
'FontChooser', 'InputBox', 'ListContainer', 'SidePanel', 'Stock', 'TableView', 'ToolPanel', 'ValueBox',
'Wizard', 'Dialog', 'ToolBar', 'WorkSpace', 'DnsClient', 'SerialPort', 'ServerSocket', 'Socket',
'UdpSocket', 'FtpClient', 'HttpClient', 'SmtpClient', 'Regexp', 'Action', 'Button', 'CheckBox',
'ColumnView', 'ComboBox', 'Draw', 'Container', 'Control', 'Cursor', 'DrawingArea', 'Embedder',
'Font', 'Form', 'Frame', 'GridView', 'HBox', 'HPanel', 'HSplit', 'IconView', 'Image', 'Key', 'Label',
'Line', 'ListBox', 'ListView', 'Menu', 'Message', 'Mouse', 'MovieBox', 'Panel', 'Picture', 'PictureBox',
'ProgressBar', 'RadioButton', 'ScrollBar', 'ScrollView', 'Separator', 'Slider', 'SpinBox', 'TabStrip',
'TextArea', 'TextBox', 'TextLabel', 'ToggleButton', 'TrayIcon', 'TreeView', 'VBox', 'VPanel', 'VSplit',
'Watcher', 'Window', 'Dial', 'Editor', 'LCDNumber', 'Printer', 'TextEdit', 'WebBrowser', 'GLarea',
'Report', 'ReportCloner', 'ReportContainer', 'ReportControl', 'ReportDrawing', 'ReportField', 'ReportHBox',
'ReportImage', 'ReportLabel', 'ReportSection', 'ReportSpecialField', 'ReportTextLabel', 'ReportVBox',
'CDRom', 'Channel', 'Music', 'Sound', 'Settings', 'VideoDevice', 'Vb', 'CGI', 'HTML', 'Request', 'Response',
'Session', 'XmlDocument', 'XmlNode', 'XmlReader', 'XmlReaderNodeType', 'XmlWriter', 'RpcArray', 'RpcClient',
'RpcFunction', 'RpcServer', 'RpcStruct', 'RpcType', 'XmlRpc', 'Xslt'
),
//constants
7 => array(
'Pi'
),
),
'SYMBOLS' => array(
'&', '&=', '&/', '*', '*=', '+', '+=', '-', '-=', '//', '/', '/=', '=', '==', '\\', '\\=',
'^', '^=', '[', ']', '{', '}', '<', '>', '<>', '<=', '>='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
6 => false,
7 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0600FF; font-weight: bold;', // Keywords
2 => 'color: #8B1433;', // Functions
3 => 'color: #8B1433;', // String Functions
4 => 'color: #0600FF;', // Data Types
5 => 'color: #1E90FF;', // Operators
6 => 'color: #0600FF;', // Objects/Components
7 => 'color: #0600FF;' // Constants
),
'COMMENTS' => array(
1 => 'color: #1A5B1A; font-style: italic;',
'MULTI' => 'color: #1A5B1A; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #008080;'
),
'BRACKETS' => array(
0 => 'color: #612188;'
),
'STRINGS' => array(
0 => 'color: #7E4B05;'
),
'NUMBERS' => array(
0 => 'color: #FF0000;',
GESHI_NUMBER_INT_BASIC => 'color: #FF0000;'
),
'METHODS' => array(
1 => 'color: #0000FF;'
),
'SYMBOLS' => array(
0 => 'color: #6132B2;'
),
'REGEXPS' => array(
//3 => 'color: #8B1433;' //fakes '$' colour matched by REGEXP
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => 'http://gambasdoc.org/help/lang/{FNAMEL}',
2 => 'http://gambasdoc.org/help/lang/{FNAMEL}',
3 => 'http://www.google.com/search?hl=en&amp;q={FNAMEL}+site:http://gambasdoc.org/help/lang/&amp;btnI=I%27m%20Feeling%20Lucky',
4 => 'http://gambasdoc.org/help/lang/type/{FNAMEL}',
5 => 'http://gambasdoc.org/help/lang/{FNAMEL}',
6 => 'http://www.google.com/search?hl=en&amp;q={FNAMEL}+site:http://gambasdoc.org/&amp;btnI=I%27m%20Feeling%20Lucky',
7 => 'http://gambasdoc.org/help/lang/{FNAMEL}'
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 =>'.'
),
'REGEXPS' => array(
//3 => "\\$(?!\\w)" //matches '$' at the end of Keyword
),
'STRICT_MODE_APPLIES' => GESHI_MAYBE,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
2 => array(
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_\|%\\-&;\$])"
)
)
)
);
?>

198
Sources/geshi/gdb.php Normal file
View File

@ -0,0 +1,198 @@
<?php
/*************************************************************************************
* gdb.php
* --------
* Author: Milian Wolff (mail@milianw.de)
* Copyright: (c) 2009 Milian Wolff
* Release Version: 1.0.8.11
* Date Started: 2009/06/24
*
* GDB language file for GeSHi.
*
* CHANGES
* -------
* 2009/06/24 (1.0.0)
* - First Release
*
* TODO (updated 2009/06/24)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'GDB',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
0 => array(
'Application',
'signal',
),
1 => array(
'Segmentation fault',
'[KCrash Handler]',
),
),
'NUMBERS' => false,
'SYMBOLS' => array(
),
'CASE_SENSITIVE' => array(
0 => true,
1 => true
),
'STYLES' => array(
'KEYWORDS' => array(
0 => 'font-weight:bold;',
1 => 'font-weight:bold; color: #ff0000;'
),
'COMMENTS' => array(
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => 'font-weight:bold;'
),
'STRINGS' => array(
0 => 'color: #933;'
),
'NUMBERS' => array(
),
'METHODS' => array(
),
'SYMBOLS' => array(
),
'REGEXPS' => array(
0 => 'color: #000066; font-weight:bold;',
1 => 'color: #006600;',
2 => 'color: #B07E00;',
3 => 'color: #0057AE; text-style:italic;',
4 => 'color: #0057AE; text-style:italic;',
5 => 'color: #442886;',
6 => 'color: #442886; font-weight:bold;',
7 => 'color: #FF0000; font-weight:bold;',
8 => 'color: #006E26;',
9 => 'color: #555;',
),
'SCRIPT' => array(
)
),
'URLS' => array(
0 => '',
1 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
//[Current Thread...], [KCrash Handler] etc.
0 => array(
GESHI_SEARCH => '^\[.+\]',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
//stack number
1 => array(
GESHI_SEARCH => '^#\d+',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
//Thread X (Thread...)
2 => array(
GESHI_SEARCH => '^Thread \d.+$',
GESHI_REPLACE => '\\0',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '',
GESHI_AFTER => ''
),
//Files with linenumbers
3 => array(
GESHI_SEARCH => '(at\s+)(.+)(:\d+\s*)$',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
),
//Libs without linenumbers
4 => array(
GESHI_SEARCH => '(from\s+)(.+)(\s*)$',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
),
//Line numbers
5 => array(
GESHI_SEARCH => '(:)(\d+)(\s*)$',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
),
//Location
6 => array(
GESHI_SEARCH => '(\s+)(in\s+)?([^ 0-9][^ ]*)([ \n]+\()',
GESHI_REPLACE => '\\3',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1\\2',
GESHI_AFTER => '\\4'
),
// interesting parts: abort, qFatal, assertions, null ptrs, ...
7 => array(
GESHI_SEARCH => '\b((?:\*__GI_)?(?:__assert_fail|abort)|qFatal|0x0)\b([^\.]|$)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '',
GESHI_AFTER => '\\2'
),
// Namespace / Classes
8 => array(
GESHI_SEARCH => '\b(\w+)(::)',
GESHI_REPLACE => '\\1',
GESHI_MODIFIERS => 'U',
GESHI_BEFORE => '',
GESHI_AFTER => '\\2'
),
// make ptr adresses and <value optimized out> uninteresting
9 => '\b(?:0x[a-f0-9]{2,}|value\s+optimized\s+out)\b'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'NUMBERS' => false
),
)
);
// kate: replace-tabs on; indent-width 4;
?>

463
Sources/geshi/genero.php Normal file
View File

@ -0,0 +1,463 @@
<?php
/*************************************************************************************
* genero.php
* ----------
* Author: Lars Gersmann (lars.gersmann@gmail.com)
* Copyright: (c) 2007 Lars Gersmann, Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2007/07/01
*
* Genero (FOURJ's Genero 4GL) language file for GeSHi.
*
* CHANGES
* -------
* 2007/07/01 (1.0.0)
* - Initial release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'genero',
'COMMENT_SINGLE' => array(1 => '--', 2 => '#'),
'COMMENT_MULTI' => array('{' => '}'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
"ABSOLUTE",
"ACCEPT",
"ACTION",
"ADD",
"AFTER",
"ALL",
"ALTER",
"AND",
"ANY",
"APPEND",
"APPLICATION",
"AS",
"AT",
"ATTRIBUTE",
"ATTRIBUTES",
"AUDIT",
"AVG",
"BEFORE",
"BEGIN",
"BETWEEN",
"BORDER",
"BOTTOM",
"BREAKPOINT",
"BUFFER",
"BUFFERED",
"BY",
"CALL",
"CANCEL",
"CASE",
"CENTURY",
"CHANGE",
"CHECK",
"CLEAR",
"CLIPPED",
"CLOSE",
"CLUSTER",
"COLUMN",
"COLUMNS",
"COMMAND",
"COMMENT",
"COMMIT",
"COMMITTED",
"CONCURRENT ",
"CONNECT",
"CONNECTION",
"CONSTANT",
"CONSTRAINED",
"CONSTRAINT",
"CONSTRUCT",
"CONTINUE",
"CONTROL",
"COUNT",
"CREATE",
"CROSS",
"CURRENT",
"DATABASE",
"DBA",
"DEC",
"DECLARE",
"DEFAULT",
"DEFAULTS",
"DEFER",
"DEFINE",
"DELETE",
"DELIMITER",
"DESCRIBE",
"DESTINATION",
"DIM",
"DIALOG",
"DIMENSION",
"DIRTY",
"DISCONNECT",
"DISPLAY",
"DISTINCT",
"DORMANT",
"DOWN",
"DROP",
"DYNAMIC",
"ELSE",
"END",
"ERROR",
"ESCAPE",
"EVERY",
"EXCLUSIVE",
"EXECUTE",
"EXISTS",
"EXIT",
"EXPLAIN",
"EXTEND",
"EXTENT",
"EXTERNAL",
"FETCH",
"FGL_DRAWBOX",
"FIELD",
"FIELD_TOUCHED",
"FILE",
"FILL",
"FINISH",
"FIRST",
"FLOAT",
"FLUSH",
"FOR",
"FOREACH",
"FORM",
"FORMAT",
"FOUND",
"FRACTION",
"FREE",
"FROM",
"FULL",
"FUNCTION",
"GET_FLDBUF",
"GLOBALS",
"GO",
"GOTO",
"GRANT",
"GROUP",
"HAVING",
"HEADER",
"HELP",
"HIDE",
"HOLD",
"HOUR",
"IDLE",
"IF",
"IMAGE",
"IMMEDIATE",
"IN",
"INDEX",
"INFIELD",
"INITIALIZE",
"INNER",
"INPUT",
"INSERT",
"INTERRUPT",
"INTERVAL",
"INTO",
"INVISIBLE",
"IS",
"ISOLATION",
"JOIN",
"KEEP",
"KEY",
"LABEL",
"LAST",
"LEFT",
"LENGTH",
"LET",
"LIKE",
"LINE",
"LINENO",
"LINES",
"LOAD",
"LOCATE",
"LOCK",
"LOG",
"LSTR",
"MAIN",
"MARGIN",
"MATCHES",
"MAX",
"MAXCOUNT",
"MDY",
"MEMORY",
"MENU",
"MESSAGE",
"MIN",
"MINUTE",
"MOD",
"MODE",
"MODIFY",
"MONEY",
"NAME",
"NEED",
"NEXT",
"NO",
"NORMAL",
"NOT",
"NOTFOUND",
"NULL",
"NUMERIC",
"OF",
"ON",
"OPEN",
"OPTION",
"OPTIONS",
"OR",
"ORDER",
"OTHERWISE",
"OUTER",
"OUTPUT",
"PAGE",
"PAGENO",
"PAUSE",
"PERCENT",
"PICTURE",
"PIPE",
"PRECISION",
"PREPARE",
"PREVIOUS",
"PRINT",
"PRINTER",
"PRINTX",
"PRIOR",
"PRIVILEGES",
"PROCEDURE",
"PROGRAM",
"PROMPT",
"PUBLIC",
"PUT",
"QUIT",
"READ",
"REAL",
"RECORD",
"RECOVER",
"RED ",
"RELATIVE",
"RENAME",
"REOPTIMIZATION",
"REPEATABLE",
"REPORT",
"RESOURCE",
"RETURN",
"RETURNING",
"REVERSE",
"REVOKE",
"RIGHT",
"ROLLBACK",
"ROLLFORWARD",
"ROW",
"ROWS",
"RUN",
"SCHEMA",
"SCREEN",
"SCROLL",
"SECOND",
"SELECT",
"SERIAL",
"SET",
"SFMT",
"SHARE",
"SHIFT",
"SHOW",
"SIGNAL ",
"SIZE",
"SKIP",
"SLEEP",
"SOME",
"SPACE",
"SPACES",
"SQL",
"SQLERRMESSAGE",
"SQLERROR",
"SQLSTATE",
"STABILITY",
"START",
"STATISTICS",
"STEP",
"STOP",
"STYLE",
"SUM",
"SYNONYM",
"TABLE",
"TEMP",
"TERMINATE",
"TEXT",
"THEN",
"THROUGH",
"THRU",
"TO",
"TODAY",
"TOP",
"TRAILER",
"TRANSACTION ",
"UNBUFFERED",
"UNCONSTRAINED",
"UNDERLINE",
"UNION",
"UNIQUE",
"UNITS",
"UNLOAD",
"UNLOCK",
"UP",
"UPDATE",
"USE",
"USER",
"USING",
"VALIDATE",
"VALUE",
"VALUES",
"VARCHAR",
"VIEW",
"WAIT",
"WAITING",
"WARNING",
"WHEN",
"WHENEVER",
"WHERE",
"WHILE",
"WINDOW",
"WITH",
"WITHOUT",
"WORDWRAP",
"WORK",
"WRAP"
),
2 => array(
'&amp;IFDEF', '&amp;ENDIF'
),
3 => array(
"ARRAY",
"BYTE",
"CHAR",
"CHARACTER",
"CURSOR",
"DATE",
"DATETIME",
"DECIMAL",
"DOUBLE",
"FALSE",
"INT",
"INTEGER",
"SMALLFLOAT",
"SMALLINT",
"STRING",
"TIME",
"TRUE"
),
4 => array(
"BLACK",
"BLINK",
"BLUE",
"BOLD",
"ANSI",
"ASC",
"ASCENDING",
"ASCII",
"CYAN",
"DESC",
"DESCENDING",
"GREEN",
"MAGENTA",
"OFF",
"WHITE",
"YELLOW",
"YEAR",
"DAY",
"MONTH",
"WEEKDAY"
),
),
'SYMBOLS' => array(
'+', '-', '*', '?', '=', '/', '%', '>', '<', '^', '!', '|', ':',
'(', ')', '[', ']'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0600FF;',
2 => 'color: #0000FF; font-weight: bold;',
3 => 'color: #008000;',
4 => 'color: #FF0000;',
),
'COMMENTS' => array(
1 => 'color: #008080; font-style: italic;',
2 => 'color: #008080;',
'MULTI' => 'color: #008080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #008080; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #808080;'
),
'NUMBERS' => array(
0 => 'color: #FF0000;'
),
'METHODS' => array(
1 => 'color: #0000FF;',
2 => 'color: #0000FF;'
),
'SYMBOLS' => array(
0 => 'color: #008000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

157
Sources/geshi/genie.php Normal file
View File

@ -0,0 +1,157 @@
<?php
/*************************************************************************************
* genie.php
* ----------
* Author: Nicolas Joseph (nicolas.joseph@valaide.org)
* Copyright: (c) 2009 Nicolas Joseph
* Release Version: 1.0.8.11
* Date Started: 2009/04/29
*
* Genie language file for GeSHi.
*
* CHANGES
* -------
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Genie',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
//Using and Namespace directives (basic support)
//Please note that the alias syntax for using is not supported
3 => '/(?:(?<=using[\\n\\s])|(?<=namespace[\\n\\s]))[\\n\\s]*([a-zA-Z0-9_]+\\.)*[a-zA-Z0-9_]+[\n\s]*(?=[;=])/i'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'HARDQUOTE' => array('@"', '"'),
'HARDESCAPE' => array('""'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'and', 'as', 'abstract', 'break', 'case', 'cast', 'catch', 'const',
'construct', 'continue', 'default', 'def', 'delete', 'div',
'dynamic', 'do', 'downto', 'else', 'ensures', 'except', 'extern',
'false', 'final', 'finally', 'for', 'foreach', 'get', 'if', 'in',
'init', 'inline', 'internal', 'implements', 'lock', 'not', 'null',
'of', 'or', 'otherwise', 'out', 'override', 'pass', 'raise',
'raises', 'readonly', 'ref', 'requires', 'self', 'set', 'static',
'super', 'switch', 'to', 'true', 'try', 'unless', 'uses', 'var', 'virtual',
'volatile', 'void', 'when', 'while'
),
// 2 => array(
// ),
3 => array(
'is', 'isa', 'new', 'owned', 'sizeof', 'typeof', 'unchecked',
'unowned', 'weak'
),
4 => array(
'bool', 'byte', 'class', 'char', 'date', 'datetime', 'decimal', 'delegate',
'double', 'enum', 'event', 'exception', 'float', 'int', 'interface',
'long', 'object', 'prop', 'sbyte', 'short', 'single', 'string',
'struct', 'ulong', 'ushort'
),
// 5 => array(
// ),
),
'SYMBOLS' => array(
'+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', ':', ';',
'(', ')', '{', '}', '[', ']', '|'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
// 2 => false,
3 => false,
4 => false,
// 5 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #0600FF;',
// 2 => 'color: #FF8000; font-weight: bold;',
3 => 'color: #008000;',
4 => 'color: #FF0000;',
// 5 => 'color: #000000;'
),
'COMMENTS' => array(
1 => 'color: #008080; font-style: italic;',
// 2 => 'color: #008080;',
3 => 'color: #008080;',
'MULTI' => 'color: #008080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #008080; font-weight: bold;',
'HARD' => 'color: #008080; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;'
),
'STRINGS' => array(
0 => 'color: #666666;',
'HARD' => 'color: #666666;'
),
'NUMBERS' => array(
0 => 'color: #FF0000;'
),
'METHODS' => array(
1 => 'color: #0000FF;',
2 => 'color: #0000FF;'
),
'SYMBOLS' => array(
0 => 'color: #008000;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
// 2 => '',
3 => '',
4 => '',
// 5 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])",
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_<\|%\\-])"
)
)
);
?>

97
Sources/geshi/gettext.php Normal file
View File

@ -0,0 +1,97 @@
<?php
/*************************************************************************************
* gettext.php
* --------
* Author: Milian Wolff (mail@milianw.de)
* Copyright: (c) 2008 Milian Wolff
* Release Version: 1.0.8.11
* Date Started: 2008/05/25
*
* GNU Gettext .po/.pot language file for GeSHi.
*
* CHANGES
* -------
* 2008/08/02 (1.0.8)
* - New comments: flags and previous-fields
* - New keywords: msgctxt, msgid_plural
* - Msgstr array indices
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'GNU Gettext',
'COMMENT_SINGLE' => array('#:', '#.', '#,', '#|', '#'),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array('msgctxt', 'msgid_plural', 'msgid', 'msgstr'),
),
'SYMBOLS' => array(),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;'
),
'COMMENTS' => array(
0 => 'color: #000099;',
1 => 'color: #000099;',
2 => 'color: #000099;',
3 => 'color: #006666;',
4 => 'color: #666666; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'REGEXPS' => array(),
'SYMBOLS' => array(),
'NUMBERS' => array(
0 => 'color: #000099;'
),
'METHODS' => array(),
'SCRIPT' => array(),
'BRACKETS' => array(
0 => 'color: #000099;'
),
),
'URLS' => array(
1 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
);
?>

205
Sources/geshi/glsl.php Normal file
View File

@ -0,0 +1,205 @@
<?php
/*************************************************************************************
* glsl.php
* -----
* Author: Benny Baumann (BenBE@omorphia.de)
* Copyright: (c) 2008 Benny Baumann (BenBE@omorphia.de)
* Release Version: 1.0.8.11
* Date Started: 2008/03/20
*
* glSlang language file for GeSHi.
*
* CHANGES
* -------
* 2008/03/20 (1.0.7.21)
* - First Release
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'glSlang',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
//Multiline-continued single-line comments
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m',
//Multiline-continued preprocessor define
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m'
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'if', 'else', 'for', 'while', 'do', 'break', 'continue', 'asm',
'switch', 'case', 'default', 'return', 'discard',
'namespace', 'using', 'sizeof', 'cast'
),
2 => array(
'const', 'uniform', 'attribute', 'centroid', 'varying', 'invariant',
'in', 'out', 'inout', 'input', 'output', 'typedef', 'volatile',
'public', 'static', 'extern', 'external', 'packed',
'inline', 'noinline', 'noperspective', 'flat'
),
3 => array(
'void', 'bool', 'int', 'long', 'short', 'float', 'half', 'fixed',
'unsigned', 'lowp', 'mediump', 'highp', 'precision',
'vec2', 'vec3', 'vec4', 'bvec2', 'bvec3', 'bvec4',
'dvec2', 'dvec3', 'dvec4', 'fvec2', 'fvec3', 'fvec4',
'hvec2', 'hvec3', 'hvec4', 'ivec2', 'ivec3', 'ivec4',
'mat2', 'mat3', 'mat4', 'mat2x2', 'mat3x2', 'mat4x2',
'mat2x3', 'mat3x3', 'mat4x3', 'mat2x4', 'mat3x4', 'mat4x4',
'sampler1D', 'sampler2D', 'sampler3D', 'samplerCube',
'sampler1DShadow', 'sampler2DShadow',
'struct', 'class', 'union', 'enum', 'interface', 'template'
),
4 => array(
'this', 'false', 'true'
),
5 => array(
'radians', 'degrees', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan',
'pow', 'exp2', 'log2', 'sqrt', 'inversesqrt', 'abs', 'sign', 'ceil',
'floor', 'fract', 'mod', 'min', 'max', 'clamp', 'mix', 'step',
'smoothstep', 'length', 'distance', 'dot', 'cross', 'normalize',
'ftransform', 'faceforward', 'reflect', 'matrixCompMult', 'equal',
'lessThan', 'lessThanEqual', 'greaterThan', 'greaterThanEqual',
'notEqual', 'any', 'all', 'not', 'texture1D', 'texture1DProj',
'texture1DLod', 'texture1DProjLod', 'texture2D', 'texture2DProj',
'texture2DLod', 'texture2DProjLod', 'texture3D', 'texture3DProj',
'texture3DLod', 'texture3DProjLod', 'textureCube', 'textureCubeLod',
'shadow1D', 'shadow1DProj', 'shadow1DLod', 'shadow1DProjLod',
'shadow2D', 'shadow2DProj', 'shadow2DLod', 'shadow2DProjLod',
'noise1', 'noise2', 'noise3', 'noise4'
),
6 => array(
'gl_Position', 'gl_PointSize', 'gl_ClipVertex', 'gl_FragColor',
'gl_FragData', 'gl_FragDepth', 'gl_FragCoord', 'gl_FrontFacing',
'gl_Color', 'gl_SecondaryColor', 'gl_Normal', 'gl_Vertex',
'gl_MultiTexCoord0', 'gl_MultiTexCoord1', 'gl_MultiTexCoord2',
'gl_MultiTexCoord3', 'gl_MultiTexCoord4', 'gl_MultiTexCoord5',
'gl_MultiTexCoord6', 'gl_MultiTexCoord7', 'gl_FogCoord',
'gl_MaxLights', 'gl_MaxClipPlanes', 'gl_MaxTextureUnits',
'gl_MaxTextureCoords', 'gl_MaxVertexAttribs', 'gl_MaxVaryingFloats',
'gl_MaxVertexUniformComponents', 'gl_MaxVertexTextureImageUnits',
'gl_MaxCombinedTextureImageUnits', 'gl_MaxTextureImageUnits',
'gl_MaxFragmentUniformComponents', 'gl_MaxDrawBuffers', 'gl_Point',
'gl_ModelViewMatrix', 'gl_ProjectionMatrix', 'gl_FrontMaterial',
'gl_ModelViewProjectionMatrix', 'gl_TextureMatrix', 'gl_ClipPlane',
'gl_NormalMatrix', 'gl_ModelViewMatrixInverse', 'gl_BackMaterial',
'gl_ProjectionMatrixInverse', 'gl_ModelViewProjectionMatrixInverse',
'gl_TextureMatrixInverse', 'gl_ModelViewMatrixTranspose', 'gl_Fog',
'gl_ProjectionMatrixTranspose', 'gl_NormalScale', 'gl_DepthRange',
'gl_odelViewProjectionMatrixTranspose', 'gl_TextureMatrixTranspose',
'gl_ModelViewMatrixInverseTranspose', 'gl_LightSource',
'gl_ProjectionMatrixInverseTranspose', 'gl_LightModel',
'gl_ModelViewProjectionMatrixInverseTranspose', 'gl_TexCoord',
'gl_TextureMatrixInverseTranspose', 'gl_TextureEnvColor',
'gl_FrontLightModelProduct', 'gl_BackLightModelProduct',
'gl_FrontLightProduct', 'gl_BackLightProduct', 'gl_ObjectPlaneS',
'gl_ObjectPlaneT', 'gl_ObjectPlaneR', 'gl_ObjectPlaneQ',
'gl_EyePlaneS', 'gl_EyePlaneT', 'gl_EyePlaneR', 'gl_EyePlaneQ',
'gl_FrontColor', 'gl_BackColor', 'gl_FrontSecondaryColor',
'gl_BackSecondaryColor', 'gl_FogFragCoord', 'gl_PointCoord'
)
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^',
'&', '?', ':', '.', '|', ';', ',', '<', '>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',
2 => 'color: #333399; font-weight: bold;',
3 => 'color: #000066; font-weight: bold;',
4 => 'color: #333399; font-weight: bold;',
5 => 'color: #993333; font-weight: bold;',
6 => 'color: #551111;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
2 => 'color: #009900;',
'MULTI' => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000066;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #0000ff;'
),
'METHODS' => array(
1 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #000066;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'OOLANG' => array(
'MATCH_BEFORE' => '',
'MATCH_AFTER' => '[a-zA-Z_][a-zA-Z0-9_]*',
'MATCH_SPACES' => '[\s]*'
)
)
);
?>

506
Sources/geshi/gml.php Normal file
View File

@ -0,0 +1,506 @@
<?php
/*************************************************************************************
* gml.php
* --------
* Author: Jos<EFBFBD> Jorge Enr<EFBFBD>quez (jenriquez@users.sourceforge.net)
* Copyright: (c) 2005 Jos<EFBFBD> Jorge Enr<EFBFBD>quez Rodr<EFBFBD>guez (http://www.zonamakers.com)
* Release Version: 1.0.8.11
* Date Started: 2005/06/21
*
* GML language file for GeSHi.
*
* GML (Game Maker Language) is a script language that is built-in into Game Maker,
* a game creation program, more info about Game Maker can be found at
* http://www.gamemaker.nl/
* All GML keywords were extracted from the Game Maker HTML Help file using a PHP
* script (one section at a time). I love PHP for saving me that bunch of work :P!.
* I think all GML functions have been indexed here, but I'm not sure about it, so
* please let me know of any issue you may find.
*
* CHANGES
* -------
* 2005/11/11
* - Changed 'CASE_KEYWORDS' fom 'GESHI_CAPS_LOWER' to 'GESHI_CAPS_NO_CHANGE',
* so that MCI_command appears correctly (the only GML function using capitals).
* - Changed 'CASE_SENSITIVE' options, 'GESHI_COMMENTS' from true to false and all
* of the others from false to true.
* - Deleted repeated entries.
* - div and mod are language keywords, moved (from symbols) to the appropiate section (1).
* - Moved self, other, all, noone and global identifiers to language keywords section 1.
* - Edited this file lines to a maximum width of 100 characters (as stated in
* the GeSHi docs). Well, not strictly to 100 but around it.
* - Corrected some minor issues (the vk_f1...vk_f12 keys and similar).
* - Deleted the KEYWORDS=>5 and KEYWORDS=>6 sections (actually, they were empty).
* I was planning of using those for the GML functions available only in the
* registered version of the program, but not anymore.
*
* 2005/06/26 (1.0.3)
* - First Release.
*
* TODO (updated 2005/11/11)
* -------------------------
* - Test it for a while and make the appropiate corrections.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'GML',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'"),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
// language keywords
1 => array(
'break', 'continue', 'do', 'until', 'if', 'else',
'exit', 'for', 'repeat', 'return', 'switch',
'case', 'default', 'var', 'while', 'with', 'div', 'mod',
// GML Language overview
'self', 'other', 'all', 'noone', 'global',
),
// modifiers and built-in variables
2 => array(
// Game play
'x','y','xprevious','yprevious','xstart','ystart','hspeed','vspeed','direction','speed',
'friction','gravity','gravity_direction',
'path_index','path_position','path_positionprevious','path_speed','path_orientation',
'path_endaction',
'object_index','id','mask_index','solid','persistent','instance_count','instance_id',
'room_speed','fps','current_time','current_year','current_month','current_day','current_weekday',
'current_hour','current_minute','current_second','alarm','timeline_index','timeline_position',
'timeline_speed',
'room','room_first','room_last','room_width','room_height','room_caption','room_persistent',
'score','lives','health','show_score','show_lives','show_health','caption_score','caption_lives',
'caption_health',
'event_type','event_number','event_object','event_action',
'error_occurred','error_last',
// User interaction
'keyboard_lastkey','keyboard_key','keyboard_lastchar','keyboard_string',
'mouse_x','mouse_y','mouse_button','mouse_lastbutton',
// Game Graphics
'sprite_index','sprite_width','sprite_height','sprite_xoffset','sprite_yoffset',
'image_number','image_index','image_speed','image_xscale','image_yscale','image_angle',
'image_alpha','image_blend','bbox_left','bbox_right','bbox_top','bbox_bottom',
'background_color','background_showcolor','background_visible','background_foreground',
'background_index','background_x','background_y','background_width','background_height',
'background_htiled','background_vtiled','background_xscale','background_yscale',
'background_hspeed','background_vspeed','background_blend','background_alpha',
'background','left, top, width, height','depth','visible','xscale','yscale','blend','alpha',
'view_enabled','view_current','view_visible','view_yview','view_wview','view_hview','view_xport',
'view_yport','view_wport','view_hport','view_angle','view_hborder','view_vborder','view_hspeed',
'view_vspeed','view_object',
'transition_kind',
// Files, registry and executing programs
'game_id','working_directory','temp_directory',
'secure_mode',
// Creating particles
'xmin', 'xmax', 'ymin', 'ymax','shape','distribution','particle type','number',
'force','dist','kind','additive', 'parttype1', 'parttype2'
),
// functions
3 => array(
// Computing things
'random','choose','abs','sign','round','floor','ceil','frac','sqrt','sqr','power','exp','ln',
'log2','log10','logn','sin','cos','tan','arcsin','arccos','arctan','arctan2','degtorad',
'radtodeg','min','max','mean','median','point_distance','point_direction','lengthdir_x',
'lengthdir_y','is_real','is_string',
'chr','ord','real','string','string_format','string_length','string_pos','string_copy',
'string_char_at','string_delete','string_insert','string_replace','string_replace_all',
'string_count','string_lower','string_upper','string_repeat','string_letters','string_digits',
'string_lettersdigits','clipboard_has_text','clipboard_get_text','clipboard_set_text',
'date_current_datetime','date_current_date','date_current_time','date_create_datetime',
'date_create_date','date_create_time','date_valid_datetime','date_valid_date','date_valid_time',
'date_inc_year','date_inc_month','date_inc_week','date_inc_day','date_inc_hour',
'date_inc_minute','date_inc_second','date_get_year','date_get_month','date_get_week',
'date_get_day','date_get_hour', 'date_get_minute','date_get_second','date_get_weekday',
'date_get_day_of_year','date_get_hour_of_year','date_get_minute_of_year',
'date_get_second_of_year','date_year_span','date_month_span','date_week_span','date_day_span',
'date_hour_span','date_minute_span','date_second_span','date_compare_datetime',
'date_compare_date','date_compare_time','date_date_of','date_time_of','date_datetime_string',
'date_date_string','date_time_string','date_days_in_month','date_days_in_year','date_leap_year',
'date_is_today',
// Game play
'motion_set','motion_add','place_free','place_empty','place_meeting','place_snapped',
'move_random','move_snap','move_wrap','move_towards_point','move_bounce_solid','move_bounce_all',
'move_contact_solid','move_contact_all','move_outside_solid','move_outside_all',
'distance_to_point','distance_to_object','position_empty','position_meeting',
'path_start','path_end',
'mp_linear_step','mp_linear_step_object','mp_potential_step','mp_potential_step_object',
'mp_potential_settings','mp_linear_path','mp_linear_path_object', 'mp_potential_path',
'mp_potential_path_object','mp_grid_create','mp_grid_destroy','mp_grid_clear_all',
'mp_grid_clear_cell','mp_grid_clear_rectangle','mp_grid_add_cell','mp_grid_add_rectangle',
'mp_grid_add_instances','mp_grid_path','mp_grid_draw',
'collision_point','collision_rectangle','collision_circle','collision_ellipse','collision_line',
'instance_find','instance_exists','instance_number','instance_position','instance_nearest',
'instance_furthest','instance_place','instance_create','instance_copy','instance_destroy',
'instance_change','position_destroy','position_change',
'instance_deactivate_all','instance_deactivate_object','instance_deactivate_region',
'instance_activate_all','instance_activate_object','instance_activate_region',
'sleep',
'room_goto','room_goto_previous','room_goto_next','room_restart','room_previous','room_next',
'game_end','game_restart','game_save','game_load',
'event_perform', 'event_perform_object','event_user','event_inherited',
'show_debug_message','variable_global_exists','variable_local_exists','variable_global_get',
'variable_global_array_get','variable_global_array2_get','variable_local_get',
'variable_local_array_get','variable_local_array2_get','variable_global_set',
'variable_global_array_set','variable_global_array2_set','variable_local_set',
'variable_local_array_set','variable_local_array2_set','set_program_priority',
// User interaction
'keyboard_set_map','keyboard_get_map','keyboard_unset_map','keyboard_check',
'keyboard_check_pressed','keyboard_check_released','keyboard_check_direct',
'keyboard_get_numlock','keyboard_set_numlock','keyboard_key_press','keyboard_key_release',
'keyboard_clear','io_clear','io_handle','keyboard_wait',
'mouse_check_button','mouse_check_button_pressed','mouse_check_button_released','mouse_clear',
'mouse_wait',
'joystick_exists','joystick_name','joystick_axes','joystick_buttons','joystick_has_pov',
'joystick_direction','joystick_check_button','joystick_xpos','joystick_ypos','joystick_zpos',
'joystick_rpos','joystick_upos','joystick_vpos','joystick_pov',
// Game Graphics
'draw_sprite','draw_sprite_stretched','draw_sprite_tiled','draw_sprite_part','draw_background',
'draw_background_stretched','draw_background_tiled','draw_background_part','draw_sprite_ext',
'draw_sprite_stretched_ext','draw_sprite_tiled_ext','draw_sprite_part_ext','draw_sprite_general',
'draw_background_ext','draw_background_stretched_ext','draw_background_tiled_ext',
'draw_background_part_ext','draw_background_general',
'draw_clear','draw_clear_alpha','draw_point','draw_line','draw_rectangle','draw_roundrect',
'draw_triangle','draw_circle','draw_ellipse','draw_arrow','draw_button','draw_path',
'draw_healthbar','draw_set_color','draw_set_alpha','draw_get_color','draw_get_alpha',
'make_color_rgb','make_color_hsv','color_get_red','color_get_green','color_get_blue',
'color_get_hue','color_get_saturation','color_get_value','merge_color','draw_getpixel',
'screen_save','screen_save_part',
'draw_set_font','draw_set_halign','draw_set_valign','draw_text','draw_text_ext','string_width',
'string_height','string_width_ext','string_height_ext','draw_text_transformed',
'draw_text_ext_transformed','draw_text_color','draw_text_ext_color',
'draw_text_transformed_color','draw_text_ext_transformed_color',
'draw_point_color','draw_line_color','draw_rectangle_color','draw_roundrect_color',
'draw_triangle_color','draw_circle_color','draw_ellipse_color','draw_primitive_begin',
'draw_vertex','draw_vertex_color','draw_primitive_end','sprite_get_texture',
'background_get_texture','texture_preload','texture_set_priority',
'texture_get_width','texture_get_height','draw_primitive_begin_texture','draw_vertex_texture',
'draw_vertex_texture_color','texture_set_interpolation',
'texture_set_blending','texture_set_repeat','draw_set_blend_mode','draw_set_blend_mode_ext',
'surface_create','surface_free','surface_exists','surface_get_width','surface_get_height',
'surface_get_texture','surface_set_target','surface_reset_target','surface_getpixel',
'surface_save','surface_save_part','draw_surface','draw_surface_stretched','draw_surface_tiled',
'draw_surface_part','draw_surface_ext','draw_surface_stretched_ext','draw_surface_tiled_ext',
'draw_surface_part_ext','draw_surface_general','surface_copy','surface_copy_part',
'tile_add','tile_delete','tile_exists','tile_get_x','tile_get_y','tile_get_left','tile_get_top',
'tile_get_width','tile_get_height','tile_get_depth','tile_get_visible','tile_get_xscale',
'tile_get_yscale','tile_get_background','tile_get_blend','tile_get_alpha','tile_set_position',
'tile_set_region','tile_set_background','tile_set_visible','tile_set_depth','tile_set_scale',
'tile_set_blend','tile_set_alpha','tile_layer_hide','tile_layer_show','tile_layer_delete',
'tile_layer_shift','tile_layer_find','tile_layer_delete_at','tile_layer_depth',
'display_get_width','display_get_height','display_get_colordepth','display_get_frequency',
'display_set_size','display_set_colordepth','display_set_frequency','display_set_all',
'display_test_all','display_reset','display_mouse_get_x','display_mouse_get_y','display_mouse_set',
'window_set_visible','window_get_visible','window_set_fullscreen','window_get_fullscreen',
'window_set_showborder','window_get_showborder','window_set_showicons','window_get_showicons',
'window_set_stayontop','window_get_stayontop','window_set_sizeable','window_get_sizeable',
'window_set_caption','window_get_caption','window_set_cursor', 'window_get_cursor',
'window_set_color','window_get_color','window_set_region_scale','window_get_region_scale',
'window_set_position','window_set_size','window_set_rectangle','window_center','window_default',
'window_get_x','window_get_y','window_get_width','window_get_height','window_mouse_get_x',
'window_mouse_get_y','window_mouse_set',
'window_set_region_size','window_get_region_width','window_get_region_height',
'window_view_mouse_get_x','window_view_mouse_get_y','window_view_mouse_set',
'window_views_mouse_get_x','window_views_mouse_get_y','window_views_mouse_set',
'screen_redraw','screen_refresh','set_automatic_draw','set_synchronization','screen_wait_vsync',
// Sound and music)
'sound_play','sound_loop','sound_stop','sound_stop_all','sound_isplaying','sound_volume',
'sound_global_volume','sound_fade','sound_pan','sound_background_tempo','sound_set_search_directory',
'sound_effect_set','sound_effect_chorus','sound_effect_echo', 'sound_effect_flanger',
'sound_effect_gargle','sound_effect_reverb','sound_effect_compressor','sound_effect_equalizer',
'sound_3d_set_sound_position','sound_3d_set_sound_velocity','sound_3d_set_sound_distance',
'sound_3d_set_sound_cone',
'cd_init','cd_present','cd_number','cd_playing','cd_paused','cd_track','cd_length',
'cd_track_length','cd_position','cd_track_position','cd_play','cd_stop','cd_pause','cd_resume',
'cd_set_position','cd_set_track_position','cd_open_door','cd_close_door','MCI_command',
// Splash screens, highscores, and other pop-ups
'show_text','show_image','show_video','show_info','load_info',
'show_message','show_message_ext','show_question','get_integer','get_string',
'message_background','message_alpha','message_button','message_text_font','message_button_font',
'message_input_font','message_mouse_color','message_input_color','message_caption',
'message_position','message_size','show_menu','show_menu_pos','get_color','get_open_filename',
'get_save_filename','get_directory','get_directory_alt','show_error',
'highscore_show','highscore_set_background','highscore_set_border','highscore_set_font',
'highscore_set_colors','highscore_set_strings','highscore_show_ext','highscore_clear',
'highscore_add','highscore_add_current','highscore_value','highscore_name','draw_highscore',
// Resources
'sprite_exists','sprite_get_name','sprite_get_number','sprite_get_width','sprite_get_height',
'sprite_get_transparent','sprite_get_smooth','sprite_get_preload','sprite_get_xoffset',
'sprite_get_yoffset','sprite_get_bbox_left','sprite_get_bbox_right','sprite_get_bbox_top',
'sprite_get_bbox_bottom','sprite_get_bbox_mode','sprite_get_precise',
'sound_exists','sound_get_name','sound_get_kind','sound_get_preload','sound_discard',
'sound_restore',
'background_exists','background_get_name','background_get_width','background_get_height',
'background_get_transparent','background_get_smooth','background_get_preload',
'font_exists','font_get_name','font_get_fontname','font_get_bold','font_get_italic',
'font_get_first','font_get_last',
'path_exists','path_get_name','path_get_length','path_get_kind','path_get_closed',
'path_get_precision','path_get_number','path_get_point_x','path_get_point_y',
'path_get_point_speed','path_get_x','path_get_y','path_get_speed',
'script_exists','script_get_name','script_get_text',
'timeline_exists','timeline_get_name',
'object_exists','object_get_name','object_get_sprite','object_get_solid','object_get_visible',
'object_get_depth','object_get_persistent','object_get_mask','object_get_parent',
'object_is_ancestor',
'room_exists','room_get_name',
// Changing resources
'sprite_set_offset','sprite_set_bbox_mode','sprite_set_bbox','sprite_set_precise',
'sprite_duplicate','sprite_assign','sprite_merge','sprite_add','sprite_replace',
'sprite_create_from_screen','sprite_add_from_screen','sprite_create_from_surface',
'sprite_add_from_surface','sprite_delete','sprite_set_alpha_from_sprite',
'sound_add','sound_replace','sound_delete',
'background_duplicate','background_assign','background_add','background_replace',
'background_create_color','background_create_gradient','background_create_from_screen',
'background_create_from_surface','background_delete','background_set_alpha_from_background',
'font_add','font_add_sprite','font_replace_sprite','font_delete',
'path_set_kind','path_set_closed','path_set_precision','path_add','path_delete','path_duplicate',
'path_assign','path_append','path_add_point','path_insert_point','path_change_point',
'path_delete_point','path_clear_points','path_reverse','path_mirror','path_flip','path_rotate',
'path_scale','path_shift',
'execute_string','execute_file','script_execute',
'timeline_add','timeline_delete','timeline_moment_add','timeline_moment_clear',
'object_set_sprite','object_set_solid','object_set_visible','object_set_depth',
'object_set_persistent','object_set_mask','object_set_parent','object_add','object_delete',
'object_event_add','object_event_clear',
'room_set_width','room_set_height','room_set_caption','room_set_persistent','room_set_code',
'room_set_background_color','room_set_background','room_set_view','room_set_view_enabled',
'room_add','room_duplicate','room_assign','room_instance_add','room_instance_clear',
'room_tile_add','room_tile_add_ext','room_tile_clear',
// Files, registry and executing programs
'file_text_open_read','file_text_open_write','file_text_open_append','file_text_close',
'file_text_write_string','file_text_write_real','file_text_writeln','file_text_read_string',
'file_text_read_real','file_text_readln','file_text_eof','file_exists','file_delete',
'file_rename','file_copy','directory_exists','directory_create','file_find_first',
'file_find_next','file_find_close','file_attributes', 'filename_name','filename_path',
'filename_dir','filename_drive','filename_ext','filename_change_ext','file_bin_open',
'file_bin_rewrite','file_bin_close','file_bin_size','file_bin_position','file_bin_seek',
'file_bin_write_byte','file_bin_read_byte','parameter_count','parameter_string',
'environment_get_variable',
'registry_write_string','registry_write_real','registry_read_string','registry_read_real',
'registry_exists','registry_write_string_ext','registry_write_real_ext',
'registry_read_string_ext','registry_read_real_ext','registry_exists_ext','registry_set_root',
'ini_open','ini_close','ini_read_string','ini_read_real','ini_write_string','ini_write_real',
'ini_key_exists','ini_section_exists','ini_key_delete','ini_section_delete',
'execute_program','execute_shell',
// Data structures
'ds_stack_create','ds_stack_destroy','ds_stack_clear','ds_stack_size','ds_stack_empty',
'ds_stack_push','ds_stack_pop','ds_stack_top',
'ds_queue_create','ds_queue_destroy','ds_queue_clear','ds_queue_size','ds_queue_empty',
'ds_queue_enqueue','ds_queue_dequeue','ds_queue_head','ds_queue_tail',
'ds_list_create','ds_list_destroy','ds_list_clear','ds_list_size','ds_list_empty','ds_list_add',
'ds_list_insert','ds_list_replace','ds_list_delete','ds_list_find_index','ds_list_find_value',
'ds_list_sort',
'ds_map_create','ds_map_destroy','ds_map_clear','ds_map_size','ds_map_empty','ds_map_add',
'ds_map_replace','ds_map_delete','ds_map_exists','ds_map_find_value','ds_map_find_previous',
'ds_map_find_next','ds_map_find_first','ds_map_find_last',
'ds_priority_create','ds_priority_destroy','ds_priority_clear','ds_priority_size',
'ds_priority_empty','ds_priority_add','ds_priority_change_priority','ds_priority_find_priority',
'ds_priority_delete_value','ds_priority_delete_min','ds_priority_find_min',
'ds_priority_delete_max','ds_priority_find_max',
'ds_grid_create','ds_grid_destroy','ds_grid_resize','ds_grid_width','ds_grid_height',
'ds_grid_clear','ds_grid_set','ds_grid_add','ds_grid_multiply','ds_grid_set_region',
'ds_grid_add_region','ds_grid_multiply_region','ds_grid_set_disk','ds_grid_add_disk',
'ds_grid_multiply_disk','ds_grid_get','ds_grid_get_sum','ds_grid_get_max','ds_grid_get_min',
'ds_grid_get_mean','ds_grid_get_disk_sum','ds_grid_get_disk_min','ds_grid_get_disk_max',
'ds_grid_get_disk_mean','ds_grid_value_exists','ds_grid_value_x','ds_grid_value_y',
'ds_grid_value_disk_exists','ds_grid_value_disk_x','ds_grid_value_disk_y',
// Creating particles
'effect_create_below','effect_create_above','effect_clear',
'part_type_create','part_type_destroy','part_type_exists','part_type_clear','part_type_shape',
'part_type_sprite','part_type_size','part_type_scale',
'part_type_orientation','part_type_color1','part_type_color2','part_type_color3',
'part_type_color_mix','part_type_color_rgb','part_type_color_hsv',
'part_type_alpha1','part_type_alpha2','part_type_alpha3','part_type_blend','part_type_life',
'part_type_step','part_type_death','part_type_speed','part_type_direction','part_type_gravity',
'part_system_create','part_system_destroy','part_system_exists','part_system_clear',
'part_system_draw_order','part_system_depth','part_system_position',
'part_system_automatic_update','part_system_automatic_draw','part_system_update',
'part_system_drawit','part_particles_create','part_particles_create_color',
'part_particles_clear','part_particles_count',
'part_emitter_create','part_emitter_destroy','part_emitter_destroy_all','part_emitter_exists',
'part_emitter_clear','part_emitter_region','part_emitter_burst','part_emitter_stream',
'part_attractor_create','part_attractor_destroy','part_attractor_destroy_all',
'part_attractor_exists','part_attractor_clear','part_attractor_position','part_attractor_force',
'part_destroyer_create','part_destroyer_destroy','part_destroyer_destroy_all',
'part_destroyer_exists','part_destroyer_clear','part_destroyer_region',
'part_deflector_create','part_deflector_destroy','part_deflector_destroy_all',
'part_deflector_exists','part_deflector_clear','part_deflector_region','part_deflector_kind',
'part_deflector_friction',
'part_changer_create','part_changer_destroy','part_changer_destroy_all','part_changer_exists',
'part_changer_clear','part_changer_region','part_changer_types','part_changer_kind',
// Multiplayer games
'mplay_init_ipx','mplay_init_tcpip','mplay_init_modem','mplay_init_serial',
'mplay_connect_status','mplay_end','mplay_ipaddress',
'mplay_session_create','mplay_session_find','mplay_session_name','mplay_session_join',
'mplay_session_mode','mplay_session_status','mplay_session_end',
'mplay_player_find','mplay_player_name','mplay_player_id',
'mplay_data_write','mplay_data_read','mplay_data_mode',
'mplay_message_send','mplay_message_send_guaranteed','mplay_message_receive','mplay_message_id',
'mplay_message_value','mplay_message_player','mplay_message_name','mplay_message_count',
'mplay_message_clear',
// Using DLL's
'external_define','external_call','external_free','window_handle',
// 3D Graphics
'd3d_start','d3d_end','d3d_set_hidden','d3d_set_perspective',
'd3d_set_depth',
'd3d_primitive_begin','d3d_vertex','d3d_vertex_color','d3d_primitive_end',
'd3d_primitive_begin_texture','d3d_vertex_texture','d3d_vertex_texture_color','d3d_set_culling',
'd3d_draw_block','d3d_draw_cylinder','d3d_draw_cone','d3d_draw_ellipsoid','d3d_draw_wall',
'd3d_draw_floor',
'd3d_set_projection','d3d_set_projection_ext','d3d_set_projection_ortho',
'd3d_set_projection_perspective',
'd3d_transform_set_identity','d3d_transform_set_translation','d3d_transform_set_scaling',
'd3d_transform_set_rotation_x','d3d_transform_set_rotation_y','d3d_transform_set_rotation_z',
'd3d_transform_set_rotation_axis','d3d_transform_add_translation','d3d_transform_add_scaling',
'd3d_transform_add_rotation_x','d3d_transform_add_rotation_y','d3d_transform_add_rotation_z',
'd3d_transform_add_rotation_axis','d3d_transform_stack_clear','d3d_transform_stack_empty',
'd3d_transform_stack_push','d3d_transform_stack_pop','d3d_transform_stack_top',
'd3d_transform_stack_discard',
'd3d_set_fog',
'd3d_set_lighting','d3d_set_shading','d3d_light_define_direction','d3d_light_define_point',
'd3d_light_enable','d3d_vertex_normal','d3d_vertex_normal_color','d3d_vertex_normal_texture',
'd3d_vertex_normal_texture_color',
'd3d_model_create','d3d_model_destroy','d3d_model_clear','d3d_model_save','d3d_model_load',
'd3d_model_draw','d3d_model_primitive_begin','d3d_model_vertex','d3d_model_vertex_color',
'd3d_model_vertex_texture','d3d_model_vertex_texture_color','d3d_model_vertex_normal',
'd3d_model_vertex_normal_color','d3d_model_vertex_normal_texture',
'd3d_model_vertex_normal_texture_color','d3d_model_primitive_end','d3d_model_block',
'd3d_model_cylinder','d3d_model_cone','d3d_model_ellipsoid','d3d_model_wall','d3d_model_floor'
),
// constants
4 => array(
'true', 'false', 'pi',
'ev_destroy','ev_step','ev_alarm','ev_keyboard','ev_mouse','ev_collision','ev_other','ev_draw',
'ev_keypress','ev_keyrelease','ev_left_button','ev_right_button','ev_middle_button',
'ev_no_button','ev_left_press','ev_right_press','ev_middle_press','ev_left_release',
'ev_right_release','ev_middle_release','ev_mouse_enter','ev_mouse_leave','ev_mouse_wheel_up',
'ev_mouse_wheel_down','ev_global_left_button','ev_global_right_button','ev_global_middle_button',
'ev_global_left_press','ev_global_right_press','ev_global_middle_press','ev_global_left_release',
'ev_global_right_release','ev_global_middle_release','ev_joystick1_left','ev_joystick1_right',
'ev_joystick1_up','ev_joystick1_down','ev_joystick1_button1','ev_joystick1_button2',
'ev_joystick1_button3','ev_joystick1_button4','ev_joystick1_button5','ev_joystick1_button6',
'ev_joystick1_button7','ev_joystick1_button8','ev_joystick2_left','ev_joystick2_right',
'ev_joystick2_up','ev_joystick2_down','ev_joystick2_button1','ev_joystick2_button2',
'ev_joystick2_button3','ev_joystick2_button4','ev_joystick2_button5','ev_joystick2_button6',
'ev_joystick2_button7','ev_joystick2_button8',
'ev_outside','ev_boundary','ev_game_start','ev_game_end','ev_room_start','ev_room_end',
'ev_no_more_lives','ev_no_more_health','ev_animation_end','ev_end_of_path','ev_user0','ev_user1',
'ev_user2','ev_user3','ev_user4','ev_user5','ev_user6','ev_user7','ev_user8','ev_user9',
'ev_user10','ev_user11','ev_user12','ev_user13','ev_user14','ev_user15','ev_step_normal',
'ev_step_begin','ev_step_end',
'vk_nokey','vk_anykey','vk_left','vk_right','vk_up','vk_down','vk_enter','vk_escape','vk_space',
'vk_shift','vk_control','vk_alt','vk_backspace','vk_tab','vk_home','vk_end','vk_delete',
'vk_insert','vk_pageup','vk_pagedown','vk_pause','vk_printscreen',
'vk_f1','vk_f2','vk_f3','vk_f4','vk_f5','vk_f6','vk_f7','vk_f8','vk_f9','vk_f10','vk_f11','vk_f12',
'vk_numpad0','vk_numpad1','vk_numpad2','vk_numpad3','vk_numpad4','vk_numpad5','vk_numpad6',
'vk_numpad7','vk_numpad8','vk_numpad9', 'vk_multiply','vk_divide','vk_add','vk_subtract',
'vk_decimal','vk_lshift','vk_lcontrol','vk_lalt','vk_rshift','vk_rcontrol','vk_ralt',
'c_aqua','c_black','c_blue','c_dkgray','c_fuchsia','c_gray','c_green','c_lime','c_ltgray',
'c_maroon','c_navy','c_olive','c_purple','c_red','c_silver','c_teal','c_white','c_yellow',
'fa_left', 'fa_center','fa_right','fa_top','fa_middle','fa_bottom',
'pr_pointlist','pr_linelist','pr_linestrip','pr_trianglelist','pr_trianglestrip',
'pr_trianglefan',
'cr_none','cr_arrow','cr_cross','cr_beam','cr_size_nesw','cr_size_ns','cr_size_nwse',
'cr_size_we','cr_uparrow','cr_hourglass','cr_drag','cr_nodrop','cr_hsplit','cr_vsplit',
'cr_multidrag','cr_sqlwait','cr_no','cr_appstart','cr_help','cr_handpoint','cr_size_all',
'se_chorus','se_echo','se_flanger','se_gargle','se_reverb','se_compressor','se_equalizer',
'fa_readonly','fa_hidden','fa_sysfile','fa_volumeid','fa_directory','fa_archive',
'pt_shape_pixel','pt_shape_disk','pt_shape_square','pt_shape_line','pt_shape_star',
'pt_shape_circle','pt_shape_ring','pt_shape_sphere','pt_shape_flare','pt_shape_spark',
'pt_shape_explosion','pt_shape_cloud','pt_shape_smoke','pt_shape_snow',
'ps_shape_rectangle','ps_shape_ellipse ','ps_shape_diamond','ps_shape_line',
'ps_distr_linear','ps_distr_gaussian','ps_force_constant','ps_force_linear','ps_force_quadratic',
'ps_deflect_horizontal', 'ps_deflect_vertical',
'ps_change_motion','ps_change_shape','ps_change_all'
),
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']',
'&&', '||', '^^', '&', '|', '^',
'<', '<=', '==', '!=', '>', '>=', '=',
'<<', '>>',
'+=', '-=', '*=', '/=',
'+', '-', '*', '/',
'!', '~', ',', ';'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'font-weight: bold; color: #000000;',
2 => 'font-weight: bold; color: #000000;',
3 => 'color: navy;',
4 => 'color: #663300;',
),
'COMMENTS' => array(
1 => 'font-style: italic; color: green;',
'MULTI' => 'font-style: italic; color: green;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #000000;' //'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #202020;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66; font-weight: bold;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

296
Sources/geshi/gnuplot.php Normal file
View File

@ -0,0 +1,296 @@
<?php
/*************************************************************************************
* gnuplot.php
* ----------
* Author: Milian Wolff (mail@milianw.de)
* Copyright: (c) 2008 Milian Wolff (http://milianw.de)
* Release Version: 1.0.8.11
* Date Started: 2008/07/07
*
* Gnuplot script language file for GeSHi.
*
* CHANGES
* -------
* 2008/07/07 (1.0.8)
* - Initial import
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Gnuplot',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('`', '"', "'"),
'ESCAPE_CHAR' => '\\',
'NUMBERS' =>
GESHI_NUMBER_INT_BASIC |
GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_SCI_SHORT |
GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array(
// copy output of help command, indent properly and use this replace regexp:
// ([a-z0-9_\-]+)(( )+|$) => '\1',\3
// commands as found in `help commands`
1 => array(
'bind', 'call', 'cd', 'clear',
'exit', 'fit', 'help', 'history',
'if', 'load', 'lower', 'pause',
'plot', 'print', 'pwd', 'quit',
'raise', 'replot', 'reread', 'reset',
'save', 'set', 'shell', 'show',
'splot', 'system', 'test', 'unset',
'update'
),
2 => array(
// set commands as returned by `help set`
'angles', 'arrow', 'autoscale', 'bars',
'bmargin', 'border', 'boxwidth', 'cbdata',
'cbdtics', 'cblabel', 'cbmtics', 'cbrange',
'cbtics', 'clabel', 'clip', 'cntrparam',
'colorbox', 'contour', 'datafile', 'date_specifiers',
'decimalsign', 'dgrid3d', 'dummy', 'encoding',
'fontpath', 'format', 'grid',
'hidden3d', 'historysize', 'isosamples', 'key',
'label', 'lmargin', 'loadpath', 'locale',
'log', 'logscale', 'macros', 'mapping',
'margin', 'missing', 'mouse', 'multiplot',
'mx2tics', 'mxtics', 'my2tics', 'mytics',
'mztics', 'object', 'offsets', 'origin',
'output', 'palette', 'parametric', 'pm3d',
'pointsize', 'polar', 'rmargin',
'rrange', 'samples', 'size', 'style',
'surface', 'table', 'term', 'terminal',
'termoption', 'tics', 'ticscale', 'ticslevel',
'time_specifiers', 'timefmt', 'timestamp', 'title',
'trange', 'urange', 'view',
'vrange', 'x2data', 'x2dtics', 'x2label',
'x2mtics', 'x2range', 'x2tics', 'x2zeroaxis',
'xdata', 'xdtics', 'xlabel', 'xmtics',
'xrange', 'xtics', 'xyplane', 'xzeroaxis',
'y2data', 'y2dtics', 'y2label', 'y2mtics',
'y2range', 'y2tics', 'y2zeroaxis', 'ydata',
'ydtics', 'ylabel', 'ymtics', 'yrange',
'ytics', 'yzeroaxis', 'zdata', 'zdtics',
'zero', 'zeroaxis', 'zlabel', 'zmtics',
'zrange', 'ztics', 'zzeroaxis',
// same but with leading no
'noangles', 'noarrow', 'noautoscale', 'nobars',
'nobmargin', 'noborder', 'noboxwidth', 'nocbdata',
'nocbdtics', 'nocblabel', 'nocbmtics', 'nocbrange',
'nocbtics', 'noclabel', 'noclip', 'nocntrparam',
'nocolorbox', 'nocontour', 'nodatafile', 'nodate_specifiers',
'nodecimalsign', 'nodgrid3d', 'nodummy', 'noencoding',
'nofit', 'nofontpath', 'noformat', 'nogrid',
'nohidden3d', 'nohistorysize', 'noisosamples', 'nokey',
'nolabel', 'nolmargin', 'noloadpath', 'nolocale',
'nolog', 'nologscale', 'nomacros', 'nomapping',
'nomargin', 'nomissing', 'nomouse', 'nomultiplot',
'nomx2tics', 'nomxtics', 'nomy2tics', 'nomytics',
'nomztics', 'noobject', 'nooffsets', 'noorigin',
'nooutput', 'nopalette', 'noparametric', 'nopm3d',
'nopointsize', 'nopolar', 'noprint', 'normargin',
'norrange', 'nosamples', 'nosize', 'nostyle',
'nosurface', 'notable', 'noterm', 'noterminal',
'notermoption', 'notics', 'noticscale', 'noticslevel',
'notime_specifiers', 'notimefmt', 'notimestamp', 'notitle',
'notmargin', 'notrange', 'nourange', 'noview',
'novrange', 'nox2data', 'nox2dtics', 'nox2label',
'nox2mtics', 'nox2range', 'nox2tics', 'nox2zeroaxis',
'noxdata', 'noxdtics', 'noxlabel', 'noxmtics',
'noxrange', 'noxtics', 'noxyplane', 'noxzeroaxis',
'noy2data', 'noy2dtics', 'noy2label', 'noy2mtics',
'noy2range', 'noy2tics', 'noy2zeroaxis', 'noydata',
'noydtics', 'noylabel', 'noymtics', 'noyrange',
'noytics', 'noyzeroaxis', 'nozdata', 'nozdtics',
'nozero', 'nozeroaxis', 'nozlabel', 'nozmtics',
'nozrange', 'noztics', 'nozzeroaxis',
),
3 => array(
// predefined variables
'pi', 'NaN', 'GNUTERM',
'GPVAL_X_MIN', 'GPVAL_X_MAX', 'GPVAL_Y_MIN', 'GPVAL_Y_MAX',
'GPVAL_TERM', 'GPVAL_TERMOPTIONS', 'GPVAL_OUTPUT',
'GPVAL_VERSION', 'GPVAL_PATcHLEVEL', 'GPVAL_COMPILE_OPTIONS',
'MOUSE_KEY', 'MOUSE_X', 'MOUSE_X2', 'MOUSE_Y', 'MOUSE_Y2',
'MOUSE_BUTTON', 'MOUSE_SHIFT', 'MOUSE_ALT', 'MOUSE_CTRL'
),
4 => array(
// predefined functions `help functions`
'abs', 'acos', 'acosh', 'arg',
'asin', 'asinh', 'atan', 'atan2',
'atanh', 'besj0', 'besj1', 'besy0',
'besy1', 'ceil', 'column', 'cos',
'cosh', 'defined', 'erf', 'erfc',
'exists', 'exp', 'floor', 'gamma',
'gprintf', 'ibeta', 'igamma', 'imag',
'int', 'inverf', 'invnorm', 'lambertw',
'lgamma', 'log10', 'norm',
'rand', 'random', 'real', 'sgn',
'sin', 'sinh', 'sprintf', 'sqrt',
'stringcolumn', 'strlen', 'strstrt', 'substr',
'tan', 'tanh', 'timecolumn',
'tm_hour', 'tm_mday', 'tm_min', 'tm_mon',
'tm_sec', 'tm_wday', 'tm_yday', 'tm_year',
'valid', 'word', 'words',
),
5 => array(
// mixed arguments
// there is no sane way to get these ones easily...
'autofreq', 'x', 'y', 'z',
'lt', 'linetype', 'lw', 'linewidth', 'ls', 'linestyle',
'out', 'rotate by', 'screen',
'enhanced', 'via',
// `help set key`
'on', 'off', 'default', 'inside', 'outside', 'tmargin',
'at', 'left', 'right', 'center', 'top', 'bottom', 'vertical', 'horizontal', 'Left', 'Right',
'noreverse', 'reverse', 'noinvert', 'invert', 'samplen', 'spacing', 'width', 'height',
'noautotitle', 'autotitle', 'noenhanced', 'nobox', 'box',
// help set terminal postscript
'landscape', 'portrait', 'eps', 'defaultplex', 'simplex', 'duplex',
'fontfile', 'add', 'delete', 'nofontfiles', 'level1', 'leveldefault',
'color', 'colour', 'monochrome', 'solid', 'dashed', 'dashlength', 'dl',
'rounded', 'butt', 'palfuncparam', 'blacktext', 'colortext', 'colourtext',
'font',
// help set terminal png
'notransparent', 'transparent', 'nointerlace', 'interlace',
'notruecolor', 'truecolor', 'tiny', 'small', 'medium', 'large', 'giant',
'nocrop', 'crop',
// `help plot`
'acsplines', 'bezier', 'binary', 'csplines',
'every',
'example', 'frequency', 'index', 'matrix',
'ranges', 'sbezier', 'smooth',
'special-filenames', 'thru',
'unique', 'using', 'with',
// `help plotting styles`
'boxerrorbars', 'boxes', 'boxxyerrorbars', 'candlesticks',
'dots', 'errorbars', 'errorlines', 'filledcurves',
'financebars', 'fsteps', 'histeps', 'histograms',
'image', 'impulses', 'labels', 'lines',
'linespoints', 'points', 'rgbimage', 'steps',
'vectors', 'xerrorbars', 'xerrorlines', 'xyerrorbars',
'xyerrorlines', 'yerrorbars', 'yerrorlines',
// terminals `help terminals`
'aed512', 'aed767', 'aifm', 'bitgraph',
'cgm', 'corel', 'dumb', 'dxf',
'eepic', 'emf', 'emtex', 'epslatex',
'epson-180dpi', 'epson-60dpi', 'epson-lx800', 'fig',
'gif', 'gpic', 'hp2623a', 'hp2648',
'hp500c', 'hpdj', 'hpgl', 'hpljii',
'hppj', 'imagen', 'jpeg', 'kc-tek40xx',
'km-tek40xx', 'latex', 'mf', 'mif',
'mp', 'nec-cp6', 'okidata', 'pbm',
'pcl5', 'png', 'pop', 'postscript',
'pslatex', 'pstex', 'pstricks', 'push',
'qms', 'regis', 'selanar', 'starc',
'svg', 'tandy-60dpi', 'tek40xx', 'tek410x',
'texdraw', 'tgif', 'tkcanvas', 'tpic',
'vttek', 'x11', 'xlib',
)
),
'REGEXPS' => array(
//Variable assignment
0 => "(?<![?;>\w])([a-zA-Z_][a-zA-Z0-9_]*)\s*=",
//Numbers with unit
1 => "(?<=^|\s)([0-9]*\.?[0-9]+\s*cm)"
),
'SYMBOLS' => array(
'-', '+', '~', '!', '$',
'*', '/', '%', '=', '<', '>', '&',
'^', '|', '.', 'eq', 'ne', '?:', ':', '`', ','
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #990000;',
3 => 'color: #550000;',
4 => 'color: #7a0874;',
5 => 'color: #448888;'
),
'COMMENTS' => array(
1 => 'color: #adadad; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight:bold;'
),
'BRACKETS' => array(
0 => 'color: #000099; font-weight:bold;'
),
'STRINGS' => array(
0 => 'color: #0000ff;',
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #000; font-weight: bold;'
),
'REGEXPS' => array(
0 => 'color: #007800;',
1 => 'color: #cc66cc;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => 'http://www.google.com/search?q=%22set+{FNAME}%22+site%3Ahttp%3A%2F%2Fwww.gnuplot.info%2Fdocs%2F&amp;btnI=lucky',
3 => '',
4 => '',
5 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
4 => array(
'DISALLOWED_AFTER' => "(?![\.\-a-zA-Z0-9_%])"
)
)
),
'TAB_WIDTH' => 4
);
?>

375
Sources/geshi/go.php Normal file
View File

@ -0,0 +1,375 @@
<?php
/*************************************************************************************
* go.php
* --------
* Author: Markus Jarderot (mizardx at gmail dot com)
* Copyright: (c) 2010 Markus Jarderot
* Release Version: 1.0.8.11
* Date Started: 2010/05/20
*
* Go language file for GeSHi.
*
* CHANGES
* -------
* 2010/05/20 (1.0.8.9)
* - First Release
*
* TODO (updated 2010/05/20)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array(
'LANG_NAME' => 'Go',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
# Raw strings (escapes and linebreaks ignored)
2 => "#`[^`]*`#"
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', "'"),
'ESCAPE_CHAR' => '',
'ESCAPE_REGEXP' => array(
1 => "#\\\\[abfnrtv\\\\\'\"]#",
2 => "#\\\\[0-7]{3}#",
3 => "#\\\\x[0-9a-fA-F]{2}#",
4 => "#\\\\u[0-9a-fA-F]{4}#",
5 => "#\\\\U[0-9a-fA-F]{8}#"
),
'NUMBERS' => array(
# integer literals (possibly imaginary)
0 => '\b([1-9][0-9]*i?|0[0-7]*|0[xX][0-9a-f]+|0[0-9]*i)\b',
# real floating point literals
1 => '\b((?:\d+\.\d*(?:[Ee][+-]?\d+\b)?|\.\d+(?:[Ee][+-]?\d+)?|\d+[Ee][+-]?\d+)?)\b',
# imaginary floating point literals
2 => '\b((?:\d+\.\d*(?:[Ee][+-]?\d+)?|\.\d+(?:[Ee][+-]?\d+)?|\d+[Ee][+-]?\d+)?i)\b'
),
'KEYWORDS' => array(
# statements
1 => array(
'break', 'case', 'const', 'continue', 'default', 'defer', 'else',
'fallthrough', 'for', 'go', 'goto', 'if', 'import', 'package',
'range', 'return', 'select', 'switch', 'type', 'var'
),
# literals
2 => array(
'nil', 'true', 'false'
),
# built-in functions
3 => array(
'close', 'closed', 'len', 'cap', 'new', 'make', 'copy', 'cmplx',
'real', 'imag', 'panic', 'recover', 'print', 'println'
),
# built-in types
4 => array(
'chan', 'func', 'interface', 'map', 'struct', 'bool', 'uint8',
'uint16', 'uint32', 'uint64', 'int8', 'int16', 'int32', 'int64',
'float32', 'float64', 'complex64', 'complex128', 'byte', 'uint',
'int', 'float', 'complex', 'uintptr', 'string'
),
# library types
5 => array(
'aes.Cipher', 'aes.KeySizeError', 'ascii85.CorruptInputError', 'asn1.BitString',
'asn1.RawValue', 'asn1.StructuralError', 'asn1.SyntaxError', 'ast.ChanDir',
'ast.Comment', 'ast.CommentGroup', 'ast.Decl', 'ast.Expr', 'ast.Field',
'ast.FieldList', 'ast.File', 'ast.Filter', 'ast.MergeMode', 'ast.Node',
'ast.ObjKind', 'ast.Object', 'ast.Package', 'ast.Scope', 'ast.Stmt',
'ast.Visitor', 'av.Color', 'av.Image', 'av.Window', 'base64.CorruptInputError',
'base64.Encoding', 'big.Int', 'big.Word', 'bignum.Integer', 'bignum.Rational',
'binary.ByteOrder', 'block.Cipher', 'block.EAXTagError', 'blowfish.Cipher',
'blowfish.KeySizeError', 'bufio.BufSizeError', 'bufio.Error', 'bufio.ReadWriter',
'bufio.Reader', 'bufio.Writer', 'bytes.Buffer', 'datafmt.Environment',
'datafmt.Format', 'datafmt.Formatter', 'datafmt.FormatterMap', 'datafmt.State',
'doc.Filter', 'doc.FuncDoc', 'doc.PackageDoc', 'doc.TypeDoc', 'doc.ValueDoc',
'draw.Color', 'draw.Context', 'draw.Image', 'draw.Mouse', 'draw.Op',
'draw.Point', 'draw.Rectangle', 'dwarf.AddrType', 'dwarf.ArrayType',
'dwarf.Attr', 'dwarf.BasicType', 'dwarf.BoolType', 'dwarf.CharType',
'dwarf.CommonType', 'dwarf.ComplexType', 'dwarf.Data', 'dwarf.DecodeError',
'dwarf.DotDotDotType', 'dwarf.Entry', 'dwarf.EnumType', 'dwarf.EnumValue',
'dwarf.Field', 'dwarf.FloatType', 'dwarf.FuncType', 'dwarf.IntType',
'dwarf.Offset', 'dwarf.PtrType', 'dwarf.QualType', 'dwarf.Reader',
'dwarf.StructField', 'dwarf.StructType', 'dwarf.Tag', 'dwarf.Type',
'dwarf.TypedefType', 'dwarf.UcharType', 'dwarf.UintType', 'dwarf.VoidType',
'elf.Class', 'elf.Data', 'elf.Dyn32', 'elf.Dyn64', 'elf.DynFlag', 'elf.DynTag',
'elf.File', 'elf.FileHeader', 'elf.FormatError', 'elf.Header32', 'elf.Header64',
'elf.Machine', 'elf.NType', 'elf.OSABI', 'elf.Prog', 'elf.Prog32', 'elf.Prog64',
'elf.ProgFlag', 'elf.ProgHeader', 'elf.ProgType', 'elf.R_386', 'elf.R_ALPHA',
'elf.R_ARM', 'elf.R_PPC', 'elf.R_SPARC', 'elf.R_X86_64', 'elf.Rel32',
'elf.Rel64', 'elf.Rela32', 'elf.Rela64', 'elf.Section', 'elf.Section32',
'elf.Section64', 'elf.SectionFlag', 'elf.SectionHeader', 'elf.SectionIndex',
'elf.SectionType', 'elf.Sym32', 'elf.Sym64', 'elf.SymBind', 'elf.SymType',
'elf.SymVis', 'elf.Symbol', 'elf.Type', 'elf.Version', 'eval.ArrayType',
'eval.ArrayValue', 'eval.BoolValue', 'eval.BoundedType', 'eval.ChanType',
'eval.Code', 'eval.Constant', 'eval.Def', 'eval.DivByZeroError',
'eval.FloatValue', 'eval.Frame', 'eval.Func', 'eval.FuncDecl', 'eval.FuncType',
'eval.FuncValue', 'eval.IMethod', 'eval.IdealFloatValue', 'eval.IdealIntValue',
'eval.IndexError', 'eval.IntValue', 'eval.Interface', 'eval.InterfaceType',
'eval.InterfaceValue', 'eval.KeyError', 'eval.Map', 'eval.MapType',
'eval.MapValue', 'eval.Method', 'eval.MultiType', 'eval.NamedType',
'eval.NegativeCapacityError', 'eval.NegativeLengthError', 'eval.NilPointerError',
'eval.PtrType', 'eval.PtrValue', 'eval.RedefinitionError', 'eval.Scope',
'eval.Slice', 'eval.SliceError', 'eval.SliceType', 'eval.SliceValue',
'eval.StringValue', 'eval.StructField', 'eval.StructType', 'eval.StructValue',
'eval.Thread', 'eval.Type', 'eval.UintValue', 'eval.Value', 'eval.Variable',
'eval.World', 'exec.Cmd', 'expvar.Int', 'expvar.IntFunc', 'expvar.KeyValue',
'expvar.Map', 'expvar.String', 'expvar.StringFunc', 'expvar.Var', 'flag.Flag',
'flag.Value', 'flate.CorruptInputError', 'flate.InternalError',
'flate.ReadError', 'flate.Reader', 'flate.WriteError', 'flate.WrongValueError',
'fmt.Formatter', 'fmt.GoStringer', 'fmt.State', 'fmt.Stringer',
'git85.CorruptInputError', 'gob.Decoder', 'gob.Encoder', 'gosym.DecodingError',
'gosym.Func', 'gosym.LineTable', 'gosym.Obj', 'gosym.Sym', 'gosym.Table',
'gosym.UnknownFileError', 'gosym.UnknownLineError', 'gzip.Deflater',
'gzip.Header', 'gzip.Inflater', 'hash.Hash', 'hash.Hash32', 'hash.Hash64',
'heap.Interface', 'hex.InvalidHexCharError', 'hex.OddLengthInputError',
'http.ClientConn', 'http.Conn', 'http.Handler', 'http.HandlerFunc',
'http.ProtocolError', 'http.Request', 'http.Response', 'http.ServeMux',
'http.ServerConn', 'http.URL', 'http.URLError', 'http.URLEscapeError',
'image.Alpha', 'image.AlphaColor', 'image.Color', 'image.ColorImage',
'image.ColorModel', 'image.ColorModelFunc', 'image.Image', 'image.NRGBA',
'image.NRGBA64', 'image.NRGBA64Color', 'image.NRGBAColor', 'image.Paletted',
'image.RGBA', 'image.RGBA64', 'image.RGBA64Color', 'image.RGBAColor',
'io.Closer', 'io.Error', 'io.PipeReader', 'io.PipeWriter', 'io.ReadByter',
'io.ReadCloser', 'io.ReadSeeker', 'io.ReadWriteCloser', 'io.ReadWriteSeeker',
'io.ReadWriter', 'io.Reader', 'io.ReaderAt', 'io.ReaderFrom', 'io.SectionReader',
'io.Seeker', 'io.WriteCloser', 'io.WriteSeeker', 'io.Writer', 'io.WriterAt',
'io.WriterTo', 'iterable.Func', 'iterable.Group', 'iterable.Grouper',
'iterable.Injector', 'iterable.Iterable', 'jpeg.FormatError', 'jpeg.Reader',
'jpeg.UnsupportedError', 'json.Decoder', 'json.Encoder',
'json.InvalidUnmarshalError', 'json.Marshaler', 'json.MarshalerError',
'json.SyntaxError', 'json.UnmarshalTypeError', 'json.Unmarshaler',
'json.UnsupportedTypeError', 'list.Element', 'list.List', 'log.Logger',
'macho.Cpu', 'macho.File', 'macho.FileHeader', 'macho.FormatError', 'macho.Load',
'macho.LoadCmd', 'macho.Regs386', 'macho.RegsAMD64', 'macho.Section',
'macho.Section32', 'macho.Section64', 'macho.SectionHeader', 'macho.Segment',
'macho.Segment32', 'macho.Segment64', 'macho.SegmentHeader', 'macho.Thread',
'macho.Type', 'net.Addr', 'net.AddrError', 'net.Conn', 'net.DNSConfigError',
'net.DNSError', 'net.Error', 'net.InvalidAddrError', 'net.InvalidConnError',
'net.Listener', 'net.OpError', 'net.PacketConn', 'net.TCPAddr', 'net.TCPConn',
'net.TCPListener', 'net.UDPAddr', 'net.UDPConn', 'net.UnixAddr', 'net.UnixConn',
'net.UnixListener', 'net.UnknownNetworkError', 'net.UnknownSocketError',
'netchan.Dir', 'netchan.Exporter', 'netchan.Importer', 'nntp.Article',
'nntp.Conn', 'nntp.Error', 'nntp.Group', 'nntp.ProtocolError', 'ogle.Arch',
'ogle.ArchAlignedMultiple', 'ogle.ArchLSB', 'ogle.Breakpoint', 'ogle.Event',
'ogle.EventAction', 'ogle.EventHandler', 'ogle.EventHook', 'ogle.FormatError',
'ogle.Frame', 'ogle.Goroutine', 'ogle.GoroutineCreate', 'ogle.GoroutineExit',
'ogle.NoCurrentGoroutine', 'ogle.NotOnStack', 'ogle.Process',
'ogle.ProcessNotStopped', 'ogle.ReadOnlyError', 'ogle.RemoteMismatchError',
'ogle.UnknownArchitecture', 'ogle.UnknownGoroutine', 'ogle.UsageError',
'os.Errno', 'os.Error', 'os.ErrorString', 'os.File', 'os.FileInfo',
'os.LinkError', 'os.PathError', 'os.SyscallError', 'os.Waitmsg', 'patch.Diff',
'patch.File', 'patch.GitBinaryLiteral', 'patch.Op', 'patch.Set',
'patch.SyntaxError', 'patch.TextChunk', 'patch.Verb', 'path.Visitor',
'pdp1.HaltError', 'pdp1.LoopError', 'pdp1.Trapper', 'pdp1.UnknownInstrError',
'pdp1.Word', 'pem.Block', 'png.FormatError', 'png.IDATDecodingError',
'png.UnsupportedError', 'printer.Config', 'printer.HTMLTag', 'printer.Styler',
'proc.Breakpoint', 'proc.Cause', 'proc.Process', 'proc.ProcessExited',
'proc.Regs', 'proc.Signal', 'proc.Stopped', 'proc.Thread', 'proc.ThreadCreate',
'proc.ThreadExit', 'proc.Word', 'quick.CheckEqualError', 'quick.CheckError',
'quick.Config', 'quick.Generator', 'quick.SetupError', 'rand.Rand',
'rand.Source', 'rand.Zipf', 'rc4.Cipher', 'rc4.KeySizeError',
'reflect.ArrayOrSliceType', 'reflect.ArrayOrSliceValue', 'reflect.ArrayType',
'reflect.ArrayValue', 'reflect.BoolType', 'reflect.BoolValue', 'reflect.ChanDir',
'reflect.ChanType', 'reflect.ChanValue', 'reflect.Complex128Type',
'reflect.Complex128Value', 'reflect.Complex64Type', 'reflect.Complex64Value',
'reflect.ComplexType', 'reflect.ComplexValue', 'reflect.Float32Type',
'reflect.Float32Value', 'reflect.Float64Type', 'reflect.Float64Value',
'reflect.FloatType', 'reflect.FloatValue', 'reflect.FuncType',
'reflect.FuncValue', 'reflect.Int16Type', 'reflect.Int16Value',
'reflect.Int32Type', 'reflect.Int32Value', 'reflect.Int64Type',
'reflect.Int64Value', 'reflect.Int8Type', 'reflect.Int8Value', 'reflect.IntType',
'reflect.IntValue', 'reflect.InterfaceType', 'reflect.InterfaceValue',
'reflect.MapType', 'reflect.MapValue', 'reflect.Method', 'reflect.PtrType',
'reflect.PtrValue', 'reflect.SliceHeader', 'reflect.SliceType',
'reflect.SliceValue', 'reflect.StringHeader', 'reflect.StringType',
'reflect.StringValue', 'reflect.StructField', 'reflect.StructType',
'reflect.StructValue', 'reflect.Type', 'reflect.Uint16Type',
'reflect.Uint16Value', 'reflect.Uint32Type', 'reflect.Uint32Value',
'reflect.Uint64Type', 'reflect.Uint64Value', 'reflect.Uint8Type',
'reflect.Uint8Value', 'reflect.UintType', 'reflect.UintValue',
'reflect.UintptrType', 'reflect.UintptrValue', 'reflect.UnsafePointerType',
'reflect.UnsafePointerValue', 'reflect.Value', 'regexp.Error', 'regexp.Regexp',
'ring.Ring', 'rpc.Call', 'rpc.Client', 'rpc.ClientCodec', 'rpc.InvalidRequest',
'rpc.Request', 'rpc.Response', 'rpc.ServerCodec', 'rsa.DecryptionError',
'rsa.MessageTooLongError', 'rsa.PKCS1v15Hash', 'rsa.PrivateKey', 'rsa.PublicKey',
'rsa.VerificationError', 'runtime.ArrayType', 'runtime.BoolType',
'runtime.ChanDir', 'runtime.ChanType', 'runtime.Complex128Type',
'runtime.Complex64Type', 'runtime.ComplexType', 'runtime.Error',
'runtime.Float32Type', 'runtime.Float64Type', 'runtime.FloatType',
'runtime.Func', 'runtime.FuncType', 'runtime.Int16Type', 'runtime.Int32Type',
'runtime.Int64Type', 'runtime.Int8Type', 'runtime.IntType',
'runtime.InterfaceType', 'runtime.Itable', 'runtime.MapType',
'runtime.MemProfileRecord', 'runtime.MemStatsType', 'runtime.PtrType',
'runtime.SliceType', 'runtime.StringType', 'runtime.StructType', 'runtime.Type',
'runtime.TypeAssertionError', 'runtime.Uint16Type', 'runtime.Uint32Type',
'runtime.Uint64Type', 'runtime.Uint8Type', 'runtime.UintType',
'runtime.UintptrType', 'runtime.UnsafePointerType', 'scanner.Error',
'scanner.ErrorHandler', 'scanner.ErrorVector', 'scanner.Position',
'scanner.Scanner', 'script.Close', 'script.Closed', 'script.Event',
'script.ReceivedUnexpected', 'script.Recv', 'script.RecvMatch', 'script.Send',
'script.SetupError', 'signal.Signal', 'signal.UnixSignal', 'sort.Interface',
'srpc.Client', 'srpc.Errno', 'srpc.Handler', 'srpc.RPC', 'strconv.NumError',
'strings.Reader', 'sync.Mutex', 'sync.RWMutex',
'syscall.ByHandleFileInformation', 'syscall.Cmsghdr', 'syscall.Dirent',
'syscall.EpollEvent', 'syscall.Fbootstraptransfer_t', 'syscall.FdSet',
'syscall.Filetime', 'syscall.Flock_t', 'syscall.Fstore_t', 'syscall.Iovec',
'syscall.Kevent_t', 'syscall.Linger', 'syscall.Log2phys_t', 'syscall.Msghdr',
'syscall.Overlapped', 'syscall.PtraceRegs', 'syscall.Radvisory_t',
'syscall.RawSockaddr', 'syscall.RawSockaddrAny', 'syscall.RawSockaddrInet4',
'syscall.RawSockaddrInet6', 'syscall.RawSockaddrUnix', 'syscall.Rlimit',
'syscall.Rusage', 'syscall.Sockaddr', 'syscall.SockaddrInet4',
'syscall.SockaddrInet6', 'syscall.SockaddrUnix', 'syscall.Stat_t',
'syscall.Statfs_t', 'syscall.Sysinfo_t', 'syscall.Time_t', 'syscall.Timespec',
'syscall.Timeval', 'syscall.Timex', 'syscall.Tms', 'syscall.Ustat_t',
'syscall.Utimbuf', 'syscall.Utsname', 'syscall.WaitStatus',
'syscall.Win32finddata', 'syslog.Priority', 'syslog.Writer', 'tabwriter.Writer',
'tar.Header', 'tar.Reader', 'tar.Writer', 'template.Error',
'template.FormatterMap', 'template.Template', 'testing.Benchmark',
'testing.Regexp', 'testing.Test', 'time.ParseError', 'time.Ticker', 'time.Time',
'tls.CASet', 'tls.Certificate', 'tls.Config', 'tls.Conn', 'tls.ConnectionState',
'tls.Listener', 'token.Position', 'token.Token', 'unicode.CaseRange',
'unicode.Range', 'unsafe.ArbitraryType', 'vector.LessInterface',
'websocket.Conn', 'websocket.Draft75Handler', 'websocket.Handler',
'websocket.ProtocolError', 'websocket.WebSocketAddr', 'x509.Certificate',
'x509.ConstraintViolationError', 'x509.KeyUsage', 'x509.Name',
'x509.PublicKeyAlgorithm', 'x509.SignatureAlgorithm',
'x509.UnhandledCriticalExtension', 'x509.UnsupportedAlgorithmError', 'xml.Attr',
'xml.EndElement', 'xml.Name', 'xml.Parser', 'xml.ProcInst', 'xml.StartElement',
'xml.SyntaxError', 'xml.Token', 'xml.UnmarshalError', 'xtea.Cipher',
'xtea.KeySizeError'
)
),
'SYMBOLS' => array(
# delimiters
1 => array(
'(', ')', '{', '}', '[', ']', ',', ':', ';'
),
# assignments
2 => array(
'<<=', '!=', '%=', '&=', '&^=', '*=', '+=', '-=', '/=', ':=', '>>=',
'^=', '|=', '=', '++', '--'
),
# operators
3 => array(
'<=', '<', '==', '>', '>=', '&&', '!', '||', '&', '&^', '|', '^',
'>>', '<<', '*', '%', '+', '-', '.', '/', '<-'),
# vararg
4 => array(
'...'
)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true
),
'STYLES' => array(
'KEYWORDS' => array(
# statements
1 => 'color: #b1b100; font-weight: bold;',
# literals
2 => 'color: #000000; font-weight: bold;',
# built-in functions
3 => 'color: #000066;',
# built-in types
4 => 'color: #993333;',
# library types
5 => 'color: #003399;'
),
'COMMENTS' => array(
# single-line comments
1 => 'color: #666666; font-style: italic;',
# raw strings
2 => 'color: #0000ff;',
# multi-line comments
'MULTI' => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
# simple escape
1 => 'color: #000099; font-weight: bold;',
# octal escape
2 => 'color: #000099;',
# hex escape
3 => 'color: #000099;',
# unicode escape
4 => 'color: #000099;',
# long unicode escape
5 => 'color: #000099;'
),
'BRACKETS' => array(
),
'STRINGS' => array(
0 => 'color: #0000ff;',
0 => 'color: #cc66cc;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
0 => 'color: #004000;'
),
'SYMBOLS' => array(
# delimiters
1 => 'color: #339933;',
# assignments
2 => 'color: #339933;',
# operators
3 => 'color: #339933;',
# vararg (highlighted as a keyword)
4 => 'color: #000000; font-weight: bold;'
),
'REGEXPS' => array(
# If CSS classes are enabled, these would be highlighted as numbers (nu0)
# integer literals (possibly imaginary)
//0 => 'color: #cc66cc;',
# real floating point literals
//1 => 'color: #cc66cc;',
# imaginary floating point literals
//2 => 'color: #cc66cc;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => 'http://golang.org/search?q={FNAME}'
),
'REGEXPS' => array(
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(1 => '.'),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array(),
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'BRACKETS' => GESHI_NEVER, # handled by symbols
)
)
);
?>

1011
Sources/geshi/groovy.php Normal file

File diff suppressed because it is too large Load Diff

153
Sources/geshi/gwbasic.php Normal file
View File

@ -0,0 +1,153 @@
<?php
/*************************************************************************************
* gwbasic.php
* ----------
* Author: José Gabriel Moya Yangüela (josemoya@gmail.com)
* Copyright: (c) 2010 José Gabriel Moya Yangüela (http://doc.apagada.com)
* Release Version: 1.0.8.11
* Date Started: 2010/01/30
*
* GwBasic language file for GeSHi.
*
* CHANGES
* -------
* REM was not classified as comment.
* APPEND and RANDOM missing.
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'GwBasic',
'COMMENT_SINGLE' => array(1 => "'", 2=> "REM"),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
/* Statements */
1 => array('END','FOR','NEXT','DATA','INPUT','DIM','READ','LET',
'GOTO','RUN','IF','RESTORE','GOSUB','RETURN','REM',
'STOP','PRINT','CLEAR','LIST','NEW','ON','WAIT','DEF',
'POKE','CONT','OUT','LPRINT','LLIST','WIDTH','ELSE',
'TRON','TROFF','SWAP','ERASE','EDIT','ERROR','RESUME',
'DELETE','AUTO','RENUM','DEFSTR','DEFINT','DEFSNG',
'DEFDBL','LINE','WHILE','WEND','CALL','WRITE','OPTION',
'RANDOMIZE','OPEN','CLOSE','LOAD','MERGE','SAVE',
'COLOR','CLS','MOTOR','BSAVE','BLOAD','SOUND','BEEP',
'PSET','PRESET','SCREEN','KEY','LOCATE','TO','THEN',
'STEP','USR','FN','SPC','NOT','ERL','ERR','STRING',
'USING','INSTR','VARPTR','CSRLIN','POINT','OFF',
'FILES','FIELD','SYSTEM','NAME','LSET','RSET','KILL',
'PUT','GET','RESET','COMMON','CHAIN','PAINT','COM',
'CIRCLE','DRAW','PLAY','TIMER','IOCTL','CHDIR','MKDIR',
'RMDIR','SHELL','VIEW','WINDOW','PMAP','PALETTE','LCOPY',
'CALLS','PCOPY','LOCK','UNLOCK','RANDOM','APPEND',
),
2 => array(
/* Functions */
'CVI','CVS','CVD','MKI','MKS','MKD','ENVIRON',
'LEFT','RIGHT','MID','SGN','INT','ABS',
'SQR','SIN','LOG','EXP','COS','TAN','ATN',
'FRE','INP','POS','LEN','STR','VAL','ASC',
'CHR','PEEK','SPACE','OCT','HEX','LPOS',
'CINT','CSNG','CDBL','FIX','PEN','STICK',
'STRIG','EOF','LOC','LOF'
),
3 => array(
/* alpha Operators */
'AND','OR','XOR','EQV','IMP','MOD'
),
4 => array(
/* parameterless functions */
'INKEY','DATE','TIME','ERDEV','RND'
)
),
'SYMBOLS' => array(
0 => array(
'>','=','<','+','-','*','/','^','\\'
),
1 => array(
'?'
)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #00a1a1;font-weight: bold',
2 => 'color: #000066;font-weight: bold',
3 => 'color: #00a166;font-weight: bold',
4 => 'color: #0066a1;font-weight: bold'
),
'COMMENTS' => array(
1 => 'color: #808080;',
2 => 'color: #808080;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
/* Same as KEYWORDS[3] (and, or, not...) */
0 => 'color: #00a166;font-weight: bold',
1 => 'color: #00a1a1;font-weight: bold',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099;'
),
'SCRIPT' => array(
),
'REGEXPS' => array(
1 => 'color: #708090'
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
1 => '^[0-9]+ '
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

202
Sources/geshi/haskell.php Normal file
View File

@ -0,0 +1,202 @@
<?php
/*************************************************************************************
* haskell.php
* ----------
* Author: Jason Dagit (dagit@codersbase.com) based on ocaml.php by Flaie (fireflaie@gmail.com)
* Copyright: (c) 2005 Flaie, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2005/08/27
*
* Haskell language file for GeSHi.
*
* CHANGES
* -------
* 2005/08/27 (1.0.0)
* - First Release
*
* TODO (updated 2005/08/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Haskell',
'COMMENT_SINGLE' => array( 1 => '--'),
'COMMENT_MULTI' => array('{-' => '-}'),
'COMMENT_REGEXP' => array(
2 => "/-->/",
3 => "/{-(?:(?R)|.)-}/s", //Nested Comments
),
'CASE_KEYWORDS' => 0,
'QUOTEMARKS' => array('"',"'"),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
/* main haskell keywords */
1 => array(
'as',
'case', 'of', 'class', 'data', 'default',
'deriving', 'do', 'forall', 'hiding', 'if', 'then',
'else', 'import', 'infix', 'infixl', 'infixr',
'instance', 'let', 'in', 'module', 'newtype',
'qualified', 'type', 'where'
),
/* define names of main librarys, so we can link to it */
2 => array(
'Foreign', 'Numeric', 'Prelude'
),
/* just link to Prelude functions, cause it's the default opened library when starting Haskell */
3 => array(
'not', 'otherwise', 'maybe',
'either', 'fst', 'snd', 'curry', 'uncurry',
'compare',
'max', 'min', 'succ', 'pred', 'toEnum', 'fromEnum',
'enumFrom', 'enumFromThen', 'enumFromTo',
'enumFromThenTo', 'minBound', 'maxBound',
'negate', 'abs', 'signum',
'fromInteger', 'toRational', 'quot', 'rem',
'div', 'mod', 'quotRem', 'divMod', 'toInteger',
'recip', 'fromRational', 'pi', 'exp',
'log', 'sqrt', 'logBase', 'sin', 'cos',
'tan', 'asin', 'acos', 'atan', 'sinh', 'cosh',
'tanh', 'asinh', 'acosh', 'atanh',
'properFraction', 'truncate', 'round', 'ceiling',
'floor', 'floatRadix', 'floatDigits', 'floatRange',
'decodeFloat', 'encodeFloat', 'exponent',
'significand', 'scaleFloat', 'isNaN', 'isInfinite',
'isDenomalized', 'isNegativeZero', 'isIEEE',
'atan2', 'subtract', 'even', 'odd', 'gcd',
'lcm', 'fromIntegral', 'realToFrac',
'return', 'fail', 'fmap',
'mapM', 'mapM_', 'sequence', 'sequence_',
'id', 'const','flip',
'until', 'asTypeOf', 'error', 'undefined',
'seq','map','filter', 'head',
'last', 'tail', 'init', 'null', 'length',
'reverse', 'foldl', 'foldl1', 'foldr',
'foldr1', 'and', 'or', 'any', 'all', 'sum',
'product', 'concat', 'concatMap', 'maximum',
'minimum', 'scanl', 'scanl1', 'scanr', 'scanr1',
'iterate', 'repeat', 'cycle', 'take', 'drop',
'splitAt', 'takeWhile', 'dropWhile', 'span',
'break', 'elem', 'notElem', 'lookup', 'zip',
'zip3', 'zipWith', 'zipWith3', 'unzip', 'unzip3',
'lines', 'words', 'unlines',
'unwords', 'showPrec', 'show', 'showList',
'shows', 'showChar', 'showString', 'showParen',
'readsPrec', 'readList', 'reads', 'readParen',
'read', 'lex', 'putChar', 'putStr', 'putStrLn',
'print', 'getChar', 'getLine', 'getContents',
'interact', 'readFile', 'writeFile', 'appendFile',
'readIO', 'readLn', 'ioError', 'userError', 'catch'
),
/* here Prelude Types */
4 => array (
'Bool', 'Maybe', 'Either', 'Ord', 'Ordering',
'Char', 'String', 'Eq', 'Enum', 'Bounded',
'Int', 'Integer', 'Float', 'Double', 'Rational',
'Num', 'Real', 'Integral', 'Fractional',
'Floating', 'RealFrac', 'RealFloat', 'Monad',
'Functor', 'Show', 'ShowS', 'Read', 'ReadS',
'IO'
),
/* finally Prelude Exceptions */
5 => array (
'IOError', 'IOException'
)
),
/* highlighting symbols is really important in Haskell */
'SYMBOLS' => array(
'|', '->', '<-', '@', '!', '::', '_', '~', '=', '?',
'&&', '||', '==', '/=', '<', '<=', '>',
'>=','+', '-', '*','/', '%', '**', '^', '^^',
'>>=', '>>', '=<<', '$', '.', ',', '$!',
'++', '!!'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true, /* functions name are case seinsitive */
3 => true, /* types name too */
4 => true, /* finally exceptions too */
5 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #06c; font-weight: bold;', /* nice blue */
2 => 'color: #06c; font-weight: bold;', /* blue as well */
3 => 'font-weight: bold;', /* make the preduled functions bold */
4 => 'color: #cccc00; font-weight: bold;', /* give types a different bg */
5 => 'color: maroon;'
),
'COMMENTS' => array(
1 => 'color: #5d478b; font-style: italic;',
2 => 'color: #339933; font-weight: bold;',
3 => 'color: #5d478b; font-style: italic;', /* light purple */
'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
),
'ESCAPE_CHAR' => array(
0 => 'background-color: #3cb371; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: green;'
),
'STRINGS' => array(
0 => 'background-color: #3cb371;' /* nice green */
),
'NUMBERS' => array(
0 => 'color: red;' /* pink */
),
'METHODS' => array(
1 => 'color: #060;' /* dark green */
),
'REGEXPS' => array(
),
'SYMBOLS' => array(
0 => 'color: #339933; font-weight: bold;'
),
'SCRIPT' => array(
)
),
'URLS' => array(
/* some of keywords are Prelude functions */
1 => '',
/* link to the wanted library */
2 => 'http://haskell.org/ghc/docs/latest/html/libraries/base/{FNAME}.html',
/* link to Prelude functions */
3 => 'http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:{FNAME}',
/* link to Prelude types */
4 => 'http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#t:{FNAME}',
/* link to Prelude exceptions */
5 => 'http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#t:{FNAME}',
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

161
Sources/geshi/haxe.php Normal file
View File

@ -0,0 +1,161 @@
<?php
/*************************************************************************************
* haxe.php
* --------
* Author: Andy Li (andy@onthewings.net)
* John Liao (colorhook@gmail.com)
* Copyright: (c) 2012 onthewings (http://www.onthewings.net/)
* 2010 colorhook (http://colorhook.com/)
* Release Version: 1.0.8.11
* Date Started: 2010/10/05
*
* Haxe language file for GeSHi.
* Haxe version: 2.10
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Haxe',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('/*' => '*/'),
'COMMENT_REGEXP' => array(
//Import and Package directives (Basic Support only)
2 => '/(?:(?<=import[\\n\\s])|(?<=using[\\n\\s])|(?<=package[\\n\\s]))[\\n\\s]*([a-zA-Z0-9_]+\\.)*([a-zA-Z0-9_]+|\*)(?=[\n\s;])/i',
// Haxe comments
3 => '#/\*\*(?![\*\/]).*\*/#sU',
),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
//http://haxe.org/ref/keywords
'break', 'callback', 'case', 'cast', 'catch', 'class', 'continue', 'default', 'do', 'dynamic',
'else', 'enum', 'extends', 'extern', /*'false',*/ 'for', 'function', 'here', 'if',
'implements', 'import', 'in', 'inline', 'interface', 'never', 'new', /*'null',*/ 'override',
'package', 'private', 'public', 'return', 'static', 'super', 'switch', 'this', 'throw',
'trace', /*'true',*/ 'try', 'typedef', 'untyped', 'using', 'var', 'while',
'macro', '$type',
),
2 => array(
//primitive values
'null', 'false', 'true',
),
3 => array(
//global types
'Array', 'ArrayAccess', /*'Bool',*/ 'Class', 'Date', 'DateTools', 'Dynamic',
'EReg', 'Enum', 'EnumValue', /*'Float',*/ 'Hash', /*'Int',*/ 'IntHash', 'IntIter',
'Iterable', 'Iterator', 'Lambda', 'List', 'Math', 'Null', 'Reflect', 'Std',
/*'String',*/ 'StringBuf', 'StringTools', 'Sys', 'Type', /*'UInt',*/ 'ValueType',
/*'Void',*/ 'Xml', 'XmlType',
),
4 => array(
//primitive types
'Void', 'Bool', 'Int', 'Float', 'UInt', 'String',
),
5 => array(
//compiler switches
"#if", "#elseif", "#else", "#end", "#error",
),
),
'SYMBOLS' => array(
//http://haxe.org/manual/operators
'++', '--',
'%',
'*', '/',
'+', '-',
'<<', '>>', '>>>',
'|', '&', '^',
'==', '!=', '>', '>=', '<', '<=',
'...',
'&&',
'||',
'?', ':',
'=', '+=', '-=', '/=', '*=', '<<=', '>>=', '>>>=', '|=', '&=', '^=',
'(', ')', '[', ']', '{', '}', ';',
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #6699cc; font-weight: bold;',
2 => 'color: #000066; font-weight: bold;',
3 => 'color: #03F; ',
4 => 'color: #000033; font-weight: bold;',
5 => 'color: #330000; font-weight: bold;',
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
2 => 'color: #006699;',
3 => 'color: #008000; font-style: italic; font-weight: bold;',
3 => 'color: #008000; font-style: italic; font-weight: bold;',
'MULTI' => 'color: #666666; font-style: italic;',
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;',
),
'BRACKETS' => array(
0 => 'color: #000000;',
),
'STRINGS' => array(
0 => 'color: #FF0000;',
),
'NUMBERS' => array(
0 => 'color: #cc66cc;',
),
'METHODS' => array(
1 => 'color: #006633;',
2 => 'color: #006633;',
),
'SYMBOLS' => array(
0 => 'color: #339933;',
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.',
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
);
?>

108
Sources/geshi/hicest.php Normal file
View File

@ -0,0 +1,108 @@
<?php
/*************************************************************************************
* hicest.php
* --------
* Author: Georg Petrich (spt@hicest.com)
* Copyright: (c) 2010 Georg Petrich (http://www.HicEst.com)
* Release Version: 1.0.8.11
* Date Started: 2010/03/15
*
* HicEst language file for GeSHi.
*
* CHANGES
* -------
* yyyy/mm/dd (v.v.v.v)
* - First Release
*
* TODO (updated yyyy/mm/dd)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array(
'LANG_NAME' => 'HicEst',
'COMMENT_SINGLE' => array(1 => '!'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', '\''),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'$cmd_line', 'abs', 'acos', 'alarm', 'alias', 'allocate', 'appendix', 'asin', 'atan', 'axis', 'beep',
'call', 'ceiling', 'char', 'character', 'com', 'continue', 'cos', 'cosh', 'data', 'diffeq', 'dimension', 'dlg', 'dll',
'do', 'edit', 'else', 'elseif', 'end', 'enddo', 'endif', 'exp', 'floor', 'function', 'fuz', 'goto', 'iand', 'ichar',
'ieor', 'if', 'index', 'init', 'int', 'intpol', 'ior', 'key', 'len', 'len_trim', 'line', 'lock', 'log', 'max', 'maxloc',
'min', 'minloc', 'mod', 'nint', 'not', 'open', 'pop', 'ran', 'read', 'real', 'return', 'rgb', 'roots', 'sign', 'sin',
'sinh', 'solve', 'sort', 'subroutine', 'sum', 'system', 'tan', 'tanh', 'then', 'time', 'use', 'window', 'write', 'xeq'
)
),
'SYMBOLS' => array(
1 => array(
'(', ')', '+', '-', '*', '/', '=', '<', '>', '!', '^', ':', ','
),
2 => array(
'$', '$$'
)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #ff0000;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
'MULTI' => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #009900;'
),
'STRINGS' => array(
0 => 'color: #0000ff;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;',
),
'METHODS' => array(
0 => 'color: #004000;'
),
'SYMBOLS' => array(
1 => 'color: #339933;',
2 => 'color: #ff0000;'
),
'REGEXPS' => array(),
'SCRIPT' => array()
),
'URLS' => array(1 => ''),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(),
'REGEXPS' => array(),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array()
);
?>

104
Sources/geshi/hq9plus.php Normal file
View File

@ -0,0 +1,104 @@
<?php
/*************************************************************************************
* hq9plus.php
* ----------
* Author: Benny Baumann (BenBE@geshi.org)
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2009/10/31
*
* HQ9+ language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/31 (1.0.8.1)
* - First Release
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'HQ9+',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
),
'SYMBOLS' => array(
'H', 'Q', '9', '+', 'h', 'q'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false
),
'STYLES' => array(
'KEYWORDS' => array(
),
'COMMENTS' => array(
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #a16000;'
),
'ESCAPE_CHAR' => array(
),
'SCRIPT' => array(
),
'REGEXPS' => array(
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'KEYWORDS' => GESHI_NEVER,
'COMMENTS' => GESHI_NEVER,
'STRINGS' => GESHI_NEVER,
'REGEXPS' => GESHI_NEVER,
'NUMBERS' => GESHI_NEVER
)
)
);
?>

View File

@ -0,0 +1,190 @@
<?php
/*************************************************************************************
* html4strict.php
* ---------------
* Author: Nigel McNie (nigel@geshi.org)
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2004/07/10
*
* HTML 4.01 strict language file for GeSHi.
*
* CHANGES
* -------
* 2005/12/28 (1.0.4)
* - Removed escape character for strings
* 2004/11/27 (1.0.3)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.2)
* - Added support for URLs
* 2004/08/05 (1.0.1)
* - Added INS and DEL
* - Removed the background colour from tags' styles
* 2004/07/14 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
* * Check that only HTML4 strict attributes are highlighted
* * Eliminate empty tags that aren't allowed in HTML4 strict
* * Split to several files - html4trans, xhtml1 etc
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'HTML',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
2 => array(
'a', 'abbr', 'acronym', 'address', 'applet', 'area',
'base', 'basefont', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'b',
'caption', 'center', 'cite', 'code', 'colgroup', 'col',
'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt',
'em',
'fieldset', 'font', 'form', 'frame', 'frameset',
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html',
'iframe', 'ilayer', 'img', 'input', 'ins', 'isindex', 'i',
'kbd',
'label', 'legend', 'link', 'li',
'map', 'meta',
'noframes', 'noscript',
'object', 'ol', 'optgroup', 'option',
'param', 'pre', 'p',
'q',
'samp', 'script', 'select', 'small', 'span', 'strike', 'strong', 'style', 'sub', 'sup', 's',
'table', 'tbody', 'td', 'textarea', 'text', 'tfoot', 'thead', 'th', 'title', 'tr', 'tt',
'ul', 'u',
'var',
),
3 => array(
'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis',
'background', 'bgcolor', 'border',
'cellpadding', 'cellspacing', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords',
'data', 'datetime', 'declare', 'defer', 'dir', 'disabled',
'enctype',
'face', 'for', 'frame', 'frameborder',
'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv',
'id', 'ismap',
'label', 'lang', 'language', 'link', 'longdesc',
'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple',
'name', 'nohref', 'noresize', 'noshade', 'nowrap',
'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload',
'profile', 'prompt',
'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules',
'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary',
'tabindex', 'target', 'text', 'title', 'type',
'usemap',
'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
'width'
)
),
'SYMBOLS' => array(
'/', '='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'SCRIPT' => array(
-2 => 'color: #404040;', // CDATA
-1 => 'color: #808080; font-style: italic;', // comments
0 => 'color: #00bbdd;',
1 => 'color: #ddbb00;',
2 => 'color: #009900;'
),
'REGEXPS' => array(
)
),
'URLS' => array(
2 => 'http://december.com/html/4/element/{FNAMEL}.html',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
'SCRIPT_DELIMITERS' => array(
-2 => array(
'<![CDATA[' => ']]>'
),
-1 => array(
'<!--' => '-->'
),
0 => array(
'<!DOCTYPE' => '>'
),
1 => array(
'&' => ';'
),
2 => array(
'<' => '>'
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
-2 => false,
-1 => false,
0 => false,
1 => false,
2 => true
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
2 => array(
'DISALLOWED_BEFORE' => '(?<=&lt;|&lt;\/)',
'DISALLOWED_AFTER' => '(?=\s|\/|&gt;)',
)
)
)
);
?>

212
Sources/geshi/html5.php Normal file
View File

@ -0,0 +1,212 @@
<?php
/*************************************************************************************
* html5.php
* ---------------
* Author: Nigel McNie (nigel@geshi.org)
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2004/07/10
*
* HTML 5 language file for GeSHi.
*
* CHANGES
* -------
* 2005/12/28 (1.0.4)
* - Removed escape character for strings
* 2004/11/27 (1.0.3)
* - Added support for multiple object splitters
* 2004/10/27 (1.0.2)
* - Added support for URLs
* 2004/08/05 (1.0.1)
* - Added INS and DEL
* - Removed the background colour from tags' styles
* 2004/07/14 (1.0.0)
* - First Release
*
* TODO (updated 2004/11/27)
* -------------------------
* * Check that only HTML4 strict attributes are highlighted
* * Eliminate empty tags that aren't allowed in HTML4 strict
* * Split to several files - html4trans, xhtml1 etc
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'HTML5',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
2 => array(
'a', 'abbr', 'address', 'article', 'area', 'aside', 'audio',
'base', 'bdo', 'blockquote', 'body', 'br', 'button', 'b',
'caption', 'cite', 'code', 'colgroup', 'col', 'canvas', 'command', 'datalist', 'details',
'dd', 'del', 'dfn', 'div', 'dl', 'dt',
'em', 'embed',
'fieldset', 'form', 'figcaption', 'figure', 'footer',
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html', 'header', 'hgroup',
'iframe', 'ilayer', 'img', 'input', 'ins', 'isindex', 'i',
'kbd', 'keygen',
'label', 'legend', 'link', 'li',
'map', 'meta', 'mark', 'meter',
'noscript', 'nav',
'object', 'ol', 'optgroup', 'option', 'output',
'param', 'pre', 'p', 'progress',
'q',
'rp', 'rt', 'ruby',
'samp', 'script', 'select', 'small', 'span', 'strong', 'style', 'sub', 'sup', 's', 'section', 'source', 'summary',
'table', 'tbody', 'td', 'textarea', 'text', 'tfoot', 'thead', 'th', 'title', 'tr', 'time',
'ul',
'var', 'video',
'wbr',
),
3 => array(
'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis', 'autocomplete', 'autofocus',
'background', 'bgcolor', 'border',
'cellpadding', 'cellspacing', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords', 'contenteditable', 'contextmenu',
'data', 'datetime', 'declare', 'defer', 'dir', 'disabled', 'draggable', 'dropzone',
'enctype',
'face', 'for', 'frame', 'frameborder', 'form', 'formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget',
'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv', 'hidden',
'id', 'ismap',
'label', 'lang', 'language', 'link', 'longdesc',
'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple', 'min', 'max',
'name', 'nohref', 'noresize', 'noshade', 'nowrap', 'novalidate',
'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onselect', 'onsubmit', 'onunload', 'onafterprint', 'onbeforeprint', 'onbeforeonload', 'onerror', 'onhaschange', 'onmessage', 'onoffline', 'ononline', 'onpagehide', 'onpageshow', 'onpopstate', 'onredo', 'onresize', 'onstorage', 'onundo', 'oncontextmenu', 'onformchange', 'onforminput', 'oninput', 'oninvalid', 'ondrag', 'ondragend', 'ondragenter', 'ondragleave', 'ondragover', 'ondragstart', 'ondrop', 'onmousewheel', 'onscroll', 'oncanplay', 'oncanplaythrough', 'ondurationchange', 'onemptied', 'onended', 'onloadeddata', 'onloadedmetadata', 'onloadstart', 'onpause', 'onplay', 'onplaying', 'onprogress', 'onratechange', 'onreadystatechange', 'onseeked', 'onseeking', 'onstalled', 'onsuspend', 'ontimeupdate', 'onvolumechange', 'onwaiting',
'profile', 'prompt', 'pattern', 'placeholder',
'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules', 'required',
'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary', 'spellcheck', 'step',
'tabindex', 'target', 'text', 'title', 'type',
'usemap',
'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
'width'
)
),
'SYMBOLS' => array(
'/', '='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'SCRIPT' => array(
-2 => 'color: #404040;', // CDATA
-1 => 'color: #808080; font-style: italic;', // comments
0 => 'color: #00bbdd;',
1 => 'color: #ddbb00;',
2 => 'color: #009900;'
),
'REGEXPS' => array(
)
),
'URLS' => array(
2 => 'http://december.com/html/4/element/{FNAMEL}.html',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
'SCRIPT_DELIMITERS' => array(
-2 => array(
'<![CDATA[' => ']]>'
),
-1 => array(
'<!--' => '-->'
),
0 => array(
'<!DOCTYPE' => '>'
),
1 => array(
'&' => ';'
),
2 => array(
'<' => '>'
)
),
'HIGHLIGHT_STRICT_BLOCK' => array(
-2 => false,
-1 => false,
0 => false,
1 => false,
2 => true
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
2 => array(
'DISALLOWED_BEFORE' => '(?<=&lt;|&lt;\/)',
'DISALLOWED_AFTER' => '(?=\s|\/|&gt;)',
)
)
)
);
?>

212
Sources/geshi/icon.php Normal file
View File

@ -0,0 +1,212 @@
<?php
/*************************************************************************************
* icon.php
* --------
* Author: Matt Oates (mattoates@gmail.com)
* Copyright: (c) 2010 Matt Oates (http://mattoates.co.uk)
* Release Version: 1.0.8.11
* Date Started: 2010/04/24
*
* Icon language file for GeSHi.
*
* CHANGES
* -------
* 2010/04/24 (0.0.0.2)
* - Validated with Geshi langcheck.php FAILED due to preprocessor keywords looking like symbols
* - Hard wrapped to improve readability
* 2010/04/20 (0.0.0.1)
* - First Release
*
* TODO (updated 2010/04/20)
* -------------------------
* - Do the &amp; need replacing with &?
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array(
'LANG_NAME' => 'Icon',
'COMMENT_SINGLE' => array(1 => '#'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', '\''),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'break', 'case', 'continue', 'create', 'default', 'do', 'else',
'end', 'every', 'fail', 'for', 'if', 'import', 'initial',
'initially', 'invocable', 'link', 'next', 'not', 'of', 'package',
'procedure', 'record', 'repeat', 'return', 'switch', 'suspend',
'then', 'to', 'until', 'while'
),
2 => array(
'global', 'local', 'static'
),
3 => array(
'allocated', 'ascii', 'clock', 'collections',
'column', 'cset', 'current', 'date', 'dateline', 'digits',
'dump', 'e', 'error', 'errornumber', 'errortext',
'errorvalue', 'errout', 'eventcode', 'eventsource', 'eventvalue',
'fail', 'features', 'file', 'host', 'input', 'lcase',
'letters', 'level', 'line', 'main', 'now', 'null',
'output', 'phi', 'pi', 'pos', 'progname', 'random',
'regions', 'source', 'storage', 'subject', 'syserr', 'time',
'trace', 'ucase', 'version', 'col', 'control', 'interval',
'ldrag', 'lpress', 'lrelease', 'mdrag', 'meta', 'mpress',
'mrelease', 'rdrag', 'resize', 'row', 'rpress', 'rrelease',
'shift', 'window', 'x', 'y'
),
4 => array(
'abs', 'acos', 'any', 'args', 'asin', 'atan', 'bal', 'center', 'char',
'chmod', 'close', 'cofail', 'collect', 'copy', 'cos', 'cset', 'ctime', 'delay', 'delete',
'detab', 'display', 'dtor', 'entab', 'errorclear', 'event', 'eventmask', 'EvGet', 'exit',
'exp', 'fetch', 'fieldnames', 'find', 'flock', 'flush', 'function', 'get', 'getch',
'getche', 'getenv', 'gettimeofday', 'globalnames', 'gtime', 'iand', 'icom', 'image',
'insert', 'integer', 'ior', 'ishift', 'ixor', 'key', 'left', 'list', 'load', 'loadfunc',
'localnames', 'log', 'many', 'map', 'match', 'member', 'mkdir', 'move', 'name', 'numeric',
'open', 'opmask', 'ord', 'paramnames', 'parent', 'pipe', 'pop', 'pos', 'proc', 'pull',
'push', 'put', 'read', 'reads', 'real', 'receive', 'remove', 'rename', 'repl', 'reverse',
'right', 'rmdir', 'rtod', 'runerr', 'seek', 'select', 'send', 'seq', 'serial', 'set',
'setenv', 'sort', 'sortf', 'sql', 'sqrt', 'stat', 'stop', 'string', 'system', 'tab',
'table', 'tan', 'trap', 'trim', 'truncate', 'type', 'upto', 'utime', 'variable', 'where',
'write', 'writes'
),
5 => array(
'Active', 'Alert', 'Bg', 'Clip', 'Clone', 'Color', 'ColorValue',
'CopyArea', 'Couple', 'DrawArc', 'DrawCircle', 'DrawCurve', 'DrawCylinder', 'DrawDisk',
'DrawImage', 'DrawLine', 'DrawPoint', 'DrawPolygon', 'DrawRectangle', 'DrawSegment',
'DrawSphere', 'DrawString', 'DrawTorus', 'EraseArea', 'Event', 'Fg', 'FillArc',
'FillCircle', 'FillPolygon', 'FillRectangle', 'Font', 'FreeColor', 'GotoRC', 'GotoXY',
'IdentifyMatrix', 'Lower', 'MatrixMode', 'NewColor', 'PaletteChars', 'PaletteColor',
'PaletteKey', 'Pattern', 'Pending', 'Pixel', 'PopMatrix', 'PushMatrix', 'PushRotate',
'PushScale', 'PushTranslate', 'QueryPointer', 'Raise', 'ReadImage', 'Refresh', 'Rotate',
'Scale', 'Texcoord', 'TextWidth', 'Texture', 'Translate', 'Uncouple', 'WAttrib',
'WDefault', 'WFlush', 'WindowContents', 'WriteImage', 'WSync'
),
6 => array(
'define', 'include', 'ifdef', 'ifndef', 'else', 'endif', 'error',
'line', 'undef'
),
7 => array(
'_V9', '_AMIGA', '_ACORN', '_CMS', '_MACINTOSH', '_MSDOS_386',
'_MS_WINDOWS_NT', '_MSDOS', '_MVS', '_OS2', '_POR', 'T', '_UNIX', '_POSIX', '_DBM',
'_VMS', '_ASCII', '_EBCDIC', '_CO_EXPRESSIONS', '_CONSOLE_WINDOW', '_DYNAMIC_LOADING',
'_EVENT_MONITOR', '_EXTERNAL_FUNCTIONS', '_KEYBOARD_FUNCTIONS', '_LARGE_INTEGERS',
'_MULTITASKING', '_PIPES', '_RECORD_IO', '_SYSTEM_FUNCTION', '_MESSAGING', '_GRAPHICS',
'_X_WINDOW_SYSTEM', '_MS_WINDOWS', '_WIN32', '_PRESENTATION_MGR', '_ARM_FUNCTIONS',
'_DOS_FUNCTIONS'
),
8 => array(
'line'
)
),
'SYMBOLS' => array(
1 => array(
'(', ')', '{', '}', '[', ']', '+', '-', '*', '/', '\\', '%', '=', '<', '>', '!', '^',
'&', '|', '?', ':', ';', ',', '.', '~', '@'
),
2 => array(
'$(', '$)', '$<', '$>', '$'
)
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
7 => true,
8 => true
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #b1b100;',
3 => 'color: #b1b100;',
4 => 'color: #b1b100;',
5 => 'color: #b1b100;',
6 => 'color: #b1b100;',
7 => 'color: #b1b100;',
8 => 'color: #b1b100;'
),
'COMMENTS' => array(
1 => 'color: #666666; font-style: italic;',
'MULTI' => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #009900;'
),
'STRINGS' => array(
0 => 'color: #0000ff;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;',
),
'METHODS' => array(
0 => 'color: #004000;'
),
'SYMBOLS' => array(
1 => 'color: #339933;',
2 => 'color: #b1b100;'
),
'REGEXPS' => array(),
'SCRIPT' => array()
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => '',
5 => '',
6 => '',
7 => '',
8 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(1 => '.'),
'REGEXPS' => array(),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(),
'HIGHLIGHT_STRICT_BLOCK' => array(),
'PARSER_CONTROL' => array(
'KEYWORDS' => array(
3 => array(
'DISALLOWED_BEFORE' => '(?<=&amp;)'
),
4 => array(
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9_\"\'])",
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_\"\'])"
),
6 => array(
'DISALLOWED_BEFORE' => '(?<=\$)'
),
8 => array(
'DISALLOWED_BEFORE' => '(?<=#)'
)
)
)
);
?>

123
Sources/geshi/idl.php Normal file
View File

@ -0,0 +1,123 @@
<?php
/*************************************************************************************
* idl.php
* -------
* Author: Cedric Bosdonnat (cedricbosdo@openoffice.org)
* Copyright: (c) 2006 Cedric Bosdonnat
* Release Version: 1.0.8.11
* Date Started: 2006/08/20
*
* Unoidl language file for GeSHi.
*
* 2006/08/20 (1.0.0)
* - First Release
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Uno Idl',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'published', 'get', 'set', 'service', 'singleton', 'type', 'module', 'interface', 'struct',
'const', 'constants', 'exception', 'enum', 'raises', 'typedef'
),
2 => array(
'bound', 'maybeambiguous', 'maybedefault', 'maybevoid', 'oneway', 'optional',
'readonly', 'in', 'out', 'inout', 'attribute', 'transient', 'removable'
),
3 => array(
'True', 'False', 'TRUE', 'FALSE'
),
4 => array(
'string', 'long', 'byte', 'hyper', 'boolean', 'any', 'char', 'double',
'void', 'sequence', 'unsigned'
),
),
'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':', ';', '...'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => true,
2 => true,
3 => true,
4 => true,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #990078; font-weight: bold',
2 => 'color: #36dd1c;',
3 => 'color: #990078; font-weight: bold',
4 => 'color: #0000ec;'
),
'COMMENTS' => array(
1 => 'color: #3f7f5f;',
2 => 'color: #808080;',
'MULTI' => 'color: #4080ff; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #666666; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #808080;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #0000dd;'
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
1 => '::'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

128
Sources/geshi/ini.php Normal file
View File

@ -0,0 +1,128 @@
<?php
/*************************************************************************************
* ini.php
* --------
* Author: deguix (cevo_deguix@yahoo.com.br)
* Copyright: (c) 2005 deguix
* Release Version: 1.0.8.11
* Date Started: 2005/03/27
*
* INI language file for GeSHi.
*
* CHANGES
* -------
* 2008/05/23 (1.0.7.22)
* - Added description of extra language features (SF#1970248)
* 2005/12/28 (1.0.1)
* - Removed unnecessary keyword style index
* - Added support for " strings
* 2005/04/05 (1.0.0)
* - First Release
*
* TODO (updated 2005/03/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'INI',
'COMMENT_SINGLE' => array(0 => ';'),
'COMMENT_MULTI' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
),
'SYMBOLS' => array(
'[', ']', '='
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false
),
'STYLES' => array(
'KEYWORDS' => array(
),
'COMMENTS' => array(
0 => 'color: #666666; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => ''
),
'BRACKETS' => array(
0 => ''
),
'STRINGS' => array(
0 => 'color: #933;'
),
'NUMBERS' => array(
0 => ''
),
'METHODS' => array(
0 => ''
),
'SYMBOLS' => array(
0 => 'color: #000066; font-weight:bold;'
),
'REGEXPS' => array(
0 => 'color: #000066; font-weight:bold;',
1 => 'color: #000099;',
2 => 'color: #660066;'
),
'SCRIPT' => array(
0 => ''
)
),
'URLS' => array(
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
//Section names
0 => '\[.+\]',
//Entry names
1 => array(
GESHI_SEARCH => '^(\s*)([a-zA-Z0-9_\-]+)(\s*=)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => 'm',
GESHI_BEFORE => '\\1',
GESHI_AFTER => '\\3'
),
//Entry values
2 => array(
// Evil hackery to get around GeSHi bug: <>" and ; are added so <span>s can be matched
// Explicit match on variable names because if a comment is before the first < of the span
// gets chewed up...
GESHI_SEARCH => '([<>";a-zA-Z0-9_]+\s*)=(.*)',
GESHI_REPLACE => '\\2',
GESHI_MODIFIERS => '',
GESHI_BEFORE => '\\1=',
GESHI_AFTER => ''
)
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

212
Sources/geshi/inno.php Normal file
View File

@ -0,0 +1,212 @@
<?php
/*************************************************************************************
* Inno.php
* ----------
* Author: Thomas Klingler (hotline@theratech.de) based on delphi.php from J<EFBFBD>rja Norbert (jnorbi@vipmail.hu)
* Copyright: (c) 2004 J<EFBFBD>rja Norbert, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.8.11
* Date Started: 2005/07/29
*
* Inno Script language inkl. Delphi (Object Pascal) language file for GeSHi.
*
* CHANGES
* -------
* 2005/09/03
* - First Release
*
* TODO (updated 2005/07/27)
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Inno',
'COMMENT_SINGLE' => array(1 => '//'),
'COMMENT_MULTI' => array('(*' => '*)'),
'CASE_KEYWORDS' => 0,
'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
1 => array(
'Setup','Types','Components','Tasks','Dirs','Files','Icons','INI',
'InstallDelete','Languages','Messages','CustomMessage',
'LangOptions','Registry','RUN','UninstallDelete','UninstallRun',
'app','win','sys','syswow64','src','sd','pf','pf32','pf64','cf',
'cf32','cf64','tmp','fonts','dao','group','localappdata','sendto',
'userappdata','commonappdata','userdesktop','commondesktop',
'userdocs','commondocs','userfavorites','commonfavorites',
'userprograms','commonprograms','userstartmenu','commonstartmenu',
'userstartup','commonstartup','usertemplates','commontemplates'
),
2 => array(
'nil', 'false', 'true', 'var', 'type', 'const','And', 'Array', 'As', 'Begin', 'Case', 'Class', 'Constructor', 'Destructor', 'Div', 'Do', 'DownTo', 'Else',
'End', 'Except', 'File', 'Finally', 'For', 'Function', 'Goto', 'If', 'Implementation', 'In', 'Inherited', 'Interface',
'Is', 'Mod', 'Not', 'Object', 'Of', 'On', 'Or', 'Packed', 'Procedure', 'Property', 'Raise', 'Record',
'Repeat', 'Set', 'Shl', 'Shr', 'Then', 'ThreadVar', 'To', 'Try', 'Unit', 'Until', 'Uses', 'While', 'With', 'Xor',
'HKCC','HKCR','HKCU','HKLM','HKU','alwaysoverwrite','alwaysskipifsameorolder','append',
'binary','classic','closeonexit','comparetimestamp','confirmoverwrite',
'createkeyifdoesntexist','createonlyiffileexists','createvalueifdoesntexist',
'deleteafterinstall','deletekey','deletevalue','dirifempty','dontcloseonexit',
'dontcopy','dontcreatekey','disablenouninstallwarning','dword','exclusive','expandsz',
'external','files','filesandordirs','fixed','fontisnttruetype','ignoreversion','iscustom','isreadme',
'modern','multisz','new','noerror','none','normal','nowait','onlyifdestfileexists',
'onlyifdoesntexist','onlyifnewer','overwrite','overwritereadonly','postinstall',
'preservestringtype','promptifolder','regserver','regtypelib','restart','restartreplace',
'runhidden','runmaximized','runminimized','sharedfile','shellexec','showcheckbox',
'skipifnotsilent','skipifsilent','silent','skipifdoesntexist',
'skipifsourcedoesntexist','sortfilesbyextension','unchecked','uninsalwaysuninstall',
'uninsclearvalue','uninsdeleteentry','uninsdeletekey','uninsdeletekeyifempty',
'uninsdeletesection','uninsdeletesectionifempty','uninsdeletevalue',
'uninsneveruninstall','useapppaths','verysilent','waituntilidle'
),
3 => array(
'Abs', 'Addr', 'AnsiCompareStr', 'AnsiCompareText', 'AnsiContainsStr', 'AnsiEndsStr', 'AnsiIndexStr', 'AnsiLeftStr',
'AnsiLowerCase', 'AnsiMatchStr', 'AnsiMidStr', 'AnsiPos', 'AnsiReplaceStr', 'AnsiReverseString', 'AnsiRightStr',
'AnsiStartsStr', 'AnsiUpperCase', 'ArcCos', 'ArcSin', 'ArcTan', 'Assigned', 'BeginThread', 'Bounds', 'CelsiusToFahrenheit',
'ChangeFileExt', 'Chr', 'CompareStr', 'CompareText', 'Concat', 'Convert', 'Copy', 'Cos', 'CreateDir', 'CurrToStr',
'CurrToStrF', 'Date', 'DateTimeToFileDate', 'DateTimeToStr', 'DateToStr', 'DayOfTheMonth', 'DayOfTheWeek', 'DayOfTheYear',
'DayOfWeek', 'DaysBetween', 'DaysInAMonth', 'DaysInAYear', 'DaySpan', 'DegToRad', 'DeleteFile', 'DiskFree', 'DiskSize',
'DupeString', 'EncodeDate', 'EncodeDateTime', 'EncodeTime', 'EndOfADay', 'EndOfAMonth', 'Eof', 'Eoln', 'Exp', 'ExtractFileDir',
'ExtractFileDrive', 'ExtractFileExt', 'ExtractFileName', 'ExtractFilePath', 'FahrenheitToCelsius', 'FileAge',
'FileDateToDateTime', 'FileExists', 'FilePos', 'FileSearch', 'FileSetDate', 'FileSize', 'FindClose', 'FindCmdLineSwitch',
'FindFirst', 'FindNext', 'FloatToStr', 'FloatToStrF', 'Format', 'FormatCurr', 'FormatDateTime', 'FormatFloat', 'Frac',
'GetCurrentDir', 'GetLastError', 'GetMem', 'High', 'IncDay', 'IncMinute', 'IncMonth', 'IncYear', 'InputBox',
'InputQuery', 'Int', 'IntToHex', 'IntToStr', 'IOResult', 'IsInfinite', 'IsLeapYear', 'IsMultiThread', 'IsNaN',
'LastDelimiter', 'Length', 'Ln', 'Lo', 'Log10', 'Low', 'LowerCase', 'Max', 'Mean', 'MessageDlg', 'MessageDlgPos',
'MonthOfTheYear', 'Now', 'Odd', 'Ord', 'ParamCount', 'ParamStr', 'Pi', 'Point', 'PointsEqual', 'Pos', 'Pred',
'Printer', 'PromptForFileName', 'PtInRect', 'RadToDeg', 'Random', 'RandomRange', 'RecodeDate', 'RecodeTime', 'Rect',
'RemoveDir', 'RenameFile', 'Round', 'SeekEof', 'SeekEoln', 'SelectDirectory', 'SetCurrentDir', 'Sin', 'SizeOf',
'Slice', 'Sqr', 'Sqrt', 'StringOfChar', 'StringReplace', 'StringToWideChar', 'StrToCurr', 'StrToDate', 'StrToDateTime',
'StrToFloat', 'StrToInt', 'StrToInt64', 'StrToInt64Def', 'StrToIntDef', 'StrToTime', 'StuffString', 'Succ', 'Sum', 'Tan',
'Time', 'TimeToStr', 'Tomorrow', 'Trunc', 'UpCase', 'UpperCase', 'VarType', 'WideCharToString', 'WrapText', 'Yesterday',
'Append', 'AppendStr', 'Assign', 'AssignFile', 'AssignPrn', 'Beep', 'BlockRead', 'BlockWrite', 'Break',
'ChDir', 'Close', 'CloseFile', 'Continue', 'DateTimeToString', 'Dec', 'DecodeDate', 'DecodeDateTime',
'DecodeTime', 'Delete', 'Dispose', 'EndThread', 'Erase', 'Exclude', 'Exit', 'FillChar', 'Flush', 'FreeAndNil',
'FreeMem', 'GetDir', 'GetLocaleFormatSettings', 'Halt', 'Inc', 'Include', 'Insert', 'MkDir', 'Move', 'New',
'ProcessPath', 'Randomize', 'Read', 'ReadLn', 'ReallocMem', 'Rename', 'ReplaceDate', 'ReplaceTime',
'Reset', 'ReWrite', 'RmDir', 'RunError', 'Seek', 'SetLength', 'SetString', 'ShowMessage', 'ShowMessageFmt',
'ShowMessagePos', 'Str', 'Truncate', 'Val', 'Write', 'WriteLn',
'AdminPrivilegesRequired','AfterInstall','AllowCancelDuringInstall','AllowNoIcons','AllowRootDirectory','AllowUNCPath','AlwaysRestart','AlwaysShowComponentsList','AlwaysShowDirOnReadyPage','AlwaysShowGroupOnReadyPage ','AlwaysUsePersonalGroup','AppComments','AppContact','AppCopyright','AppendDefaultDirName',
'AppendDefaultGroupName','AppId','AppModifyPath','AppMutex','AppName','AppPublisher',
'AppPublisherURL','AppReadmeFile','AppSupportURL','AppUpdatesURL','AppVerName','AppVersion',
'Attribs','BackColor','BackColor2','BackColorDirection','BackSolid','BeforeInstall',
'ChangesAssociations','ChangesEnvironment','Check','CodeFile','Comment','Compression','CopyMode',
'CreateAppDir','CreateUninstallRegKey','DefaultDirName','DefaultGroupName',
'DefaultUserInfoName','DefaultUserInfoOrg','DefaultUserInfoSerial',
'Description','DestDir','DestName','DirExistsWarning',
'DisableDirPage','DisableFinishedPage',
'DisableProgramGroupPage','DisableReadyMemo','DisableReadyPage',
'DisableStartupPrompt','DiskClusterSize','DiskSliceSize','DiskSpaceMBLabel',
'DiskSpanning','DontMergeDuplicateFiles','EnableDirDoesntExistWarning','Encryption',
'Excludes','ExtraDiskSpaceRequired','Filename','Flags','FlatComponentsList','FontInstall',
'GroupDescription','HotKey','IconFilename','IconIndex','InfoAfterFile','InfoBeforeFile',
'InternalCompressLevel','Key','LanguageDetectionMethod',
'LicenseFile','MergeDuplicateFiles','MessagesFile','MinVersion','Name',
'OnlyBelowVersion','OutputBaseFilename','OutputManifestFile','OutputDir',
'Parameters','Password','Permissions','PrivilegesRequired','ReserveBytes',
'RestartIfNeededByRun','Root','RunOnceId','Section','SetupIconFile',
'ShowComponentSizes','ShowLanguageDialog','ShowTasksTreeLines','SlicesPerDisk',
'SolidCompression','Source','SourceDir','StatusMsg','Subkey',
'TimeStampRounding','TimeStampsInUTC','TouchDate','TouchTime','Type',
'UninstallDisplayIcon','UninstallDisplayName','UninstallFilesDir','UninstallIconFile',
'UninstallLogMode','UninstallRestartComputer','UninstallStyle','Uninstallable',
'UpdateUninstallLogAppName','UsePreviousAppDir','UsePreviousGroup',
'UsePreviousTasks','UsePreviousSetupType','UsePreviousUserInfo',
'UserInfoPage','UseSetupLdr','ValueData','ValueName','ValueType',
'VersionInfoVersion','VersionInfoCompany','VersionInfoDescription','VersionInfoTextVersion',
'WindowResizable','WindowShowCaption','WindowStartMaximized',
'WindowVisible','WizardImageBackColor','WizardImageFile','WizardImageStretch','WizardSmallImageBackColor','WizardSmallImageFile','WizardStyle','WorkingDir'
),
4 => array(
'AnsiChar', 'AnsiString', 'Boolean', 'Byte', 'Cardinal', 'Char', 'Comp', 'Currency', 'Double', 'Extended',
'Int64', 'Integer', 'LongInt', 'LongWord', 'PAnsiChar', 'PAnsiString', 'PChar', 'PCurrency', 'PDateTime',
'PExtended', 'PInt64', 'Pointer', 'PShortString', 'PString', 'PVariant', 'PWideChar', 'PWideString',
'Real', 'Real48', 'ShortInt', 'ShortString', 'Single', 'SmallInt', 'String', 'TBits', 'TConvType', 'TDateTime',
'Text', 'TextFile', 'TFloatFormat', 'TFormatSettings', 'TList', 'TObject', 'TOpenDialog', 'TPoint',
'TPrintDialog', 'TRect', 'TReplaceFlags', 'TSaveDialog', 'TSearchRec', 'TStringList', 'TSysCharSet',
'TThreadFunc', 'Variant', 'WideChar', 'WideString', 'Word'
),
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '@', '%', '&', '*', '|', '/', '<', '>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
4 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000000; font-weight: bold;',/*bold Black*/
2 => 'color: #000000;font-style: italic;',/*Black*/
3 => 'color: #0000FF;',/*blue*/
4 => 'color: #CC0000;'/*red*/
),
'COMMENTS' => array(
1 => 'color: #33FF00; font-style: italic;',
'MULTI' => 'color: #33FF00; font-style: italic;'
),
'ESCAPE_CHAR' => array(
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;'
),
'REGEXPS' => array(
),
'SYMBOLS' => array(
0 => 'color: #000000; font-weight: bold;',
),
'SCRIPT' => array(
)
),
'URLS' => array(
1 => '',
2 => '',
3 => '',
4 => ''
),
'OOLANG' => true,
'OBJECT_SPLITTERS' => array(
1 => '.'
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

122
Sources/geshi/intercal.php Normal file
View File

@ -0,0 +1,122 @@
<?php
/*************************************************************************************
* intercal.php
* ----------
* Author: Benny Baumann (BenBE@geshi.org)
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2009/10/31
*
* INTERCAL language file for GeSHi.
*
* CHANGES
* -------
* 2008/10/31 (1.0.8.1)
* - First Release
*
* TODO
* ----
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'INTERCAL',
'COMMENT_SINGLE' => array(),
'COMMENT_MULTI' => array(),
'COMMENT_REGEXP' => array(),
'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
'QUOTEMARKS' => array(),
'ESCAPE_CHAR' => '',
'KEYWORDS' => array(
//Politeness
1 => array(
'DO', 'DOES', 'DONT', 'DON\'T', 'NOT', 'PLEASE', 'PLEASENT', 'PLEASEN\'T', 'MAYBE'
),
//Statements
2 => array(
'STASH', 'RETRIEVE', 'NEXT', 'RESUME', 'FORGET', 'ABSTAIN', 'ABSTAINING',
'COME', 'FROM', 'CALCULATING', 'REINSTATE', 'IGNORE', 'REMEMBER',
'WRITE', 'IN', 'READ', 'OUT', 'GIVE', 'UP'
)
),
'SYMBOLS' => array(
'.', ',', ':', ';', '#',
'~', '$', '&', '?',
'\'', '"', '<-'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #000080; font-weight: bold;',
2 => 'color: #000080; font-weight: bold;'
),
'COMMENTS' => array(
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
),
'METHODS' => array(
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'ESCAPE_CHAR' => array(
),
'SCRIPT' => array(
),
'REGEXPS' => array(
1 => 'color: #808080; font-style: italic;'
)
),
'URLS' => array(
1 => '',
2 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
1 => '^\(\d+\)'
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
),
'TAB_WIDTH' => 4,
'PARSER_CONTROL' => array(
'ENABLE_FLAGS' => array(
'COMMENTS' => GESHI_NEVER,
'STRINGS' => GESHI_NEVER,
'NUMBERS' => GESHI_NEVER
)
)
);
?>

138
Sources/geshi/io.php Normal file
View File

@ -0,0 +1,138 @@
<?php
/*************************************************************************************
* io.php
* -------
* Author: Nigel McNie (nigel@geshi.org)
* Copyright: (c) 2006 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.8.11
* Date Started: 2006/09/23
*
* Io language file for GeSHi. Thanks to Johnathan Wright for the suggestion and help
* with this language :)
*
* CHANGES
* -------
* 2006/09/23(1.0.0)
* - First Release
*
* TODO
* -------------------------
*
*************************************************************************************
*
* This file is part of GeSHi.
*
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
************************************************************************************/
$language_data = array (
'LANG_NAME' => 'Io',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"'),
'ESCAPE_CHAR' => '\\',
'KEYWORDS' => array(
1 => array(
'and', 'break', 'else', 'elseif', 'exit', 'for', 'foreach', 'if', 'ifFalse', 'ifNil',
'ifTrue', 'or', 'pass', 'raise', 'return', 'then', 'try', 'wait', 'while', 'yield'
),
2 => array(
'activate', 'activeCoroCount', 'asString', 'block', 'catch', 'clone', 'collectGarbage',
'compileString', 'continue', 'do', 'doFile', 'doMessage', 'doString', 'forward',
'getSlot', 'getenv', 'hasSlot', 'isActive', 'isNil', 'isResumable', 'list', 'message',
'method', 'parent', 'pause', 'perform', 'performWithArgList', 'print', 'proto',
'raiseResumable', 'removeSlot', 'resend', 'resume', 'schedulerSleepSeconds', 'self',
'sender', 'setSchedulerSleepSeconds', 'setSlot', 'shallowCopy', 'slotNames', 'super',
'system', 'thisBlock', 'thisContext', 'thisMessage', 'type', 'uniqueId', 'updateSlot',
'write'
),
3 => array(
'Array', 'AudioDevice', 'AudioMixer', 'Block', 'Box', 'Buffer', 'CFunction', 'CGI',
'Color', 'Curses', 'DBM', 'DNSResolver', 'DOConnection', 'DOProxy', 'DOServer',
'Date', 'Directory', 'Duration', 'DynLib', 'Error', 'Exception', 'FFT', 'File',
'Fnmatch', 'Font', 'Future', 'GL', 'GLE', 'GLScissor', 'GLU', 'GLUCylinder',
'GLUQuadric', 'GLUSphere', 'GLUT', 'Host', 'Image', 'Importer', 'LinkList', 'List',
'Lobby', 'Locals', 'MD5', 'MP3Decoder', 'MP3Encoder', 'Map', 'Message', 'Movie',
'NULL', 'Nil', 'Nop', 'Notifiction', 'Number', 'Object', 'OpenGL', 'Point', 'Protos',
'Regex', 'SGMLTag', 'SQLite', 'Server', 'ShowMessage', 'SleepyCat', 'SleepyCatCursor',
'Socket', 'SocketManager', 'Sound', 'Soup', 'Store', 'String', 'Tree', 'UDPSender',
'UDPReceiver', 'URL', 'User', 'Warning', 'WeakLink'
)
),
'SYMBOLS' => array(
'(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>'
),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false,
1 => false,
2 => false,
3 => false,
),
'STYLES' => array(
'KEYWORDS' => array(
1 => 'color: #b1b100;',
2 => 'color: #000000; font-weight: bold;',
3 => 'color: #000066;'
),
'COMMENTS' => array(
1 => 'color: #808080; font-style: italic;',
2 => 'color: #808080; font-style: italic;',
'MULTI' => 'color: #808080; font-style: italic;'
),
'ESCAPE_CHAR' => array(
0 => 'color: #000099; font-weight: bold;'
),
'BRACKETS' => array(
0 => 'color: #66cc66;'
),
'STRINGS' => array(
0 => 'color: #ff0000;'
),
'NUMBERS' => array(
0 => 'color: #cc66cc;'
),
'METHODS' => array(
1 => 'color: #006600;',
2 => 'color: #006600;'
),
'SYMBOLS' => array(
0 => 'color: #66cc66;'
),
'REGEXPS' => array(
),
'SCRIPT' => array(
0 => ''
)
),
'URLS' => array(
1 => '',
2 => '',
3 => ''
),
'OOLANG' => false,
'OBJECT_SPLITTERS' => array(
),
'REGEXPS' => array(
),
'STRICT_MODE_APPLIES' => GESHI_NEVER,
'SCRIPT_DELIMITERS' => array(
),
'HIGHLIGHT_STRICT_BLOCK' => array(
)
);
?>

Some files were not shown because too many files have changed in this diff Show More