Difference between revisions of "R.php"

From Organic Design wiki
(R.php for geSHi)
 
(newlines fucked up)
Line 24: Line 24:
 
  *    This file is part of GeSHi.
 
  *    This file is part of GeSHi.
 
  *
 
  *
  *  GeSHi is free software; you can redistribute it and/or modify^M
+
  *  GeSHi is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by^M
+
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation; either version 2 of the License, or^M
+
  *  the Free Software Foundation; either version 2 of the License, or
  *  (at your option) any later version.^M
+
  *  (at your option) any later version.
  *^M
+
  *
  *  GeSHi is distributed in the hope that it will be useful,^M
+
  *  GeSHi is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of^M
+
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the^M
+
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.^M
+
  *  GNU General Public License for more details.
  *^M
+
  *
  *  You should have received a copy of the GNU General Public License^M
+
  *  You should have received a copy of the GNU General Public License
  *  along with GeSHi; if not, write to the Free Software^M
+
  *  along with GeSHi; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA^M
+
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *^M
+
  *
  ************************************************************************************/^M
+
  ************************************************************************************/
^M
+
 
$language_data = array (^M
+
$language_data = array (
        'LANG_NAME' => 'R',^M
+
'LANG_NAME' => 'R',
      'COMMENT_SINGLE' => array(1 => '#'),^M
+
'COMMENT_SINGLE' => array(1 => '#'),
        'COMMENT_MULTI' => array(';|' => '|;'),^M
+
'COMMENT_MULTI' => array(';|' => '|;'),
        'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,^M
+
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
        'QUOTEMARKS' => array('"'),^M
+
'QUOTEMARKS' => array('"'),
        'ESCAPE_CHAR' => '\\',^M
+
'ESCAPE_CHAR' => '\\',
        'KEYWORDS' => array(^M
+
'KEYWORDS' => array(
                1 => array(^M
+
1 => array(
                  'abs', 'acos', 'and', 'angle', 'append', 'appply', 'approximate',^M
+
  'abs', 'acos', 'and', 'angle', 'append', 'appply', 'approximate',
                  'asin', 'assoc', 'assq', 'assv', 'atan',^M
+
  'asin', 'assoc', 'assq', 'assv', 'atan',
                  ^M
+
 
                  'begin', 'boolean?', 'bound-identifier=?', ^M
+
  'begin', 'boolean?', 'bound-identifier=?',  
                  ^M
+
 
                  'caar', 'caddr', 'cadr', 'call-with-current-continuation', ^M
+
  'caar', 'caddr', 'cadr', 'call-with-current-continuation',  
                  'call-with-input-file', 'call-with-output-file', 'call/cc', 'car',^M
+
  'call-with-input-file', 'call-with-output-file', 'call/cc', 'car',
                  'case', 'catch', 'cdddar', 'cddddr', 'cdr', 'ceiling', 'char->integer',^M
+
  'case', 'catch', 'cdddar', 'cddddr', 'cdr', 'ceiling', 'char->integer',
                  'char-alphabetic?', 'char-ci<=?', 'char-ci<?', 'char-ci?', 'char-ci>=?',^M
+
  'char-alphabetic?', 'char-ci<=?', 'char-ci<?', 'char-ci?', 'char-ci>=?',
                  'char-ci>?', 'char-ci=?', 'char-downcase', 'char-lower-case?', ^M
+
  'char-ci>?', 'char-ci=?', 'char-downcase', 'char-lower-case?',  
                  'char-numeric', 'char-ready', 'char-ready?', 'char-upcase', ^M
+
  'char-numeric', 'char-ready', 'char-ready?', 'char-upcase',  
                  'char-upper-case?', 'char-whitespace?', 'char<=?', 'char<?', 'char=?',^M
+
  'char-upper-case?', 'char-whitespace?', 'char<=?', 'char<?', 'char=?',
                  'char>=?', 'char>?', 'char?', 'close-input-port', 'close-output-port',^M
+
  'char>=?', 'char>?', 'char?', 'close-input-port', 'close-output-port',
                  'complex?', 'cond', 'cons', 'construct-identifier', 'cos', ^M
+
  'complex?', 'cond', 'cons', 'construct-identifier', 'cos',  
                  'current-input-port', 'current-output-port',^M
+
  'current-input-port', 'current-output-port',
                  ^M
+
 
                  'd', 'define', 'define-syntax', 'delay', 'denominator', 'display', 'do',^M
+
  'd', 'define', 'define-syntax', 'delay', 'denominator', 'display', 'do',
                  ^M
+
 
                  'e', 'eof-object?', 'eq?', 'equal?', 'eqv?', 'even?', 'exact->inexact',^M
+
  'e', 'eof-object?', 'eq?', 'equal?', 'eqv?', 'even?', 'exact->inexact',
                  'exact?', 'exp', 'expt', 'else',^M
+
  'exact?', 'exp', 'expt', 'else',
                  ^M
+
 
                  'f', 'floor', 'for-each', 'force', 'free-identifer=?', ^M
+
  'f', 'floor', 'for-each', 'force', 'free-identifer=?',  
                  ^M
+
 
                  'gcd', 'gen-counter', 'gen-loser', 'generate-identifier',^M
+
  'gcd', 'gen-counter', 'gen-loser', 'generate-identifier',
                  ^M
+
 
                  'identifier->symbol', 'identifier', 'if', 'imag-part', 'inexact->exact',^M
+
  'identifier->symbol', 'identifier', 'if', 'imag-part', 'inexact->exact',
                  'inexact?', 'input-port?', 'integer->char', 'integer?', 'integrate-system',^M
+
  'inexact?', 'input-port?', 'integer->char', 'integer?', 'integrate-system',
                  ^M
+
 
                  'l', 'lambda', 'last-pair', 'lcm', 'length', 'let', 'let*', 'letrec', ^M
+
  'l', 'lambda', 'last-pair', 'lcm', 'length', 'let', 'let*', 'letrec',  
                  'list', 'list->string', 'list->vector', 'list-ref', 'list-tail', 'list?',^M
+
  'list', 'list->string', 'list->vector', 'list-ref', 'list-tail', 'list?',
                  'load', 'log',^M
+
  'load', 'log',
                  ^M
+
 
                  'magnitude', 'make-polar', 'make-promise', 'make-rectangular',    ^M
+
  'magnitude', 'make-polar', 'make-promise', 'make-rectangular',     
                  'make-string', 'make-vector', 'map', 'map-streams', 'max', 'member', ^M
+
  'make-string', 'make-vector', 'map', 'map-streams', 'max', 'member',  
                  'memq', 'memv', 'min', 'modulo',^M
+
  'memq', 'memv', 'min', 'modulo',
                  ^M
+
 
                  'negative', 'newline', 'nil', 'not', 'null?', 'number->string', 'number?',^M
+
  'negative', 'newline', 'nil', 'not', 'null?', 'number->string', 'number?',
                  'numerator',^M
+
  'numerator',
                  ^M
+
 
                  'odd?', 'open-input-file', 'open-output-file', 'or', 'output-port', ^M
+
  'odd?', 'open-input-file', 'open-output-file', 'or', 'output-port',  
                  ^M
+
 
                  'pair?', 'peek-char', 'positive?', 'procedure?',^M
+
  'pair?', 'peek-char', 'positive?', 'procedure?',
                  ^M
+
 
                  'quasiquote', 'quote', 'quotient', ^M
+
  'quasiquote', 'quote', 'quotient',  
                  ^M
+
 
                  'rational', 'rationalize', 'read', 'read-char', 'real-part', 'real?',^M
+
  'rational', 'rationalize', 'read', 'read-char', 'real-part', 'real?',
                  'remainder', 'return', 'reverse',^M
+
  'remainder', 'return', 'reverse',
                  ^M
+
 
                  's', 'sequence', 'set!', 'set-char!', 'set-cdr!', 'sin', 'sqrt', 'string',^M
+
  's', 'sequence', 'set!', 'set-char!', 'set-cdr!', 'sin', 'sqrt', 'string',
                  'string->list', 'string->number', 'string->symbol', 'string-append', ^M
+
  'string->list', 'string->number', 'string->symbol', 'string-append',  
      'string-ci<=?', 'string-ci<?', 'string-ci=?', 'string-ci>=?', ^M
+
  'string-ci<=?', 'string-ci<?', 'string-ci=?', 'string-ci>=?',  
                  'string-ci>?', 'string-copy', 'string-fill!', 'string-length', ^M
+
  'string-ci>?', 'string-copy', 'string-fill!', 'string-length',  
                  'string-ref', 'string-set!', 'string<=?', 'string<?', 'string=?', ^M
+
  'string-ref', 'string-set!', 'string<=?', 'string<?', 'string=?',  
                  'string>=?', 'string>?', 'string?', 'substring', 'symbol->string', ^M
+
  'string>=?', 'string>?', 'string?', 'substring', 'symbol->string',  
                  'symbol?', 'syntax', 'syntax-rules',^M
+
  'symbol?', 'syntax', 'syntax-rules',
                  ^M
+
 
                  't', 'tan', 'template', 'transcript-off', 'transcript-on', 'truncate',^M
+
  't', 'tan', 'template', 'transcript-off', 'transcript-on', 'truncate',
                  ^M
+
 
                  'unquote', 'unquote-splicing', 'unwrap-syntax', ^M
+
  'unquote', 'unquote-splicing', 'unwrap-syntax',  
                  ^M
+
 
                  'vector', 'vector->list', 'vector-fill!', 'vector-length', 'vector-ref', ^M
+
  'vector', 'vector->list', 'vector-fill!', 'vector-length', 'vector-ref',  
                  'vector-set!', 'vector?', ^M
+
  'vector-set!', 'vector?',  
                  ^M
+
 
                  'with-input-from-file', 'with-output-to-file', 'write', 'write-char',^M
+
  'with-input-from-file', 'with-output-to-file', 'write', 'write-char',
                  ^M
+
 
                  'zero?'^M
+
  'zero?'
                  ^M
+
 
                        )^M
+
)
                ),^M
+
),
        'SYMBOLS' => array(^M
+
'SYMBOLS' => array(
                '(', ')', '{', '}', '[', ']', '!', '%', '^', '&', '/','+','-','*','=','<','>',';','|'^M
+
'(', ')', '{', '}', '[', ']', '!', '%', '^', '&', '/','+','-','*','=','<','>',';','|'
                ),^M
+
),
        'CASE_SENSITIVE' => array(^M
+
'CASE_SENSITIVE' => array(
                GESHI_COMMENTS => true,^M
+
GESHI_COMMENTS => true,
                1 => false^M
+
1 => false
                ),^M
+
),
        'STYLES' => array(^M
+
'STYLES' => array(
                'KEYWORDS' => array(^M
+
'KEYWORDS' => array(
                        1 => 'color: #b1b100;'^M
+
1 => 'color: #b1b100;'
                        ),^M
+
),
                'COMMENTS' => array(^M
+
'COMMENTS' => array(
                        1 => 'color: #808080; font-style: italic;',^M
+
1 => 'color: #808080; font-style: italic;',
                        'MULTI' => 'color: #808080; font-style: italic;'^M
+
'MULTI' => 'color: #808080; font-style: italic;'
                        ),^M
+
),
                'ESCAPE_CHAR' => array(^M
+
'ESCAPE_CHAR' => array(
                        0 => 'color: #000099; font-weight: bold;'^M
+
0 => 'color: #000099; font-weight: bold;'
                        ),^M
+
),
                'BRACKETS' => array(^M
+
'BRACKETS' => array(
                        0 => 'color: #66cc66;'^M
+
0 => 'color: #66cc66;'
                        ),^M
+
),
                'STRINGS' => array(^M
+
'STRINGS' => array(
                        0 => 'color: #ff0000;'^M
+
0 => 'color: #ff0000;'
                        ),^M
+
),
                'NUMBERS' => array(^M
+
'NUMBERS' => array(
                        0 => 'color: #cc66cc;'^M
+
0 => 'color: #cc66cc;'
                        ),^M
+
),
                'METHODS' => array(^M
+
'METHODS' => array(
                        0 => 'color: #202020;'^M
+
0 => 'color: #202020;'
                        ),^M
+
),
                'SYMBOLS' => array(^M
+
'SYMBOLS' => array(
                        0 => 'color: #66cc66;'^M
+
0 => 'color: #66cc66;'
                        ),^M
+
),
                'REGEXPS' => array(^M
+
'REGEXPS' => array(
                        ),^M
+
),
                'SCRIPT' => array(^M
+
'SCRIPT' => array(
                        )^M
+
)
                ),^M
+
),
'URLS' => array(^M
+
'URLS' => array(
                ),^M
+
),
        'OOLANG' => false,^M
+
'OOLANG' => false,
        'OBJECT_SPLITTERS' => array(^M
+
'OBJECT_SPLITTERS' => array(
                ),^M
+
),
        'REGEXPS' => array(^M
+
'REGEXPS' => array(
                ),^M
+
),
        'STRICT_MODE_APPLIES' => GESHI_NEVER,^M
+
'STRICT_MODE_APPLIES' => GESHI_NEVER,
        'SCRIPT_DELIMITERS' => array(^M
+
'SCRIPT_DELIMITERS' => array(
                ),^M
+
),
        'HIGHLIGHT_STRICT_BLOCK' => array(^M
+
'HIGHLIGHT_STRICT_BLOCK' => array(
                )^M
+
)
);^M
+
);
^M
+
 
