From ce2b69675075444c9e40b72bcdd42ab7edbbe633 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 28 Jan 2011 22:51:06 +0100 Subject: update to CI 2.0 Signed-off-by: Florian Pritz --- application/libraries/geshi/visualprolog.php | 129 +++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 application/libraries/geshi/visualprolog.php (limited to 'application/libraries/geshi/visualprolog.php') diff --git a/application/libraries/geshi/visualprolog.php b/application/libraries/geshi/visualprolog.php new file mode 100644 index 000000000..5c9bbd4d0 --- /dev/null +++ b/application/libraries/geshi/visualprolog.php @@ -0,0 +1,129 @@ + 'Visual Prolog', + 'COMMENT_SINGLE' => array(1 => '%'), + 'COMMENT_MULTI' => array('/*' => '*/'), + 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, + 'QUOTEMARKS' => array("'", '"'), + 'HARDQUOTE' => array('@"', '"'), + 'HARDESCAPE' => array('""'), + 'ESCAPE_CHAR' => '\\', + 'KEYWORDS' => array( + 1 => array( + 'clauses','constants','constructors','delegate','domains','facts', + 'goal','guards','inherits','monitor','namespace','open', + 'predicates','properties','resolve','supports' + ), + 2 => array( + 'align','and','anyflow','as','bitsize','catch','determ','digits', + 'div','do','else','elseif','erroneous','externally','failure', + 'finally','from','language','mod','multi','nondeterm','or', + 'procedure','quot','rem','single','then','to' + ), + 3 => array( + '#bininclude','#else','#elseif','#endif','#error','#export', + '#externally','#if','#import','#include','#message','#options', + '#orrequires','#requires','#then','#warning' + ), + ), + 'SYMBOLS' => array( + '+', '-', '*', '?', '=', '/', '>', '<', '^', '!', ':', '(', ')', '{', '}', '[', ']' + ), + 'CASE_SENSITIVE' => array( + GESHI_COMMENTS => true, + 1 => true, + 2 => true, + 3 => true + ), + 'STYLES' => array( + 'KEYWORDS' => array( + 1 => 'color: #808000;', + 2 => 'color: #333399;', + 3 => 'color: #800080;', + ), + 'COMMENTS' => array( + 1 => 'color: #AA77BD', + 'MULTI' => 'color: #AA77BD' + ), + 'ESCAPE_CHAR' => array( + 0 => 'color: #008080;' + ), + 'BRACKETS' => array( + 0 => 'color: #000000;' + ), + 'STRINGS' => array( + 0 => 'color: #00B7B7;' + ), + 'NUMBERS' => array( + 0 => 'color: #0000FF;' + ), + 'METHODS' => array( + ), + 'SYMBOLS' => array( + 0 => 'color: #000000;' + ), + 'SCRIPT' => array( + ), + 'REGEXPS' => array( + 0 => 'color: #008000;', + 1 => 'color: #808000;', + 2 => 'color: #333399;', + ) + ), + 'URLS' => array( + 1 => '', + 2 => '', + 3 => '' + ), + 'OOLANG' => true, + 'OBJECT_SPLITTERS' => array( + 1 => ':', + 2 => '::' + ), + 'REGEXPS' => array( + 0 => "(?)[A-Z_]\w*(?!\w)", + 1 => "\\b(end\\s+)?(implement|class|interface)\\b", + 2 => "\\b(end\\s+)?(foreach|if|try)\\b", + ), + 'STRICT_MODE_APPLIES' => GESHI_NEVER, + 'SCRIPT_DELIMITERS' => array( + ), + 'HIGHLIGHT_STRICT_BLOCK' => array( + ), + 'TAB_WIDTH' => 4 +); + +?> -- cgit v1.2.3-24-g4f1b