mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 04:21:17 -05:00
updated GeSHi to 1.0.8.11 (issue #60)
This commit is contained in:
parent
7dbbe5be39
commit
8abe0ca677
@ -39,7 +39,9 @@ $config['geshi_languages'] = array(
|
||||
'apache' => 'Apache',
|
||||
'applescript' => 'AppleScript',
|
||||
'apt_sources' => 'Apt sources.list',
|
||||
'arm' => 'ARM Assembler',
|
||||
'asm' => 'x86 Assembler',
|
||||
'asymptote' => 'asymptote',
|
||||
'asp' => 'ASP',
|
||||
'autoconf' => 'autoconf',
|
||||
'autohotkey' => 'Autohotkey',
|
||||
@ -69,6 +71,8 @@ $config['geshi_languages'] = array(
|
||||
'cuesheet' => 'Cuesheet',
|
||||
'd' => 'D',
|
||||
'dcs' => 'DCS',
|
||||
'dcl' => 'DCL',
|
||||
'dcpu16' => 'DCPU/16 Assembly',
|
||||
'delphi' => 'Delphi (Object Pascal)',
|
||||
'div' => 'DIV',
|
||||
'dos' => 'DOS',
|
||||
@ -84,6 +88,7 @@ $config['geshi_languages'] = array(
|
||||
'fo' => 'fo',
|
||||
'fortran' => 'Fortran',
|
||||
'freebasic' => 'FreeBasic',
|
||||
'freeswitch' => 'FreeSWITCH',
|
||||
'fsharp' => 'F#',
|
||||
'gambas' => 'GAMBAS',
|
||||
'gdb' => 'GDB',
|
||||
@ -96,6 +101,7 @@ $config['geshi_languages'] = array(
|
||||
'groovy' => 'Groovy',
|
||||
'gwbasic' => 'GwBasic',
|
||||
'haskell' => 'Haskell',
|
||||
'haxe' => 'Haxe',
|
||||
'hicest' => 'HicEst',
|
||||
'hq9plus' => 'HQ9+',
|
||||
'html4strict' => 'HTML 4.01 strict',
|
||||
@ -114,6 +120,7 @@ $config['geshi_languages'] = array(
|
||||
'klonec' => 'KLone with C',
|
||||
'klonecpp' => 'KLone with C++',
|
||||
'lb' => 'Liberty BASIC',
|
||||
'ldif' => 'LDIF',
|
||||
'lisp' => 'Generic Lisp',
|
||||
'llvm' => 'LLVM',
|
||||
'locobasic' => 'Locomotive Basic (Amstrad CPC series)',
|
||||
@ -135,17 +142,23 @@ $config['geshi_languages'] = array(
|
||||
'mpasm' => 'Microchip Assembler',
|
||||
'mxml' => 'MXML',
|
||||
'mysql' => 'MySQL',
|
||||
'nagios' => 'Nagios',
|
||||
'netrexx' => 'NetRexx',
|
||||
'newlisp' => 'newLISP',
|
||||
'nsis' => 'Nullsoft Scriptable Install System',
|
||||
'oberon2' => 'Oberon-2',
|
||||
'objc' => 'Objective-C',
|
||||
'objeck' => 'Objeck Programming Language',
|
||||
'ocaml' => 'OCaml (Objective Caml)',
|
||||
'octave' => 'GNU Octave M-file',
|
||||
'oobas' => 'OpenOffice.org Basic',
|
||||
'oorexx' => 'ooRexx',
|
||||
'oracle11' => 'Oracle 11i',
|
||||
'oracle8' => 'Oracle 8',
|
||||
'oxygene' => 'Delphi Prism (Oxygene)',
|
||||
'oz' => 'Oz',
|
||||
'parasail' => 'ParaSail',
|
||||
'parigp' => 'PARI/GP',
|
||||
'pascal' => 'Pascal',
|
||||
'pcre' => 'PCRE',
|
||||
'per' => 'Per (forms)',
|
||||
@ -167,11 +180,13 @@ $config['geshi_languages'] = array(
|
||||
'properties' => 'Property',
|
||||
'providex' => 'ProvideX',
|
||||
'purebasic' => 'PureBasic',
|
||||
'pys60' => 'Python for S60',
|
||||
'q' => 'q/kdb+',
|
||||
'qbasic' => 'QBasic/QuickBASIC',
|
||||
'rails' => 'Ruby (with Ruby on Rails Framework)',
|
||||
'rebol' => 'Rebol',
|
||||
'reg' => 'Microsoft Registry Editor',
|
||||
'rexx' => 'Rexx',
|
||||
'robots' => 'robots.txt',
|
||||
'rpmspec' => 'RPM Spec',
|
||||
'rsplus' => 'R',
|
||||
@ -182,6 +197,9 @@ $config['geshi_languages'] = array(
|
||||
'sdlbasic' => 'sdlBasic',
|
||||
'smalltalk' => 'Smalltalk',
|
||||
'smarty' => 'Smarty template',
|
||||
'spark' => 'SPARK',
|
||||
'sparql' => 'SPARQL',
|
||||
'stonescript' => 'StoneScript',
|
||||
'systemverilog' => 'SystemVerilog IEEE 1800-2009(draft8)',
|
||||
'tcl' => 'TCL/iTCL',
|
||||
'teraterm' => 'Tera Term Macro',
|
||||
@ -190,9 +208,12 @@ $config['geshi_languages'] = array(
|
||||
'typoscript' => 'TypoScript',
|
||||
'unicon' => 'Unicon',
|
||||
'uscript' => 'UnrealScript',
|
||||
'upc' => 'UPC',
|
||||
'urbi' => 'Urbi',
|
||||
'vala' => 'Vala',
|
||||
'vb' => 'Visual Basic',
|
||||
'vbnet' => 'VB.NET',
|
||||
'vedit' => 'Vedit macro language',
|
||||
'verilog' => 'Verilog',
|
||||
'vhdl' => 'VHDL',
|
||||
'vim' => 'Vim scripting',
|
||||
|
@ -13,7 +13,7 @@
|
||||
* aliased.php/file.name.ext.
|
||||
*
|
||||
* @author Ross Golder <ross@golder.org>
|
||||
* @version $Id: aliased.php 881 2007-01-10 11:14:38Z oracleshinoda $
|
||||
* @version $Id: aliased.php 2533 2012-08-15 18:49:04Z benbe $
|
||||
*/
|
||||
|
||||
// Your config here
|
||||
@ -29,19 +29,18 @@ $path = SOURCE_ROOT.$_SERVER['PATH_INFO'];
|
||||
$base_path_len = strlen(SOURCE_ROOT);
|
||||
$real_path = realpath($path);
|
||||
if(strncmp($real_path, SOURCE_ROOT, $base_path_len)) {
|
||||
exit("Stop that.");
|
||||
exit("Access outside acceptable path.");
|
||||
}
|
||||
|
||||
// Check file exists
|
||||
if(!file_exists($path)) {
|
||||
exit("File not found ($path).");
|
||||
exit("File not found ($path).");
|
||||
}
|
||||
|
||||
// Gather contents
|
||||
$contents = file_get_contents($path);
|
||||
|
||||
// Prepare GeSHi instance
|
||||
$geshi =& new GeSHi($contents, "PHP");
|
||||
$geshi = new GeSHi();
|
||||
$geshi->set_language('text');
|
||||
$geshi->load_from_file($path);
|
||||
$geshi->set_header_type(GESHI_HEADER_PRE);
|
||||
$geshi->enable_classes();
|
||||
$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 10);
|
||||
@ -50,7 +49,7 @@ $geshi->set_line_style('font: normal normal 95% \'Courier New\', Courier, monosp
|
||||
$geshi->set_code_style('color: #000020;', 'color: #000020;');
|
||||
$geshi->set_link_styles(GESHI_LINK, 'color: #000060;');
|
||||
$geshi->set_link_styles(GESHI_HOVER, 'background-color: #f0f000;');
|
||||
$geshi->set_header_content('Source code viewer');
|
||||
$geshi->set_header_content('Source code viewer - ' . $path . ' - ' . $geshi->get_language_name());
|
||||
$geshi->set_header_content_style('font-family: Verdana, Arial, sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;');
|
||||
$geshi->set_footer_content('Parsed in <TIME> seconds, using GeSHi <VERSION>');
|
||||
$geshi->set_footer_content_style('font-family: Verdana, Arial, sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-top: 1px solid #d0d0d0; padding: 2px;');
|
||||
@ -60,59 +59,59 @@ $geshi->set_footer_content_style('font-family: Verdana, Arial, sans-serif; color
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Source code viewer - <?php echo $path; ?></title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
<?php
|
||||
<title>Source code viewer - <?php echo $path; ?> - <?php $geshi->get_language_name(); ?></title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
<?php
|
||||
// Output the stylesheet. Note it doesn't output the <style> tag
|
||||
echo $geshi->get_stylesheet();
|
||||
?>
|
||||
html {
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
body {
|
||||
font-family: Verdana, Arial, sans-serif;
|
||||
margin: 10px;
|
||||
border: 2px solid #e0e0e0;
|
||||
background-color: #fcfcfc;
|
||||
padding: 5px;
|
||||
}
|
||||
h2 {
|
||||
margin: .1em 0 .2em .5em;
|
||||
border-bottom: 1px solid #b0b0b0;
|
||||
color: #b0b0b0;
|
||||
font-weight: normal;
|
||||
font-size: 150%;
|
||||
}
|
||||
h3 {
|
||||
margin: .1em 0 .2em .5em;
|
||||
color: #b0b0b0;
|
||||
font-weight: normal;
|
||||
font-size: 120%;
|
||||
}
|
||||
#footer {
|
||||
text-align: center;
|
||||
font-size: 80%;
|
||||
color: #a9a9a9;
|
||||
}
|
||||
#footer a {
|
||||
color: #9999ff;
|
||||
}
|
||||
textarea {
|
||||
border: 1px solid #b0b0b0;
|
||||
font-size: 90%;
|
||||
color: #333;
|
||||
margin-left: 20px;
|
||||
}
|
||||
select, input {
|
||||
margin-left: 20px;
|
||||
}
|
||||
p {
|
||||
font-size: 90%;
|
||||
margin-left: .5em;
|
||||
}
|
||||
-->
|
||||
</style>
|
||||
echo $geshi->get_stylesheet();
|
||||
?>
|
||||
html {
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
body {
|
||||
font-family: Verdana, Arial, sans-serif;
|
||||
margin: 10px;
|
||||
border: 2px solid #e0e0e0;
|
||||
background-color: #fcfcfc;
|
||||
padding: 5px;
|
||||
}
|
||||
h2 {
|
||||
margin: .1em 0 .2em .5em;
|
||||
border-bottom: 1px solid #b0b0b0;
|
||||
color: #b0b0b0;
|
||||
font-weight: normal;
|
||||
font-size: 150%;
|
||||
}
|
||||
h3 {
|
||||
margin: .1em 0 .2em .5em;
|
||||
color: #b0b0b0;
|
||||
font-weight: normal;
|
||||
font-size: 120%;
|
||||
}
|
||||
#footer {
|
||||
text-align: center;
|
||||
font-size: 80%;
|
||||
color: #a9a9a9;
|
||||
}
|
||||
#footer a {
|
||||
color: #9999ff;
|
||||
}
|
||||
textarea {
|
||||
border: 1px solid #b0b0b0;
|
||||
font-size: 90%;
|
||||
color: #333;
|
||||
margin-left: 20px;
|
||||
}
|
||||
select, input {
|
||||
margin-left: 20px;
|
||||
}
|
||||
p {
|
||||
font-size: 90%;
|
||||
margin-left: .5em;
|
||||
}
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
|
@ -91,9 +91,9 @@ function make_header ( $title )
|
||||
if (cboxes[i].type == "checkbox") {
|
||||
if (state == "true") {
|
||||
cboxes[i].checked = true;
|
||||
} else if (state == "false") {
|
||||
} elseif (state == "false") {
|
||||
cboxes[i].checked = false;
|
||||
} else if (state == "invert") {
|
||||
} elseif (state == "invert") {
|
||||
cboxes[i].checked = !cboxes[i].checked;
|
||||
}
|
||||
}
|
||||
@ -164,6 +164,13 @@ if ( !$step || $step == 1 )
|
||||
$geshi_path = get_var('geshi-path');
|
||||
$geshi_lang_path = get_var('geshi-lang-path');
|
||||
|
||||
if(strstr($geshi_path, '..')) {
|
||||
unset($geshi_path);
|
||||
}
|
||||
if(strstr($geshi_lang_path, '..')) {
|
||||
unset($geshi_lang_path);
|
||||
}
|
||||
|
||||
if ( !$geshi_path )
|
||||
{
|
||||
$geshi_path = '../geshi.php';
|
||||
@ -173,7 +180,6 @@ if ( !$step || $step == 1 )
|
||||
$geshi_lang_path = '../geshi/';
|
||||
}
|
||||
|
||||
|
||||
if ( is_file($geshi_path) && is_readable($geshi_path) )
|
||||
{
|
||||
// Get file contents and see if GeSHi is in here
|
||||
@ -275,6 +281,10 @@ elseif ( $step == 2 )
|
||||
$file = readdir($dh);
|
||||
continue;
|
||||
}
|
||||
if(!strstr(file_get_contents($dh . DIRECTORY_SEPARATOR . $file), '$language_data')) {
|
||||
$file = readdir($dh);
|
||||
continue;
|
||||
}
|
||||
$lang_files[] = $file;
|
||||
$file = readdir($dh);
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
* and the language files in subdirectory "../geshi/")
|
||||
*
|
||||
* @author Nigel McNie
|
||||
* @version $Id: example.php 1422 2008-07-11 20:30:55Z milianw $
|
||||
* @version $Id: example.php 2510 2012-06-27 15:57:55Z reedy_boy $
|
||||
*/
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
* CLI mode is supported
|
||||
*
|
||||
* @author Benny Baumann
|
||||
* @version $Id: langcheck.php 2345 2010-08-29 11:12:44Z benbe $
|
||||
* @version $Id: langcheck.php 2510 2012-06-27 15:57:55Z reedy_boy $
|
||||
*/
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
|
||||
@ -222,9 +222,9 @@ if(!$error_abort) {
|
||||
if(!$error_abort) {
|
||||
if(!defined('GESHI_LANG_ROOT')) {
|
||||
report_error(TYPE_ERROR, 'There\'s no information present on where to find the language files!');
|
||||
} else if(!is_dir(GESHI_LANG_ROOT)) {
|
||||
} elseif(!is_dir(GESHI_LANG_ROOT)) {
|
||||
report_error(TYPE_ERROR, 'The path "'.GESHI_LANG_ROOT.'" given, does not ressemble a directory!');
|
||||
} else if(!is_readable(GESHI_LANG_ROOT)) {
|
||||
} elseif(!is_readable(GESHI_LANG_ROOT)) {
|
||||
report_error(TYPE_ERROR, 'The path "'.GESHI_LANG_ROOT.'" is not readable to this script!');
|
||||
}
|
||||
}
|
||||
@ -293,7 +293,7 @@ if(!$error_abort) {
|
||||
|
||||
if(!is_file($langfile)) {
|
||||
report_error(TYPE_ERROR, 'The path "' .$langfile. '" does not ressemble a regular file!');
|
||||
} else if(!is_readable($langfile)) {
|
||||
} elseif(!is_readable($langfile)) {
|
||||
report_error(TYPE_ERROR, 'Cannot read file "' .$langfile. '"!');
|
||||
} else {
|
||||
$langfile_content = file_get_contents($langfile);
|
||||
@ -338,7 +338,7 @@ if(!$error_abort) {
|
||||
|
||||
if(!isset($language_data)) {
|
||||
report_error(TYPE_ERROR, 'Language file does not contain a $language_data structure to check!');
|
||||
} else if (!is_array($language_data)) {
|
||||
} elseif (!is_array($language_data)) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data structure which is not an array!');
|
||||
}
|
||||
}
|
||||
@ -346,19 +346,19 @@ if(!$error_abort) {
|
||||
if(!$error_abort) {
|
||||
if(!isset($language_data['LANG_NAME'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'LANG_NAME\'] specification!');
|
||||
} else if (!is_string($language_data['LANG_NAME'])) {
|
||||
} elseif (!is_string($language_data['LANG_NAME'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'LANG_NAME\'] specification which is not a string!');
|
||||
}
|
||||
|
||||
if(!isset($language_data['COMMENT_SINGLE'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'COMMENT_SIGNLE\'] structure to check!');
|
||||
} else if (!is_array($language_data['COMMENT_SINGLE'])) {
|
||||
} elseif (!is_array($language_data['COMMENT_SINGLE'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'COMMENT_SINGLE\'] structure which is not an array!');
|
||||
}
|
||||
|
||||
if(!isset($language_data['COMMENT_MULTI'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'COMMENT_MULTI\'] structure to check!');
|
||||
} else if (!is_array($language_data['COMMENT_MULTI'])) {
|
||||
} elseif (!is_array($language_data['COMMENT_MULTI'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'COMMENT_MULTI\'] structure which is not an array!');
|
||||
}
|
||||
|
||||
@ -370,7 +370,7 @@ if(!$error_abort) {
|
||||
|
||||
if(!isset($language_data['QUOTEMARKS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'QUOTEMARKS\'] structure to check!');
|
||||
} else if (!is_array($language_data['QUOTEMARKS'])) {
|
||||
} elseif (!is_array($language_data['QUOTEMARKS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'QUOTEMARKS\'] structure which is not an array!');
|
||||
}
|
||||
|
||||
@ -382,17 +382,17 @@ if(!$error_abort) {
|
||||
|
||||
if(!isset($language_data['ESCAPE_CHAR'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'ESCAPE_CHAR\'] specification to check!');
|
||||
} else if (!is_string($language_data['ESCAPE_CHAR'])) {
|
||||
} elseif (!is_string($language_data['ESCAPE_CHAR'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'ESCAPE_CHAR\'] specification which is not a string!');
|
||||
} else if (1 < strlen($language_data['ESCAPE_CHAR'])) {
|
||||
} elseif (1 < strlen($language_data['ESCAPE_CHAR'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'ESCAPE_CHAR\'] specification is not empty or exactly one char!');
|
||||
}
|
||||
|
||||
if(!isset($language_data['CASE_KEYWORDS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'CASE_KEYWORDS\'] specification!');
|
||||
} else if (!is_int($language_data['CASE_KEYWORDS'])) {
|
||||
} elseif (!is_int($language_data['CASE_KEYWORDS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'CASE_KEYWORDS\'] specification which is not an integer!');
|
||||
} else if (GESHI_CAPS_NO_CHANGE != $language_data['CASE_KEYWORDS'] &&
|
||||
} elseif (GESHI_CAPS_NO_CHANGE != $language_data['CASE_KEYWORDS'] &&
|
||||
GESHI_CAPS_LOWER != $language_data['CASE_KEYWORDS'] &&
|
||||
GESHI_CAPS_UPPER != $language_data['CASE_KEYWORDS']) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'CASE_KEYWORDS\'] specification which is neither of GESHI_CAPS_NO_CHANGE, GESHI_CAPS_LOWER nor GESHI_CAPS_UPPER!');
|
||||
@ -400,33 +400,33 @@ if(!$error_abort) {
|
||||
|
||||
if(!isset($language_data['KEYWORDS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'KEYWORDS\'] structure to check!');
|
||||
} else if (!is_array($language_data['KEYWORDS'])) {
|
||||
} elseif (!is_array($language_data['KEYWORDS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'KEYWORDS\'] structure which is not an array!');
|
||||
} else {
|
||||
foreach($language_data['KEYWORDS'] as $kw_key => $kw_value) {
|
||||
if(!is_integer($kw_key)) {
|
||||
report_error(TYPE_WARNING, "Language file contains an key '$kw_key' in \$language_data['KEYWORDS'] that is not integer!");
|
||||
} else if (!is_array($kw_value)) {
|
||||
report_error(TYPE_ERROR, "Language file contains a \$language_data['CASE_SENSITIVE']['$kw_value'] structure which is not an array!");
|
||||
} elseif (!is_array($kw_value)) {
|
||||
report_error(TYPE_ERROR, "Language file contains a \$language_data['KEYWORDS']['$kw_value'] structure which is not an array!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!isset($language_data['SYMBOLS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'SYMBOLS\'] structure to check!');
|
||||
} else if (!is_array($language_data['SYMBOLS'])) {
|
||||
} elseif (!is_array($language_data['SYMBOLS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'SYMBOLS\'] structure which is not an array!');
|
||||
}
|
||||
|
||||
if(!isset($language_data['CASE_SENSITIVE'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'CASE_SENSITIVE\'] structure to check!');
|
||||
} else if (!is_array($language_data['CASE_SENSITIVE'])) {
|
||||
} elseif (!is_array($language_data['CASE_SENSITIVE'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'CASE_SENSITIVE\'] structure which is not an array!');
|
||||
} else {
|
||||
foreach($language_data['CASE_SENSITIVE'] as $cs_key => $cs_value) {
|
||||
if(!is_integer($cs_key)) {
|
||||
report_error(TYPE_WARNING, "Language file contains an key '$cs_key' in \$language_data['CASE_SENSITIVE'] that is not integer!");
|
||||
} else if (!is_bool($cs_value)) {
|
||||
} elseif (!is_bool($cs_value)) {
|
||||
report_error(TYPE_ERROR, "Language file contains a Case Sensitivity specification for \$language_data['CASE_SENSITIVE']['$cs_value'] which is not a boolean!");
|
||||
}
|
||||
}
|
||||
@ -434,15 +434,15 @@ if(!$error_abort) {
|
||||
|
||||
if(!isset($language_data['URLS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'URLS\'] structure to check!');
|
||||
} else if (!is_array($language_data['URLS'])) {
|
||||
} elseif (!is_array($language_data['URLS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'URLS\'] structure which is not an array!');
|
||||
} else {
|
||||
foreach($language_data['URLS'] as $url_key => $url_value) {
|
||||
if(!is_integer($url_key)) {
|
||||
report_error(TYPE_WARNING, "Language file contains an key '$url_key' in \$language_data['URLS'] that is not integer!");
|
||||
} else if (!is_string($url_value)) {
|
||||
} elseif (!is_string($url_value)) {
|
||||
report_error(TYPE_ERROR, "Language file contains a Documentation URL specification for \$language_data['URLS']['$url_value'] which is not a string!");
|
||||
} else if (preg_match('#&([^;]*(=|$))#U', $url_value)) {
|
||||
} elseif (preg_match('#&([^;]*(=|$))#U', $url_value)) {
|
||||
report_error(TYPE_ERROR, "Language file contains unescaped ampersands (&) in \$language_data['URLS']!");
|
||||
}
|
||||
}
|
||||
@ -450,9 +450,9 @@ if(!$error_abort) {
|
||||
|
||||
if(!isset($language_data['OOLANG'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'OOLANG\'] specification!');
|
||||
} else if (!is_int($language_data['OOLANG']) && !is_bool($language_data['OOLANG'])) {
|
||||
} elseif (!is_int($language_data['OOLANG']) && !is_bool($language_data['OOLANG'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'OOLANG\'] specification which is neither boolean nor integer!');
|
||||
} else if (false !== $language_data['OOLANG'] &&
|
||||
} elseif (false !== $language_data['OOLANG'] &&
|
||||
true !== $language_data['OOLANG'] &&
|
||||
2 !== $language_data['OOLANG']) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'OOLANG\'] specification which is neither of false, true or 2!');
|
||||
@ -460,21 +460,21 @@ if(!$error_abort) {
|
||||
|
||||
if(!isset($language_data['OBJECT_SPLITTERS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'OBJECT_SPLITTERS\'] structure to check!');
|
||||
} else if (!is_array($language_data['OBJECT_SPLITTERS'])) {
|
||||
} elseif (!is_array($language_data['OBJECT_SPLITTERS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'OBJECT_SPLITTERS\'] structure which is not an array!');
|
||||
}
|
||||
|
||||
if(!isset($language_data['REGEXPS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'REGEXPS\'] structure to check!');
|
||||
} else if (!is_array($language_data['REGEXPS'])) {
|
||||
} elseif (!is_array($language_data['REGEXPS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'REGEXPS\'] structure which is not an array!');
|
||||
}
|
||||
|
||||
if(!isset($language_data['STRICT_MODE_APPLIES'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'STRICT_MODE_APPLIES\'] specification!');
|
||||
} else if (!is_int($language_data['STRICT_MODE_APPLIES'])) {
|
||||
} elseif (!is_int($language_data['STRICT_MODE_APPLIES'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'STRICT_MODE_APPLIES\'] specification which is not an integer!');
|
||||
} else if (GESHI_MAYBE != $language_data['STRICT_MODE_APPLIES'] &&
|
||||
} elseif (GESHI_MAYBE != $language_data['STRICT_MODE_APPLIES'] &&
|
||||
GESHI_ALWAYS != $language_data['STRICT_MODE_APPLIES'] &&
|
||||
GESHI_NEVER != $language_data['STRICT_MODE_APPLIES']) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'STRICT_MODE_APPLIES\'] specification which is neither of GESHI_MAYBE, GESHI_ALWAYS nor GESHI_NEVER!');
|
||||
@ -482,20 +482,20 @@ if(!$error_abort) {
|
||||
|
||||
if(!isset($language_data['SCRIPT_DELIMITERS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'SCRIPT_DELIMITERS\'] structure to check!');
|
||||
} else if (!is_array($language_data['SCRIPT_DELIMITERS'])) {
|
||||
} elseif (!is_array($language_data['SCRIPT_DELIMITERS'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'SCRIPT_DELIMITERS\'] structure which is not an array!');
|
||||
}
|
||||
|
||||
if(!isset($language_data['HIGHLIGHT_STRICT_BLOCK'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'HIGHLIGHT_STRICT_BLOCK\'] structure to check!');
|
||||
} else if (!is_array($language_data['HIGHLIGHT_STRICT_BLOCK'])) {
|
||||
} elseif (!is_array($language_data['HIGHLIGHT_STRICT_BLOCK'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'HIGHLIGHT_STRICT_BLOCK\'] structure which is not an array!');
|
||||
}
|
||||
|
||||
if(isset($language_data['TAB_WIDTH'])) {
|
||||
if (!is_int($language_data['TAB_WIDTH'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'TAB_WIDTH\'] specification which is not an integer!');
|
||||
} else if (1 > $language_data['TAB_WIDTH']) {
|
||||
} elseif (1 > $language_data['TAB_WIDTH']) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'TAB_WIDTH\'] specification which is less than 1!');
|
||||
}
|
||||
}
|
||||
@ -508,7 +508,7 @@ if(!$error_abort) {
|
||||
|
||||
if(!isset($language_data['STYLES'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains no $language_data[\'STYLES\'] structure to check!');
|
||||
} else if (!is_array($language_data['STYLES'])) {
|
||||
} elseif (!is_array($language_data['STYLES'])) {
|
||||
report_error(TYPE_ERROR, 'Language file contains a $language_data[\'STYLES\'] structure which is not an array!');
|
||||
} else {
|
||||
$style_arrays = array('KEYWORDS', 'COMMENTS', 'ESCAPE_CHAR',
|
||||
@ -517,14 +517,14 @@ if(!$error_abort) {
|
||||
foreach($style_arrays as $style_kind) {
|
||||
if(!isset($language_data['STYLES'][$style_kind])) {
|
||||
report_error(TYPE_ERROR, "Language file contains no \$language_data['STYLES']['$style_kind'] structure to check!");
|
||||
} else if (!is_array($language_data['STYLES'][$style_kind])) {
|
||||
} elseif (!is_array($language_data['STYLES'][$style_kind])) {
|
||||
report_error(TYPE_ERROR, "Language file contains a \$language_data['STYLES\']['$style_kind'] structure which is not an array!");
|
||||
} else {
|
||||
foreach($language_data['STYLES'][$style_kind] as $sk_key => $sk_value) {
|
||||
if(!is_int($sk_key) && ('COMMENTS' != $style_kind && 'MULTI' != $sk_key)
|
||||
&& !(('STRINGS' == $style_kind || 'ESCAPE_CHAR' == $style_kind) && 'HARD' == $sk_key)) {
|
||||
report_error(TYPE_WARNING, "Language file contains an key '$sk_key' in \$language_data['STYLES']['$style_kind'] that is not integer!");
|
||||
} else if (!is_string($sk_value)) {
|
||||
} elseif (!is_string($sk_value)) {
|
||||
report_error(TYPE_WARNING, "Language file contains a CSS specification for \$language_data['STYLES']['$style_kind'][$key] which is not a string!");
|
||||
}
|
||||
}
|
||||
@ -550,9 +550,9 @@ if(!$error_abort) {
|
||||
foreach($keywords as $id => $kw) {
|
||||
if(!is_string($kw)) {
|
||||
report_error(TYPE_WARNING, "Language file contains an non-string entry at \$language_data['KEYWORDS'][$key][$id]!");
|
||||
} else if (!strlen($kw)) {
|
||||
} elseif (!strlen($kw)) {
|
||||
report_error(TYPE_ERROR, "Language file contains an empty string entry at \$language_data['KEYWORDS'][$key][$id]!");
|
||||
} else if (preg_match('/^([\(\)\{\}\[\]\^=.,:;\-+\*\/%\$\"\'\?]|&[\w#]\w*;)+$/i', $kw)) {
|
||||
} elseif (preg_match('/^([\(\)\{\}\[\]\^=.,:;\-+\*\/%\$\"\'\?]|&[\w#]\w*;)+$/i', $kw)) {
|
||||
report_error(TYPE_NOTICE, "Language file contains an keyword ('$kw') at \$language_data['KEYWORDS'][$key][$id] which seems to be better suited for the symbols section!");
|
||||
}
|
||||
}
|
||||
@ -764,6 +764,6 @@ if ( PHP_SAPI != 'cli' ) {
|
||||
|
||||
Validation process completed in <? printf("%.2f", $time_diff); ?> seconds.
|
||||
|
||||
GeSHi © 2004-2007 Nigel McNie, 2007-2008 Benny Baumann, released under the GNU GPL
|
||||
GeSHi © 2004-2007 Nigel McNie, 2007-2012 Benny Baumann, released under the GNU GPL
|
||||
|
||||
<?php } ?>
|
@ -8,7 +8,7 @@
|
||||
*This script
|
||||
*
|
||||
* @author Nigel McNie, Benny Baumann (BenBE@geshi.org), Andreas 'Segaja' Schleifer (webmaster at segaja dot de)
|
||||
* @version $Id: langwiz.php 2285 2010-04-10 18:55:11Z segaja $
|
||||
* @version $Id: langwiz.php 2510 2012-06-27 15:57:55Z reedy_boy $
|
||||
*/
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
|
||||
@ -81,16 +81,6 @@ function report_error($type, $message) {
|
||||
}
|
||||
}
|
||||
|
||||
function extvar($name, $default){
|
||||
if(isset($_POST[$name])) {
|
||||
return $_POST[$name];
|
||||
}
|
||||
if(isset($_GET[$name])) {
|
||||
return $_GET[$name];
|
||||
}
|
||||
return $default;
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
@ -146,15 +136,15 @@ function extvar($name, $default){
|
||||
margin-left: .5em;
|
||||
}
|
||||
fieldset {
|
||||
border: 1px dotted gray;
|
||||
background-color: #f0f0f0;
|
||||
margin-bottom: .5em;
|
||||
border: 1px dotted gray;
|
||||
background-color: #f0f0f0;
|
||||
margin-bottom: .5em;
|
||||
}
|
||||
legend {
|
||||
font-weight: bold;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #a0a0a0;
|
||||
border-width: 1px 2px 2px 1px;
|
||||
font-weight: bold;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #a0a0a0;
|
||||
border-width: 1px 2px 2px 1px;
|
||||
}
|
||||
fieldset table > tbody > tr > td {
|
||||
width: 20%;
|
||||
@ -202,9 +192,9 @@ if(!$error_abort) {
|
||||
if(!$error_abort) {
|
||||
if(!defined('GESHI_LANG_ROOT')) {
|
||||
report_error(TYPE_ERROR, 'There\'s no information present on where to find the language files!');
|
||||
} else if(!is_dir(GESHI_LANG_ROOT)) {
|
||||
} elseif(!is_dir(GESHI_LANG_ROOT)) {
|
||||
report_error(TYPE_ERROR, 'The path "'.GESHI_LANG_ROOT.'" given, does not ressemble a directory!');
|
||||
} else if(!is_readable(GESHI_LANG_ROOT)) {
|
||||
} elseif(!is_readable(GESHI_LANG_ROOT)) {
|
||||
report_error(TYPE_ERROR, 'The path "'.GESHI_LANG_ROOT.'" is not readable to this script!');
|
||||
}
|
||||
}
|
||||
@ -341,8 +331,6 @@ $kw_cases_sel = array(
|
||||
|
||||
echo "<pre>";
|
||||
//var_dump($languages);
|
||||
var_dump($_GET);
|
||||
var_dump($_POST);
|
||||
|
||||
foreach($post_var_names as $varName) { // export wanted variables of $_POST array...
|
||||
if(array_key_exists($varName, $_POST)) {
|
||||
@ -709,7 +697,7 @@ echo "</pre>";
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
|
||||
|
||||
<fieldset>
|
||||
<legend>Keywords</legend>
|
||||
|
||||
@ -901,7 +889,7 @@ function validate_lang(){
|
||||
'str' => array(
|
||||
'qm' => array(),
|
||||
'ec' => array(
|
||||
'char' => ''
|
||||
'char' => ''
|
||||
),
|
||||
'erx' => array()
|
||||
),
|
||||
|
@ -41,7 +41,7 @@
|
||||
//
|
||||
|
||||
/** The version of this GeSHi file */
|
||||
define('GESHI_VERSION', '1.0.8.10');
|
||||
define('GESHI_VERSION', '1.0.8.11');
|
||||
|
||||
// Define the root directory for the GeSHi code tree
|
||||
if (!defined('GESHI_ROOT')) {
|
||||
@ -604,6 +604,17 @@ class GeSHi {
|
||||
$this->set_language_path($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the version of GeSHi
|
||||
*
|
||||
* @return string
|
||||
* @since 1 0.8.11
|
||||
*/
|
||||
function get_version()
|
||||
{
|
||||
return GESHI_VERSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an error message associated with the last GeSHi operation,
|
||||
* or false if no error has occured
|
||||
@ -808,7 +819,7 @@ class GeSHi {
|
||||
}
|
||||
|
||||
// match the langname
|
||||
if (!preg_match('/\'LANG_NAME\'\s*=>\s*\'((?:[^\']|\\\')+)\'/', $data, $matches)) {
|
||||
if (!preg_match('/\'LANG_NAME\'\s*=>\s*\'((?:[^\']|\\\')+?)\'/', $data, $matches)) {
|
||||
$this->error = sprintf('Geshi::get_lang_fullname(%s): Regex can not detect language', $language);
|
||||
return false;
|
||||
}
|
||||
@ -1437,6 +1448,8 @@ class GeSHi {
|
||||
* @todo static?
|
||||
*/
|
||||
function get_language_name_from_extension( $extension, $lookup = array() ) {
|
||||
$extension = strtolower($extension);
|
||||
|
||||
if ( !is_array($lookup) || empty($lookup)) {
|
||||
$lookup = array(
|
||||
'6502acme' => array( 'a', 's', 'asm', 'inc' ),
|
||||
@ -1470,6 +1483,7 @@ class GeSHi {
|
||||
'gnuplot' => array('plt'),
|
||||
'groovy' => array('groovy'),
|
||||
'haskell' => array('hs'),
|
||||
'haxe' => array('hx'),
|
||||
'html4strict' => array('html', 'htm'),
|
||||
'ini' => array('ini', 'desktop'),
|
||||
'java' => array('java'),
|
||||
@ -1504,6 +1518,7 @@ class GeSHi {
|
||||
'smalltalk' => array('st'),
|
||||
'smarty' => array(),
|
||||
'tcl' => array('tcl'),
|
||||
'text' => array('txt'),
|
||||
'vb' => array('bas'),
|
||||
'vbnet' => array(),
|
||||
'visualfoxpro' => array(),
|
||||
@ -1518,7 +1533,8 @@ class GeSHi {
|
||||
return $lang;
|
||||
}
|
||||
}
|
||||
return '';
|
||||
|
||||
return 'text';
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1555,6 +1571,9 @@ class GeSHi {
|
||||
* @since 1.0.0
|
||||
*/
|
||||
function add_keyword($key, $word) {
|
||||
if (!is_array($this->language_data['KEYWORDS'][$key])) {
|
||||
$this->language_data['KEYWORDS'][$key] = array();
|
||||
}
|
||||
if (!in_array($word, $this->language_data['KEYWORDS'][$key])) {
|
||||
$this->language_data['KEYWORDS'][$key][] = $word;
|
||||
|
||||
@ -1816,7 +1835,7 @@ class GeSHi {
|
||||
//Decide on which style to use
|
||||
if ($style === null) { //Check if we should use default style
|
||||
unset($this->highlight_extra_lines_styles[$lines]);
|
||||
} else if ($style === false) { //Check if to remove this line
|
||||
} elseif ($style === false) { //Check if to remove this line
|
||||
unset($this->highlight_extra_lines[$lines]);
|
||||
unset($this->highlight_extra_lines_styles[$lines]);
|
||||
} else {
|
||||
@ -1988,7 +2007,7 @@ class GeSHi {
|
||||
$this->language_data['SYMBOL_DATA'][$symbols] = 0;
|
||||
if (isset($symbols[1])) { // multiple chars
|
||||
$symbol_preg_multi[] = preg_quote($symbols, '/');
|
||||
} else if ($symbols == '-') {
|
||||
} elseif ($symbols == '-') {
|
||||
// don't trigger range out of order error
|
||||
$symbol_preg_single[] = '\-';
|
||||
} else { // single char
|
||||
@ -2392,7 +2411,7 @@ class GeSHi {
|
||||
foreach ($this->language_data['QUOTEMARKS'] as $quotemark) {
|
||||
if (!isset($is_string_starter[$quotemark[0]])) {
|
||||
$is_string_starter[$quotemark[0]] = (string)$quotemark;
|
||||
} else if (is_string($is_string_starter[$quotemark[0]])) {
|
||||
} elseif (is_string($is_string_starter[$quotemark[0]])) {
|
||||
$is_string_starter[$quotemark[0]] = array(
|
||||
$is_string_starter[$quotemark[0]],
|
||||
$quotemark);
|
||||
@ -2478,7 +2497,7 @@ class GeSHi {
|
||||
continue;
|
||||
}
|
||||
$match_i = $comment_regexp_cache_per_key[$comment_key]['pos'];
|
||||
} else if (
|
||||
} elseif (
|
||||
//This is to allow use of the offset parameter in preg_match and stay as compatible with older PHP versions as possible
|
||||
(GESHI_PHP_PRE_433 && preg_match($regexp, substr($part, $i), $match, PREG_OFFSET_CAPTURE)) ||
|
||||
(!GESHI_PHP_PRE_433 && preg_match($regexp, $part, $match, PREG_OFFSET_CAPTURE, $i))
|
||||
@ -2586,7 +2605,7 @@ class GeSHi {
|
||||
continue;
|
||||
}
|
||||
$match_i = $escape_regexp_cache_per_key[$escape_key]['pos'];
|
||||
} else if (
|
||||
} elseif (
|
||||
//This is to allow use of the offset parameter in preg_match and stay as compatible with older PHP versions as possible
|
||||
(GESHI_PHP_PRE_433 && preg_match($regexp, substr($part, $start), $match, PREG_OFFSET_CAPTURE)) ||
|
||||
(!GESHI_PHP_PRE_433 && preg_match($regexp, $part, $match, PREG_OFFSET_CAPTURE, $start))
|
||||
@ -2656,13 +2675,13 @@ class GeSHi {
|
||||
// don't put a newline around newlines
|
||||
$string .= "</span>\n";
|
||||
$start = $es_pos + 2;
|
||||
} else if (ord($es_char) >= 128) {
|
||||
} elseif (ord($es_char) >= 128) {
|
||||
//This is an non-ASCII char (UTF8 or single byte)
|
||||
//This code tries to work around SF#2037598 ...
|
||||
if(function_exists('mb_substr')) {
|
||||
$es_char_m = mb_substr(substr($part, $es_pos+1, 16), 0, 1, $this->encoding);
|
||||
$string .= $es_char_m . '</span>';
|
||||
} else if (!GESHI_PHP_PRE_433 && 'utf-8' == $this->encoding) {
|
||||
} elseif (!GESHI_PHP_PRE_433 && 'utf-8' == $this->encoding) {
|
||||
if(preg_match("/[\xC2-\xDF][\x80-\xBF]".
|
||||
"|\xE0[\xA0-\xBF][\x80-\xBF]".
|
||||
"|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}".
|
||||
@ -2684,7 +2703,7 @@ class GeSHi {
|
||||
$string .= $this->hsc($es_char) . '</span>';
|
||||
$start = $es_pos + 2;
|
||||
}
|
||||
} else if ($next_escape_regexp_pos < $length &&
|
||||
} elseif ($next_escape_regexp_pos < $length &&
|
||||
$next_escape_regexp_pos < $close_pos) {
|
||||
$es_pos = $next_escape_regexp_pos;
|
||||
//Add the stuff not in the string yet ...
|
||||
@ -2728,7 +2747,7 @@ class GeSHi {
|
||||
$string = '';
|
||||
$i = $start - 1;
|
||||
continue;
|
||||
} else if ($this->lexic_permissions['STRINGS'] && $hq && $hq[0] == $char &&
|
||||
} elseif ($this->lexic_permissions['STRINGS'] && $hq && $hq[0] == $char &&
|
||||
substr($part, $i, $hq_strlen) == $hq && ($i != $next_comment_regexp_pos)) {
|
||||
// The start of a hard quoted string
|
||||
if (!$this->use_classes) {
|
||||
@ -2886,7 +2905,7 @@ class GeSHi {
|
||||
continue;
|
||||
}
|
||||
$match_i = $comment_multi_cache_per_key[$open];
|
||||
} else if (($match_i = stripos($part, $open, $i)) !== false) {
|
||||
} elseif (($match_i = stripos($part, $open, $i)) !== false) {
|
||||
$comment_multi_cache_per_key[$open] = $match_i;
|
||||
} else {
|
||||
$comment_multi_cache_per_key[$open] = false;
|
||||
@ -2983,7 +3002,7 @@ class GeSHi {
|
||||
continue;
|
||||
}
|
||||
$match_i = $comment_single_cache_per_key[$comment_key];
|
||||
} else if (
|
||||
} elseif (
|
||||
// case sensitive comments
|
||||
($this->language_data['CASE_SENSITIVE'][GESHI_COMMENTS] &&
|
||||
($match_i = stripos($part, $comment_mark, $i)) !== false) ||
|
||||
@ -3140,10 +3159,10 @@ class GeSHi {
|
||||
$IN_TAG = false;
|
||||
}
|
||||
$lines[$key] .= $char;
|
||||
} else if ('<' == $char) {
|
||||
} elseif ('<' == $char) {
|
||||
$IN_TAG = true;
|
||||
$lines[$key] .= '<';
|
||||
} else if ('&' == $char) {
|
||||
} elseif ('&' == $char) {
|
||||
$substr = substr($line, $i + 3, 5);
|
||||
$posi = strpos($substr, ';');
|
||||
if (false === $posi) {
|
||||
@ -3152,7 +3171,7 @@ class GeSHi {
|
||||
$pos -= $posi+2;
|
||||
}
|
||||
$lines[$key] .= $char;
|
||||
} else if ("\t" == $char) {
|
||||
} elseif ("\t" == $char) {
|
||||
$str = '';
|
||||
// OPTIMISE - move $strs out. Make an array:
|
||||
// $tabs = array(
|
||||
@ -3173,7 +3192,7 @@ class GeSHi {
|
||||
$lines[$key] .= substr($line, $i + 1);
|
||||
break;
|
||||
}
|
||||
} else if (0 == $pos && ' ' == $char) {
|
||||
} elseif (0 == $pos && ' ' == $char) {
|
||||
$lines[$key] .= ' ';
|
||||
++$pos;
|
||||
} else {
|
||||
@ -3231,6 +3250,7 @@ class GeSHi {
|
||||
function handle_keyword_replace($match) {
|
||||
$k = $this->_kw_replace_group;
|
||||
$keyword = $match[0];
|
||||
$keyword_match = $match[1];
|
||||
|
||||
$before = '';
|
||||
$after = '';
|
||||
@ -3248,12 +3268,12 @@ class GeSHi {
|
||||
if (!$this->language_data['CASE_SENSITIVE'][$k] &&
|
||||
strpos($this->language_data['URLS'][$k], '{FNAME}') !== false) {
|
||||
foreach ($this->language_data['KEYWORDS'][$k] as $word) {
|
||||
if (strcasecmp($word, $keyword) == 0) {
|
||||
if (strcasecmp($word, $keyword_match) == 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$word = $keyword;
|
||||
$word = $keyword_match;
|
||||
}
|
||||
|
||||
$before = '<|UR1|"' .
|
||||
@ -3367,7 +3387,7 @@ class GeSHi {
|
||||
|
||||
foreach (array_keys($this->language_data['KEYWORDS']) as $k) {
|
||||
if (!isset($this->lexic_permissions['KEYWORDS'][$k]) ||
|
||||
$this->lexic_permissions['KEYWORDS'][$k]) {
|
||||
$this->lexic_permissions['KEYWORDS'][$k]) {
|
||||
|
||||
$case_sensitive = $this->language_data['CASE_SENSITIVE'][$k];
|
||||
$modifiers = $case_sensitive ? '' : 'i';
|
||||
@ -3991,7 +4011,7 @@ class GeSHi {
|
||||
$parsed_code .= $this->line_numbers_start + $i;
|
||||
if ($close) {
|
||||
$parsed_code .= str_repeat('</span>', $close);
|
||||
} else if ($i != $n) {
|
||||
} elseif ($i != $n) {
|
||||
$parsed_code .= "\n";
|
||||
}
|
||||
}
|
||||
@ -4123,10 +4143,10 @@ class GeSHi {
|
||||
if ($this->line_numbers != GESHI_NO_LINE_NUMBERS) {
|
||||
if ($this->header_type == GESHI_HEADER_PRE) {
|
||||
return "<pre$attributes>$header<ol$ol_attributes>";
|
||||
} else if ($this->header_type == GESHI_HEADER_DIV ||
|
||||
} elseif ($this->header_type == GESHI_HEADER_DIV ||
|
||||
$this->header_type == GESHI_HEADER_PRE_VALID) {
|
||||
return "<div$attributes>$header<ol$ol_attributes>";
|
||||
} else if ($this->header_type == GESHI_HEADER_PRE_TABLE) {
|
||||
} elseif ($this->header_type == GESHI_HEADER_PRE_TABLE) {
|
||||
return "<table$attributes>$header<tbody><tr class=\"li1\">";
|
||||
}
|
||||
} else {
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ------
|
||||
* Author: Jason Curl (jason.curl@continental-corporation.com)
|
||||
* Copyright: (c) 2009 Jason Curl
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/09/05
|
||||
*
|
||||
* 4CS language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------
|
||||
* Author: Warren Willmey
|
||||
* Copyright: (c) 2010 Warren Willmey.
|
||||
* Release Version: 1.0.8.10
|
||||
* 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.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------
|
||||
* Author: Warren Willmey
|
||||
* Copyright: (c) 2010 Warren Willmey.
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/06/07
|
||||
*
|
||||
* MOS 6502 (6510) Kick Assembler 3.13 language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------
|
||||
* Author: Warren Willmey
|
||||
* Copyright: (c) 2010 Warren Willmey.
|
||||
* Release Version: 1.0.8.10
|
||||
* 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.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------
|
||||
* Author: Warren Willmey
|
||||
* Copyright: (c) 2010 Warren Willmey.
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/06/09
|
||||
*
|
||||
* Motorola 68000 - HiSoft Devpac ST 2 Assembler language file for GeSHi.
|
||||
|
@ -7,7 +7,7 @@
|
||||
* - Sandra Rossi (sandra.rossi@gmail.com)
|
||||
* - Jacob Laursen (jlu@kmd.dk)
|
||||
* Copyright: (c) 2007 Andres Picazo
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/06/04
|
||||
*
|
||||
* ABAP language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------------
|
||||
* Author: Steffen Krause (Steffen.krause@muse.de)
|
||||
* Copyright: (c) 2004 Steffen Krause, Nigel McNie (http://qbnz.com/highlighter)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/06/20
|
||||
*
|
||||
* Actionscript language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2007/11/26
|
||||
*
|
||||
* ActionScript3 language file for GeSHi.
|
||||
@ -72,7 +72,7 @@ $language_data = array (
|
||||
'private', 'null', 'new', 'is', 'internal', 'instanceof', 'in',
|
||||
'import', 'if', 'get', 'for', 'false', 'else', 'each', 'do',
|
||||
'delete', 'default', 'continue', 'catch', 'case', 'break', 'as',
|
||||
'extends'
|
||||
'extends', 'override'
|
||||
),
|
||||
2 => array(
|
||||
'var'
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------
|
||||
* Author: Tux (tux@inmail.cz)
|
||||
* Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/07/29
|
||||
*
|
||||
* Ada language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Neville Dempsey (NevilleD.sourceforge@sgr-a.net)
|
||||
* Copyright: (c) 2010 Neville Dempsey (https://sourceforge.net/projects/algol68/files/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/04/24
|
||||
*
|
||||
* ALGOL 68 language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: Tux (tux@inmail.cz)
|
||||
* Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/29/07
|
||||
*
|
||||
* Apache language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Stephan Klimek (http://www.initware.org)
|
||||
* Copyright: Stephan Klimek (http://www.initware.org)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2005/07/20
|
||||
*
|
||||
* AppleScript language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: Milian Wolff (mail@milianw.de)
|
||||
* Copyright: (c) 2008 Milian Wolff (http://milianw.de)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2008/06/17
|
||||
*
|
||||
* Apt sources.list language file for GeSHi.
|
||||
|
3318
htdocs/application/libraries/geshi/geshi/arm.php
Normal file
3318
htdocs/application/libraries/geshi/geshi/arm.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -3,15 +3,56 @@
|
||||
* asm.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.10
|
||||
* 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.
|
||||
* Words are from SciTe configuration file (based on NASM syntax)
|
||||
* 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)
|
||||
@ -55,26 +96,71 @@ $language_data = array (
|
||||
'QUOTEMARKS' => array("'", '"'),
|
||||
'ESCAPE_CHAR' => '',
|
||||
'KEYWORDS' => array(
|
||||
/*CPU*/
|
||||
/* General-Purpose */
|
||||
1 => array(
|
||||
'aaa','aad','aam','aas','adc','add','and','call','cbw','clc','cld','cli','cmc','cmp',
|
||||
'cmps','cmpsb','cmpsw','cwd','daa','das','dec','div','esc','hlt','idiv','imul','in','inc',
|
||||
'int','into','iret','ja','jae','jb','jbe','jc','jcxz','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','lahf','lds','lea','les','lods','lodsb','lodsw','loop',
|
||||
'loope','loopew','loopne','loopnew','loopnz','loopnzw','loopw','loopz','loopzw','mov',
|
||||
'movs','movsb','movsw','mul','neg','nop','not','or','out','pop','popf','push','pushf',
|
||||
'rcl','rcr','ret','retf','retn','rol','ror','sahf','sal','sar','sbb','scas','scasb','scasw',
|
||||
'shl','shr','stc','std','sti','stos','stosb','stosw','sub','test','wait','xchg','xlat',
|
||||
'xlatb','xor','bound','enter','ins','insb','insw','leave','outs','outsb','outsw','popa','pusha','pushw',
|
||||
'arpl','lar','lsl','sgdt','sidt','sldt','smsw','str','verr','verw','clts','lgdt','lidt','lldt','lmsw','ltr',
|
||||
'bsf','bsr','bt','btc','btr','bts','cdq','cmpsd','cwde','insd','iretd','iretdf','iretf',
|
||||
'jecxz','lfs','lgs','lodsd','loopd','looped','loopned','loopnzd','loopzd','lss','movsd',
|
||||
'movsx','movzx','outsd','popad','popfd','pushad','pushd','pushfd','scasd','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','shld','shrd','stosd','bswap','cmpxchg','invd','invlpg','wbinvd','xadd','lock',
|
||||
'rep','repe','repne','repnz','repz'
|
||||
/* 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(
|
||||
@ -87,56 +173,350 @@ $language_data = array (
|
||||
'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'
|
||||
'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*/
|
||||
3 => array(
|
||||
'ah','al','ax','bh','bl','bp','bx','ch','cl','cr0','cr2','cr3','cs','cx','dh','di','dl',
|
||||
'dr0','dr1','dr2','dr3','dr6','dr7','ds','dx','eax','ebp','ebx','ecx','edi','edx',
|
||||
'es','esi','esp','fs','gs','si','sp','ss','st','tr3','tr4','tr5','tr6','tr7'
|
||||
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*/
|
||||
4 => array(
|
||||
'186','286','286c','286p','287','386','386c','386p','387','486','486p',
|
||||
'8086','8087','alpha','break','code','const','continue','cref','data','data?',
|
||||
'dosseg','else','elseif','endif','endw','equ','err','err1','err2','errb',
|
||||
'errdef','errdif','errdifi','erre','erridn','erridni','errnb','errndef',
|
||||
'errnz','exit','fardata','fardata?','global','if','lall','lfcond','list','listall',
|
||||
'listif','listmacro','listmacroall',' model','no87','nocref','nolist',
|
||||
'nolistif','nolistmacro','radix','repeat','sall','seq','sfcond','stack',
|
||||
'startup','tfcond','type','until','untilcxz','while','xall','xcref',
|
||||
'xlist','alias','align','assume','catstr','comm','comment','db','dd','df','dq',
|
||||
'dt','dup','dw','echo','elseif1','elseif2','elseifb','elseifdef','elseifdif',
|
||||
'elseifdifi','elseife','elseifidn','elseifidni','elseifnb','elseifndef','end',
|
||||
'endm','endp','ends','eq',' equ','even','exitm','extern','externdef','extrn','for',
|
||||
'forc','ge','goto','group','high','highword','if1','if2','ifb','ifdef','ifdif',
|
||||
'ifdifi','ife',' ifidn','ifidni','ifnb','ifndef','include','includelib','instr','invoke',
|
||||
'irp','irpc','label','le','length','lengthof','local','low','lowword','lroffset',
|
||||
'macro','mask','mod','msfloat','name','ne','offset','opattr','option','org','%out',
|
||||
'page','popcontext','private','proc','proto','ptr','public','purge','pushcontext','record',
|
||||
'resb','resd','resw','rept','section','seg','segment','short','size','sizeof','sizestr','struc','struct',
|
||||
'substr','subtitle','subttl','textequ','this','title','typedef','union','width',
|
||||
'.model', '.stack', '.code', '.data'
|
||||
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*/
|
||||
5 => array(
|
||||
'@b','@f','addr','basic','byte','c','carry?','dword',
|
||||
'far','far16','fortran','fword','near','near16','overflow?','parity?','pascal','qword',
|
||||
'real4',' real8','real10','sbyte','sdword','sign?','stdcall','sword','syscall','tbyte',
|
||||
'vararg','word','zero?','flat','near32','far32',
|
||||
'abs','all','assumes','at','casemap','common','compact',
|
||||
'cpu','dotname','emulator','epilogue','error','export','expr16','expr32','farstack',
|
||||
'forceframe','huge','language','large','listing','ljmp','loadds','m510','medium','memory',
|
||||
'nearstack','nodotname','noemulator','nokeyword','noljmp','nom510','none','nonunique',
|
||||
'nooldmacros','nooldstructs','noreadonly','noscoped','nosignextend','nothing',
|
||||
'notpublic','oldmacros','oldstructs','os_dos','para','prologue',
|
||||
'readonly','req','scoped','setif2','smallstack','tiny','use16','use32','uses'
|
||||
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,
|
||||
@ -144,19 +524,21 @@ $language_data = array (
|
||||
2 => false,
|
||||
3 => false,
|
||||
4 => false,
|
||||
5 => false
|
||||
5 => false,
|
||||
6 => false
|
||||
),
|
||||
'STYLES' => array(
|
||||
'KEYWORDS' => array(
|
||||
1 => 'color: #00007f; font-weight: bold;',
|
||||
2 => 'color: #0000ff; font-weight: bold;',
|
||||
3 => 'color: #00007f;',
|
||||
4 => 'color: #000000; font-weight: bold;',
|
||||
5 => 'color: #000000; 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;',
|
||||
2 => 'color: #adadad; font-style: italic;'
|
||||
),
|
||||
'ESCAPE_CHAR' => array(
|
||||
0 => 'color: #000099; font-weight: bold;'
|
||||
@ -168,16 +550,15 @@ $language_data = array (
|
||||
0 => 'color: #7f007f;'
|
||||
),
|
||||
'NUMBERS' => array(
|
||||
0 => 'color: #0000ff;'
|
||||
0 => 'color: #ff0000;'
|
||||
),
|
||||
'METHODS' => array(
|
||||
),
|
||||
'SYMBOLS' => array(
|
||||
0 => 'color: #339933;'
|
||||
1 => 'color: #339933;',
|
||||
2 => 'color: #0000ff; font-weight: bold;'
|
||||
),
|
||||
'REGEXPS' => array(
|
||||
// 0 => 'color: #0000ff;',
|
||||
// 1 => 'color: #0000ff;'
|
||||
),
|
||||
'SCRIPT' => array(
|
||||
)
|
||||
@ -187,7 +568,8 @@ $language_data = array (
|
||||
2 => '',
|
||||
3 => '',
|
||||
4 => '',
|
||||
5 => ''
|
||||
5 => '',
|
||||
6 => ''
|
||||
),
|
||||
'NUMBERS' =>
|
||||
GESHI_NUMBER_BIN_PREFIX_PERCENT |
|
||||
@ -203,10 +585,6 @@ $language_data = array (
|
||||
'OBJECT_SPLITTERS' => array(
|
||||
),
|
||||
'REGEXPS' => array(
|
||||
//Hex numbers
|
||||
// 0 => /* */ "(?<=([\\s\\(\\)\\[\\],;.:+\\-\\/*]))(?:[0-9][0-9a-fA-F]{0,31}[hH]|0x[0-9a-fA-F]{1,32})(?=([\\s\\(\\)\\[\\],;.:+\\-\\/*]))",
|
||||
//Binary numbers
|
||||
// 1 => "(?<=([\\s\\(\\)\\[\\],;.:+\\-\\/*]))[01]{1,64}[bB](?=([\\s\\(\\)\\[\\],;.:+\\-\\/*]))"
|
||||
),
|
||||
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
||||
'SCRIPT_DELIMITERS' => array(
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/08/13
|
||||
*
|
||||
* ASP language file for GeSHi.
|
||||
|
194
htdocs/application/libraries/geshi/geshi/asymptote.php
Normal file
194
htdocs/application/libraries/geshi/geshi/asymptote.php
Normal 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_\|%\\-])"
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
@ -4,7 +4,7 @@
|
||||
* -----
|
||||
* Author: Mihai Vasilian (grayasm@gmail.com)
|
||||
* Copyright: (c) 2010 Mihai Vasilian
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/01/25
|
||||
*
|
||||
* autoconf language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Naveen Garg (naveen.garg@gmail.com)
|
||||
* Copyright: (c) 2009 Naveen Garg and GeSHi
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/06/11
|
||||
*
|
||||
* Autohotkey language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: big_daddy (robert.i.anthony@gmail.com)
|
||||
* Copyright: (c) 2006 and to GESHi ;)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2006/01/26
|
||||
*
|
||||
* AutoIT language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Ryan Jones (sciguyryan@gmail.com)
|
||||
* Copyright: (c) 2008 Ryan Jones
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2008/10/08
|
||||
*
|
||||
* AviSynth language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------
|
||||
* Author: George Pollard (porges@porg.es)
|
||||
* Copyright: (c) 2009 George Pollard
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/01/28
|
||||
*
|
||||
* Awk language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ---------------------------------
|
||||
* Author: aquaticus.info
|
||||
* Copyright: (c) 2008 aquaticus.info
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2008/01/09
|
||||
*
|
||||
* BASCOM AVR language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Andreas Gohr (andi@splitbrain.org)
|
||||
* Copyright: (c) 2004 Andreas Gohr, Nigel McNie (http://qbnz.com/highlighter)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/08/20
|
||||
*
|
||||
* BASH language file for GeSHi.
|
||||
@ -157,8 +157,8 @@ $language_data = array (
|
||||
|
||||
'ed', 'egrep', 'env', 'expr',
|
||||
|
||||
'false', 'fbset', 'ffmpeg', 'fgconsole','fgrep', 'file', 'find',
|
||||
'flex', 'flex++', 'fmt', 'free', 'ftp', 'funzip', 'fuser',
|
||||
'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',
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ---------------------------------
|
||||
* Author: Matthew Webb (bmatthew1@blueyonder.co.uk)
|
||||
* Copyright: (c) 2004 Matthew Webb (http://matthew-4gl.wikispaces.com)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2007/09/15
|
||||
*
|
||||
* Basic4GL language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: Benny Baumann (BenBE@geshi.org)
|
||||
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/10/31
|
||||
*
|
||||
* Brainfuck language file for GeSHi.
|
||||
@ -63,7 +63,7 @@ $language_data = array (
|
||||
1 => 'color: #666666; font-style: italic;'
|
||||
),
|
||||
'BRACKETS' => array(
|
||||
0 => 'color: #66cc66;'
|
||||
0 => 'color: #660000;'
|
||||
),
|
||||
'STRINGS' => array(
|
||||
0 => 'color: #ff0000;'
|
||||
@ -76,8 +76,8 @@ $language_data = array (
|
||||
0 => 'color: #006600;',
|
||||
1 => 'color: #660000;',
|
||||
2 => 'color: #000066;',
|
||||
3 => 'color: #660066;',
|
||||
4 => 'color: #666600;'
|
||||
3 => 'color: #666600;',
|
||||
4 => 'color: #660066;'
|
||||
),
|
||||
'ESCAPE_CHAR' => array(
|
||||
),
|
||||
@ -102,8 +102,9 @@ $language_data = array (
|
||||
'PARSER_CONTROL' => array(
|
||||
'ENABLE_FLAGS' => array(
|
||||
'STRINGS' => GESHI_NEVER,
|
||||
'NUMBERS' => GESHI_NEVER
|
||||
),
|
||||
'NUMBERS' => GESHI_NEVER,
|
||||
'BRACKETS' => GESHI_NEVER
|
||||
),
|
||||
'KEYWORDS' => array(
|
||||
'DISALLOW_BEFORE' => '',
|
||||
'DISALLOW_AFTER' => ''
|
||||
@ -111,4 +112,4 @@ $language_data = array (
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
||||
?>
|
@ -4,7 +4,7 @@
|
||||
* -----
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/04/29
|
||||
*
|
||||
* BibTeX language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 16.10.2005
|
||||
*
|
||||
* BlitzBasic language file for GeSHi.
|
||||
@ -56,7 +56,7 @@ $language_data = array (
|
||||
'ESCAPE_CHAR' => '',
|
||||
'KEYWORDS' => array(
|
||||
1 => array(
|
||||
'If','EndIf','ElseIf','Else If','Else','While','Wend','Return','Next','Include','End Type','End Select','End If','End Function','End','Select',
|
||||
'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'
|
||||
),
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2006/09/28
|
||||
*
|
||||
* BNF (Backus-Naur form) language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Marcus Griep (neoeinstein+GeSHi@gmail.com)
|
||||
* Copyright: (c) 2007 Marcus Griep (http://www.xpdm.us)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2007/09/10
|
||||
*
|
||||
* Boo language file for GeSHi.
|
||||
|
@ -7,7 +7,7 @@
|
||||
* - Jack Lloyd (lloyd@randombit.net)
|
||||
* - Michael Mol (mikemol@gmail.com)
|
||||
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/06/04
|
||||
*
|
||||
* C language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ---------------------------------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010-07-25
|
||||
*
|
||||
* C (for LoadRunner) language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ---------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/06/04
|
||||
*
|
||||
* C for Macs language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/08/30
|
||||
*
|
||||
* CAD DCL (Dialog Control Language) language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -----------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/08/30
|
||||
*
|
||||
* AutoCAD/IntelliCAD Lisp language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: John Horigan <john@glyphic.com>
|
||||
* Copyright: (c) 2006 John Horigan http://www.ozonehouse.com/john/
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2006/03/11
|
||||
*
|
||||
* CFDG language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------
|
||||
* Author: Diego
|
||||
* Copyright: (c) 2006 Diego
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2006/02/25
|
||||
*
|
||||
* ColdFusion language file for GeSHi.
|
||||
|
@ -6,7 +6,7 @@
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/07/03
|
||||
*
|
||||
* ChaiScript language file for GeSHi.
|
||||
@ -52,7 +52,7 @@ $language_data = array (
|
||||
'ESCAPE_CHAR' => '\\',
|
||||
'KEYWORDS' => array(
|
||||
1 => array(
|
||||
'break', 'else', 'else if', 'eval', 'for', 'if', 'return', 'while', 'try', 'catch', 'finally',
|
||||
'break', 'else', 'elseif', 'eval', 'for', 'if', 'return', 'while', 'try', 'catch', 'finally',
|
||||
),
|
||||
2 => array(
|
||||
'def', 'false', 'fun', 'true', 'var', 'attr',
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Marcus Griep (neoeinstein+GeSHi@gmail.com)
|
||||
* Copyright: (c) 2007 Marcus Griep (http://www.xpdm.us)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2007/10/24
|
||||
*
|
||||
* CIL (Common Intermediate Language) language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Jess Johnson (jess@grok-code.com)
|
||||
* Copyright: (c) 2009 Jess Johnson (http://grok-code.com)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/09/20
|
||||
*
|
||||
* Clojure language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------
|
||||
* Author: Daniel Nelson (danieln@eng.utah.edu)
|
||||
* Copyright: (c) 2009 Daniel Nelson
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/04/06
|
||||
*
|
||||
* CMake language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: BenBE (BenBE@omorphia.org)
|
||||
* Copyright: (c) 2007-2008 BenBE (http://www.omorphia.de/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2007/07/02
|
||||
*
|
||||
* COBOL language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: Trevor Burnham (trevorburnham@gmail.com)
|
||||
* Copyright: (c) 2010 Trevor Burnham (http://iterative.ly)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/06/08
|
||||
*
|
||||
* CoffeeScript language file for GeSHi.
|
||||
|
@ -4,10 +4,10 @@
|
||||
* -------
|
||||
* Author: Iulian M
|
||||
* Copyright: (c) 2006 Iulian M
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/09/27
|
||||
*
|
||||
* C++ (with QT extensions) language file for GeSHi.
|
||||
* C++ (with Qt extensions) language file for GeSHi.
|
||||
*
|
||||
* CHANGES
|
||||
* -------
|
||||
@ -41,7 +41,7 @@
|
||||
************************************************************************************/
|
||||
|
||||
$language_data = array (
|
||||
'LANG_NAME' => 'C++ (QT)',
|
||||
'LANG_NAME' => 'C++ (Qt)',
|
||||
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
|
||||
'COMMENT_MULTI' => array('/*' => '*/'),
|
||||
'COMMENT_REGEXP' => array(
|
||||
|
@ -7,7 +7,7 @@
|
||||
* - 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/09/27
|
||||
*
|
||||
* C++ language file for GeSHi.
|
||||
|
@ -5,13 +5,15 @@
|
||||
* 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.10
|
||||
* 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)
|
||||
@ -60,14 +62,15 @@ $language_data = array (
|
||||
'ESCAPE_CHAR' => '\\',
|
||||
'KEYWORDS' => array(
|
||||
1 => array(
|
||||
'as', 'auto', 'base', 'break', 'case', 'catch', 'const', 'continue',
|
||||
'abstract', 'add', 'as', 'base', 'break', 'by', 'case', 'catch', 'const', 'continue',
|
||||
'default', 'do', 'else', 'event', 'explicit', 'extern', 'false',
|
||||
'finally', 'fixed', 'for', 'foreach', 'from', 'goto', 'if',
|
||||
'implicit', 'in', 'internal', 'lock', 'namespace', 'null',
|
||||
'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', 'ref', 'return', 'sealed',
|
||||
'select', 'stackalloc', 'static', 'switch', 'this', 'throw', 'true',
|
||||
'try', 'unsafe', 'using', 'virtual', 'where', 'while', 'yield'
|
||||
'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',
|
||||
@ -78,7 +81,7 @@ $language_data = array (
|
||||
),
|
||||
4 => array(
|
||||
'bool', 'byte', 'char', 'class', 'decimal', 'delegate', 'double',
|
||||
'enum', 'float', 'int', 'interface', 'long', 'object', 'sbyte',
|
||||
'dynamic', 'enum', 'float', 'int', 'interface', 'long', 'object', 'sbyte',
|
||||
'short', 'string', 'struct', 'uint', 'ulong', 'ushort', 'void'
|
||||
),
|
||||
5 => array(
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------
|
||||
* Author: Nigel McNie (nigel@geshi.org)
|
||||
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/06/18
|
||||
*
|
||||
* CSS language file for GeSHi.
|
||||
@ -72,6 +72,8 @@ $language_data = 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',
|
||||
@ -215,7 +217,8 @@ $language_data = array (
|
||||
'TAB_WIDTH' => 4,
|
||||
'PARSER_CONTROL' => array(
|
||||
'KEYWORDS' => array(
|
||||
'DISALLOWED_AFTER' => '(?![a-zA-Z0-9_\|%\\-&\.])'
|
||||
'DISALLOWED_AFTER' => '(?![\-a-zA-Z0-9_\|%\\-&\.])',
|
||||
'DISALLOWED_BEFORE' => '(?<![\-a-zA-Z0-9_\|%\\~&\.])'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: Benny Baumann (benbe@geshi.org)
|
||||
* Copyright: (c) 2009 Benny Baumann (http://qbnz.com/highlighter/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/12/21
|
||||
*
|
||||
* Cuesheet language file for GeSHi.
|
||||
|
@ -3,14 +3,18 @@
|
||||
* 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.10
|
||||
* 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)
|
||||
@ -45,7 +49,7 @@
|
||||
$language_data = array (
|
||||
'LANG_NAME' => 'D',
|
||||
'COMMENT_SINGLE' => array(2 => '///', 1 => '//'),
|
||||
'COMMENT_MULTI' => array('/*' => '*/'),
|
||||
'COMMENT_MULTI' => array('/*' => '*/', '/+' => '+/'),
|
||||
'COMMENT_REGEXP' => array(
|
||||
// doxygen comments
|
||||
3 => '#/\*\*(?![\*\/]).*\*/#sU',
|
||||
@ -126,63 +130,39 @@ $language_data = array (
|
||||
1 => array(
|
||||
'break', 'case', 'continue', 'do', 'else',
|
||||
'for', 'foreach', 'goto', 'if', 'return',
|
||||
'switch', 'while'
|
||||
'switch', 'while', 'foreach_reverse'
|
||||
),
|
||||
2 => array(
|
||||
'alias', 'asm', 'assert', 'body', 'cast',
|
||||
'catch', 'default', 'delegate', 'delete',
|
||||
'extern', 'false', 'finally', 'function',
|
||||
'import', 'in', 'inout', 'interface',
|
||||
'invariant', 'is', 'mixin', 'module', 'new',
|
||||
'import', 'in', 'inout',
|
||||
'invariant', 'is', 'lazy', 'mixin', 'module', 'new',
|
||||
'null', 'out', 'pragma', 'ref', 'super', 'this',
|
||||
'throw', 'true', 'try', 'typedef', 'typeid',
|
||||
'typeof', 'union', 'with'
|
||||
'throw', 'true', 'try', 'typeid',
|
||||
'typeof', 'union', 'with', 'scope'
|
||||
),
|
||||
3 => array(
|
||||
'ArrayBoundsError', 'AssertError',
|
||||
'ClassInfo', 'Error', 'Exception',
|
||||
'Interface', 'ModuleInfo', 'Object',
|
||||
'OutOfMemoryException', 'SwitchError',
|
||||
'TypeInfo', '_d_arrayappend',
|
||||
'_d_arrayappendb', '_d_arrayappendc',
|
||||
'_d_arrayappendcb', '_d_arraycast',
|
||||
'_d_arraycast_frombit', '_d_arraycat',
|
||||
'_d_arraycatb', '_d_arraycatn',
|
||||
'_d_arraycopy', '_d_arraycopybit',
|
||||
'_d_arraysetbit', '_d_arraysetbit2',
|
||||
'_d_arraysetlength', '_d_arraysetlengthb',
|
||||
'_d_callfinalizer',
|
||||
'_d_create_exception_object',
|
||||
'_d_criticalenter', '_d_criticalexit',
|
||||
'_d_delarray', '_d_delclass',
|
||||
'_d_delinterface', '_d_delmemory',
|
||||
'_d_dynamic_cast', '_d_exception',
|
||||
'_d_exception_filter', '_d_framehandler',
|
||||
'_d_interface_cast', '_d_interface_vtbl',
|
||||
'_d_invariant', '_d_isbaseof',
|
||||
'_d_isbaseof2', '_d_local_unwind',
|
||||
'_d_monitorenter', '_d_monitorexit',
|
||||
'_d_monitorrelease', '_d_monitor_epilog',
|
||||
'_d_monitor_handler', '_d_monitor_prolog',
|
||||
'_d_new', '_d_newarrayi', '_d_newbitarray',
|
||||
'_d_newclass', '_d_obj_cmp', '_d_obj_eq',
|
||||
'_d_OutOfMemory', '_d_switch_dstring',
|
||||
'_d_switch_string', '_d_switch_ustring',
|
||||
'_d_throw',
|
||||
'Interface', 'Object', 'IMonitor',
|
||||
'OffsetTypeInfo', 'Throwable',
|
||||
'TypeInfo_Class', 'TypeInfo', '__traits',
|
||||
'__EOF__', '__FILE__', '__LINE__',
|
||||
),
|
||||
4 => array(
|
||||
'abstract', 'align', 'auto', 'bit', 'bool',
|
||||
'byte', 'cdouble', 'cent', 'cfloat', 'char',
|
||||
'class', 'const', 'creal', 'dchar', 'debug',
|
||||
'byte', 'cdouble', 'cfloat', 'char',
|
||||
'class', 'const', 'creal', 'dchar', 'dstring', 'debug',
|
||||
'deprecated', 'double', 'enum', 'export',
|
||||
'final', 'float', 'idouble', 'ifloat', 'int',
|
||||
'ireal', 'long', 'override', 'package',
|
||||
'private', 'protected', 'ptrdiff_t',
|
||||
'public', 'real', 'short', 'size_t',
|
||||
'static', 'struct', 'synchronized',
|
||||
'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'
|
||||
'void', 'volatile', 'wchar', 'wstring',
|
||||
'__gshared', '@disable', '@property', 'pure', 'safe'
|
||||
)
|
||||
),
|
||||
'SYMBOLS' => array(
|
||||
|
192
htdocs/application/libraries/geshi/geshi/dcl.php
Normal file
192
htdocs/application/libraries/geshi/geshi/dcl.php
Normal 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
htdocs/application/libraries/geshi/geshi/dcpu16.php
Normal file
131
htdocs/application/libraries/geshi/geshi/dcpu16.php
Normal 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_\|%\\-])"
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
@ -4,7 +4,7 @@
|
||||
* ---------------------------------
|
||||
* Author: Stelio Passaris (GeSHi@stelio.net)
|
||||
* Copyright: (c) 2009 Stelio Passaris (http://stelio.net/stiki/GeSHi)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/01/20
|
||||
*
|
||||
* DCS language file for GeSHi.
|
||||
|
@ -4,13 +4,17 @@
|
||||
* ----------
|
||||
* 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.10
|
||||
* 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)
|
||||
@ -51,27 +55,28 @@ $language_data = array (
|
||||
'COMMENT_MULTI' => array('(*' => '*)', '{' => '}'),
|
||||
//Compiler directives
|
||||
'COMMENT_REGEXP' => array(2 => '/\\{\\$.*?}|\\(\\*\\$.*?\\*\\)/U'),
|
||||
'CASE_KEYWORDS' => 0,
|
||||
'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', 'Destructor',
|
||||
'Class', 'Const', 'Constructor', 'Contains', 'Default', 'delayed', 'Destructor',
|
||||
'DispInterface', 'Div', 'Do', 'DownTo', 'Else', 'End', 'Except',
|
||||
'Export', 'Exports', 'External', 'File', 'Finalization', 'Finally',
|
||||
'For', 'Function', 'Goto', 'If', 'Implementation', 'In', 'Inherited',
|
||||
'Initialization', 'Inline', 'Interface', 'Is', 'Label', 'Library',
|
||||
'Mod', 'Not', 'Object', 'Of', 'On', 'Or', 'Overload', 'Override',
|
||||
'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', 'Raise', 'Record', 'Register',
|
||||
'Repeat', 'Requires', 'Resourcestring', 'Set', 'Shl', 'Shr', 'Then',
|
||||
'ThreadVar', 'To', 'Try', 'Type', 'Unit', 'Until', 'Uses', 'Var',
|
||||
'Virtual', 'While', 'With', 'Xor', 'assembler', 'far',
|
||||
'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(
|
||||
'nil', 'false', 'self', 'true', 'var', 'type', 'const'
|
||||
'false', 'self', 'true',
|
||||
),
|
||||
3 => array(
|
||||
'Abs', 'AcquireExceptionObject', 'Addr', 'AnsiToUtf8', 'Append', 'ArcTan',
|
||||
@ -250,7 +255,7 @@ $language_data = array (
|
||||
1 => 'color: #006600;'
|
||||
),
|
||||
'REGEXPS' => array(
|
||||
0 => 'color: #9ac;',
|
||||
0 => 'color: #0000cc;',
|
||||
1 => 'color: #ff0000;'
|
||||
),
|
||||
'SYMBOLS' => array(
|
||||
@ -274,16 +279,23 @@ $language_data = array (
|
||||
),
|
||||
'REGEXPS' => array(
|
||||
//Hex numbers
|
||||
0 => '\$[0-9a-fA-F]+',
|
||||
0 => '(?<!\#)\$[0-9a-fA-F]+(?!\w)',
|
||||
//Characters
|
||||
1 => '\#(?:\$[0-9a-fA-F]{1,2}|\d{1,3})'
|
||||
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
|
||||
'TAB_WIDTH' => 2,
|
||||
'PARSER_CONTROL' => array(
|
||||
'KEYWORDS' => array(
|
||||
3 => array(
|
||||
'DISALLOWED_AFTER' => '(?=\s*[(;])'
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/12/29
|
||||
*
|
||||
* Diff-output language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ---------------------------------
|
||||
* Author: Gabriel Lorenzo (ermakina@gmail.com)
|
||||
* Copyright: (c) 2005 Gabriel Lorenzo (http://ermakina.gazpachito.net)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2005/06/19
|
||||
*
|
||||
* DIV language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------
|
||||
* Author: Alessandro Staltari (staltari@geocities.com)
|
||||
* Copyright: (c) 2005 Alessandro Staltari (http://www.geocities.com/SiliconValley/Vista/8155/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2005/07/05
|
||||
*
|
||||
* DOS language file for GeSHi.
|
||||
@ -171,7 +171,7 @@ $language_data = array (
|
||||
/* 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_SEARCH => '(SET\s+(?si:\\/A\s+|\\/P\s+)?)([^=\n]+)(\s*=)',
|
||||
GESHI_REPLACE => '\\2',
|
||||
GESHI_MODIFIERS => 'si',
|
||||
GESHI_BEFORE => '\\1',
|
||||
@ -180,7 +180,7 @@ $language_data = array (
|
||||
/* 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_SEARCH => '(!(?:!(?=[a-z0-9]))?)([\d*]|(?:~[adfnpstxz]*(?:$\w+:)?)?[a-z0-9](?!\w)|[^!>\n]*(?=!))((?<!%\d)%|)(?!!>)',
|
||||
GESHI_REPLACE => '\\2',
|
||||
GESHI_MODIFIERS => 'si',
|
||||
GESHI_BEFORE => '\\1',
|
||||
@ -189,7 +189,7 @@ $language_data = array (
|
||||
/* 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_SEARCH => '(%(?:%(?=[a-z0-9]))?)([\d*]|(?:~[adfnpstxz]*(?:$\w+:)?)?[a-z0-9](?!\w)|[^%\n]*(?=%))((?<!%\d)%|)',
|
||||
GESHI_REPLACE => '\\2',
|
||||
GESHI_MODIFIERS => 'si',
|
||||
GESHI_BEFORE => '\\1',
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ---------------------------------
|
||||
* Author: Adrien Friggeri (adrien@friggeri.net)
|
||||
* Copyright: (c) 2007 Adrien Friggeri (http://www.friggeri.net)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2007/05/30
|
||||
*
|
||||
* dot language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Kevin Reid (kpreid@switchb.org)
|
||||
* Copyright: (c) 2010 Kevin Reid (http://switchb.org/kpreid/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/04/16
|
||||
*
|
||||
* E language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/01/08
|
||||
*
|
||||
* ECMAScript language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: Zoran Simic (zsimic@axarosenberg.com)
|
||||
* Copyright: (c) 2005 Zoran Simic
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2005/06/30
|
||||
*
|
||||
* Eiffel language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ---------------
|
||||
* Author: Benny Baumann (BenBE@geshi.org)
|
||||
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2008/10/19
|
||||
*
|
||||
* Email (mbox \ eml \ RFC format) language file for GeSHi.
|
||||
@ -152,7 +152,19 @@ $language_data = array (
|
||||
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}(?=<)",
|
||||
"(?<==)\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 => "",
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Thorsten Muehlfelder (muehlfelder@enertex.de)
|
||||
* Copyright: (c) 2010 Enertex Bayern GmbH
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/08/26
|
||||
*
|
||||
* Enerscript language file for GeSHi.
|
||||
|
@ -7,7 +7,7 @@
|
||||
* - 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2008-09-27
|
||||
*
|
||||
* Erlang language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ---------------------------------
|
||||
* Author: Nicholas Koceja (nerketur@hotmail.com)
|
||||
* Copyright: (c) 2010 Nicholas Koceja
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 11/24/2010
|
||||
*
|
||||
* Euphoria language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------
|
||||
* Author: Juro Bystricky (juro@f1compiler.com)
|
||||
* Copyright: K2 Software Corp.
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/07/06
|
||||
*
|
||||
* Formula One language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ---------------------------------
|
||||
* Author: billykater (billykater+geshi@gmail.com)
|
||||
* Copyright: (c) 2010 billykater (http://falconpl.org/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/06/07
|
||||
*
|
||||
* Falcon language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Tan-Vinh Nguyen (tvnguyen@web.de)
|
||||
* Copyright: (c) 2009 Tan-Vinh Nguyen
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/03/23
|
||||
*
|
||||
* fo language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -----------
|
||||
* Author: Cedric Arrabie (cedric.arrabie@univ-pau.fr)
|
||||
* Copyright: (C) 2006 Cetric Arrabie
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2006/04/22
|
||||
*
|
||||
* Fortran language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------------
|
||||
* Author: Roberto Rossi
|
||||
* Copyright: (c) 2005 Roberto Rossi (http://rsoftware.altervista.org)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2005/08/19
|
||||
*
|
||||
* FreeBasic (http://www.freebasic.net/) language file for GeSHi.
|
||||
|
168
htdocs/application/libraries/geshi/geshi/freeswitch.php
Normal file
168
htdocs/application/libraries/geshi/geshi/freeswitch.php
Normal 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(
|
||||
)
|
||||
);
|
||||
|
||||
?>
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: julien ortin (jo_spam-divers@yahoo.fr)
|
||||
* Copyright: (c) 2009 julien ortin
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/09/20
|
||||
*
|
||||
* F# language file for GeSHi.
|
||||
@ -44,7 +44,7 @@ $language_data = array(
|
||||
'LANG_NAME' => 'F#',
|
||||
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
|
||||
'COMMENT_MULTI' => array('/*' => '*/'),
|
||||
'COMMENT_REGEXP' => array(3 => '/\(\*(?!\)).*?\*\)/'),
|
||||
'COMMENT_REGEXP' => array(3 => '/\(\*(?!\)).*?\*\)/s'),
|
||||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
||||
'QUOTEMARKS' => array("'", '"'),
|
||||
'HARDQUOTE' => array('@"', '"'),
|
||||
|
@ -5,7 +5,7 @@
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/08/20
|
||||
*
|
||||
* GAMBAS language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Milian Wolff (mail@milianw.de)
|
||||
* Copyright: (c) 2009 Milian Wolff
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/06/24
|
||||
*
|
||||
* GDB language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: Lars Gersmann (lars.gersmann@gmail.com)
|
||||
* Copyright: (c) 2007 Lars Gersmann, Nigel McNie (http://qbnz.com/highlighter/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2007/07/01
|
||||
*
|
||||
* Genero (FOURJ's Genero 4GL) language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: Nicolas Joseph (nicolas.joseph@valaide.org)
|
||||
* Copyright: (c) 2009 Nicolas Joseph
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/04/29
|
||||
*
|
||||
* Genie language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Milian Wolff (mail@milianw.de)
|
||||
* Copyright: (c) 2008 Milian Wolff
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2008/05/25
|
||||
*
|
||||
* GNU Gettext .po/.pot language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -----
|
||||
* Author: Benny Baumann (BenBE@omorphia.de)
|
||||
* Copyright: (c) 2008 Benny Baumann (BenBE@omorphia.de)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2008/03/20
|
||||
*
|
||||
* glSlang language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2005/06/21
|
||||
*
|
||||
* GML language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: Milian Wolff (mail@milianw.de)
|
||||
* Copyright: (c) 2008 Milian Wolff (http://milianw.de)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2008/07/07
|
||||
*
|
||||
* Gnuplot script language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Markus Jarderot (mizardx at gmail dot com)
|
||||
* Copyright: (c) 2010 Markus Jarderot
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/05/20
|
||||
*
|
||||
* Go language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: Ivan F. Villanueva B. (geshi_groovy@artificialidea.com)
|
||||
* Copyright: (c) 2006 Ivan F. Villanueva B.(http://www.artificialidea.com)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2006/04/29
|
||||
*
|
||||
* Groovy language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/01/30
|
||||
*
|
||||
* GwBasic language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2005/08/27
|
||||
*
|
||||
* Haskell language file for GeSHi.
|
||||
@ -46,8 +46,8 @@ $language_data = array (
|
||||
3 => "/{-(?:(?R)|.)-}/s", //Nested Comments
|
||||
),
|
||||
'CASE_KEYWORDS' => 0,
|
||||
'QUOTEMARKS' => array('"'),
|
||||
'ESCAPE_CHAR' => "\\",
|
||||
'QUOTEMARKS' => array('"',"'"),
|
||||
'ESCAPE_CHAR' => '\\',
|
||||
'KEYWORDS' => array(
|
||||
/* main haskell keywords */
|
||||
1 => array(
|
||||
@ -95,7 +95,7 @@ $language_data = array (
|
||||
'product', 'concat', 'concatMap', 'maximum',
|
||||
'minimum', 'scanl', 'scanl1', 'scanr', 'scanr1',
|
||||
'iterate', 'repeat', 'cycle', 'take', 'drop',
|
||||
'splitAt', 'teakWhile', 'dropWhile', 'span',
|
||||
'splitAt', 'takeWhile', 'dropWhile', 'span',
|
||||
'break', 'elem', 'notElem', 'lookup', 'zip',
|
||||
'zip3', 'zipWith', 'zipWith3', 'unzip', 'unzip3',
|
||||
'lines', 'words', 'unlines',
|
||||
|
161
htdocs/application/libraries/geshi/geshi/haxe.php
Normal file
161
htdocs/application/libraries/geshi/geshi/haxe.php
Normal 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(
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Georg Petrich (spt@hicest.com)
|
||||
* Copyright: (c) 2010 Georg Petrich (http://www.HicEst.com)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/03/15
|
||||
*
|
||||
* HicEst language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: Benny Baumann (BenBE@geshi.org)
|
||||
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/10/31
|
||||
*
|
||||
* HQ9+ language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ---------------
|
||||
* Author: Nigel McNie (nigel@geshi.org)
|
||||
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/07/10
|
||||
*
|
||||
* HTML 4.01 strict language file for GeSHi.
|
||||
@ -58,7 +58,7 @@ $language_data = array (
|
||||
'ESCAPE_CHAR' => '',
|
||||
'KEYWORDS' => array(
|
||||
2 => array(
|
||||
'a', 'abbr', 'acronym', 'address', 'applet',
|
||||
'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',
|
||||
|
@ -4,10 +4,10 @@
|
||||
* ---------------
|
||||
* Author: Nigel McNie (nigel@geshi.org)
|
||||
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2004/07/10
|
||||
*
|
||||
* HTML 4.01 strict language file for GeSHi.
|
||||
* HTML 5 language file for GeSHi.
|
||||
*
|
||||
* CHANGES
|
||||
* -------
|
||||
@ -50,7 +50,7 @@
|
||||
************************************************************************************/
|
||||
|
||||
$language_data = array (
|
||||
'LANG_NAME' => 'HTML',
|
||||
'LANG_NAME' => 'HTML5',
|
||||
'COMMENT_SINGLE' => array(),
|
||||
'COMMENT_MULTI' => array(),
|
||||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
||||
@ -58,7 +58,7 @@ $language_data = array (
|
||||
'ESCAPE_CHAR' => '',
|
||||
'KEYWORDS' => array(
|
||||
2 => array(
|
||||
'a', 'abbr', 'address', 'article', 'aside', 'audio'.
|
||||
'a', 'abbr', 'address', 'article', 'area', 'aside', 'audio',
|
||||
|
||||
'base', 'bdo', 'blockquote', 'body', 'br', 'button', 'b',
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: Matt Oates (mattoates@gmail.com)
|
||||
* Copyright: (c) 2010 Matt Oates (http://mattoates.co.uk)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2010/04/24
|
||||
*
|
||||
* Icon language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* -------
|
||||
* Author: Cedric Bosdonnat (cedricbosdo@openoffice.org)
|
||||
* Copyright: (c) 2006 Cedric Bosdonnat
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2006/08/20
|
||||
*
|
||||
* Unoidl language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* --------
|
||||
* Author: deguix (cevo_deguix@yahoo.com.br)
|
||||
* Copyright: (c) 2005 deguix
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2005/03/27
|
||||
*
|
||||
* INI language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* 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.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2005/07/29
|
||||
*
|
||||
* Inno Script language inkl. Delphi (Object Pascal) language file for GeSHi.
|
||||
|
@ -4,7 +4,7 @@
|
||||
* ----------
|
||||
* Author: Benny Baumann (BenBE@geshi.org)
|
||||
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
|
||||
* Release Version: 1.0.8.10
|
||||
* Release Version: 1.0.8.11
|
||||
* Date Started: 2009/10/31
|
||||
*
|
||||
* INTERCAL language file for GeSHi.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user