?>^M
+
?>

Revision as of 20:11, 11 February 2006

<?php /*************************************************************************************

* r.php
* ----------
* Author: Jon Raphaelson (jonraphaelson@gmail.com)
* Copyright: (c) 2005 Jon Raphaelson, Nigel McNie (http://qbnz.com/highlighter)
* Release Version: 1.0.7.4
* CVS Revision Version: $Revision: 1.3 $
* Date Started: 2004/08/30
* Last Modified: $Date: 2005/10/22 07:52:59 $
*
* Scheme language file for GeSHi.
*
* CHANGES
* -------
* 2005/09/22 (1.0.0)
*  -  First Release
*
* TODO (updated 2005/09/22)
* -------------------------
*
*************************************************************************************
*
*     This file is part of GeSHi.
*
*   GeSHi is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
*   GeSHi is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.
*
*   You should have received a copy of the GNU General Public License
*   along with GeSHi; if not, write to the Free Software
*   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*
************************************************************************************/

$language_data = array ( 'LANG_NAME' => 'R', 'COMMENT_SINGLE' => array(1 => '#'), 'COMMENT_MULTI' => array(';|' => '|;'), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array('"'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS' => array( 1 => array( 'abs', 'acos', 'and', 'angle', 'append', 'appply', 'approximate', 'asin', 'assoc', 'assq', 'assv', 'atan',

'begin', 'boolean?', 'bound-identifier=?',

'caar', 'caddr', 'cadr', 'call-with-current-continuation', 'call-with-input-file', 'call-with-output-file', 'call/cc', 'car', 'case', 'catch', 'cdddar', 'cddddr', 'cdr', 'ceiling', 'char->integer', 'char-alphabetic?', 'char-ci<=?', 'char-ci<?', 'char-ci?', 'char-ci>=?', 'char-ci>?', 'char-ci=?', 'char-downcase', 'char-lower-case?', 'char-numeric', 'char-ready', 'char-ready?', 'char-upcase', 'char-upper-case?', 'char-whitespace?', 'char<=?', 'char<?', 'char=?', 'char>=?', 'char>?', 'char?', 'close-input-port', 'close-output-port', 'complex?', 'cond', 'cons', 'construct-identifier', 'cos', 'current-input-port', 'current-output-port',

'd', 'define', 'define-syntax', 'delay', 'denominator', 'display', 'do',

'e', 'eof-object?', 'eq?', 'equal?', 'eqv?', 'even?', 'exact->inexact', 'exact?', 'exp', 'expt', 'else',

'f', 'floor', 'for-each', 'force', 'free-identifer=?',

'gcd', 'gen-counter', 'gen-loser', 'generate-identifier',

'identifier->symbol', 'identifier', 'if', 'imag-part', 'inexact->exact', 'inexact?', 'input-port?', 'integer->char', 'integer?', 'integrate-system',

'l', 'lambda', 'last-pair', 'lcm', 'length', 'let', 'let*', 'letrec', 'list', 'list->string', 'list->vector', 'list-ref', 'list-tail', 'list?', 'load', 'log',

'magnitude', 'make-polar', 'make-promise', 'make-rectangular', 'make-string', 'make-vector', 'map', 'map-streams', 'max', 'member', 'memq', 'memv', 'min', 'modulo',

'negative', 'newline', 'nil', 'not', 'null?', 'number->string', 'number?', 'numerator',

'odd?', 'open-input-file', 'open-output-file', 'or', 'output-port',

'pair?', 'peek-char', 'positive?', 'procedure?',

'quasiquote', 'quote', 'quotient',

'rational', 'rationalize', 'read', 'read-char', 'real-part', 'real?', 'remainder', 'return', 'reverse',

's', 'sequence', 'set!', 'set-char!', 'set-cdr!', 'sin', 'sqrt', 'string', 'string->list', 'string->number', 'string->symbol', 'string-append', 'string-ci<=?', 'string-ci<?', 'string-ci=?', 'string-ci>=?', 'string-ci>?', 'string-copy', 'string-fill!', 'string-length', 'string-ref', 'string-set!', 'string<=?', 'string<?', 'string=?', 'string>=?', 'string>?', 'string?', 'substring', 'symbol->string', 'symbol?', 'syntax', 'syntax-rules',

't', 'tan', 'template', 'transcript-off', 'transcript-on', 'truncate',

'unquote', 'unquote-splicing', 'unwrap-syntax',

'vector', 'vector->list', 'vector-fill!', 'vector-length', 'vector-ref', 'vector-set!', 'vector?',

'with-input-from-file', 'with-output-to-file', 'write', 'write-char',

'zero?'

) ), 'SYMBOLS' => array( '(', ')', '{', '}', '[', ']', '!', '%', '^', '&', '/','+','-','*','=','<','>',';','|' ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => true, 1 => false ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #b1b100;' ), 'COMMENTS' => array( 1 => 'color: #808080; font-style: italic;', 'MULTI' => 'color: #808080; font-style: italic;' ), 'ESCAPE_CHAR' => array( 0 => 'color: #000099; font-weight: bold;' ), 'BRACKETS' => array( 0 => 'color: #66cc66;' ), 'STRINGS' => array( 0 => 'color: #ff0000;' ), 'NUMBERS' => array( 0 => 'color: #cc66cc;' ), 'METHODS' => array( 0 => 'color: #202020;' ), 'SYMBOLS' => array( 0 => 'color: #66cc66;' ), 'REGEXPS' => array( ), 'SCRIPT' => array( ) ), 'URLS' => array( ), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array( ), 'REGEXPS' => array( ), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array( ), 'HIGHLIGHT_STRICT_BLOCK' => array( ) );

?>