lua.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * lua.php
00004  * -------
00005  * Author: Roberto Rossi (rsoftware@altervista.org)
00006  * Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/highlighter)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2004/07/10
00009  *
00010  * LUA language file for GeSHi.
00011  *
00012  * CHANGES
00013  * -------
00014  * 2005/08/26 (1.0.2)
00015  *  -  Added support for objects and methods
00016  *  -  Removed unusable keywords
00017  * 2004/11/27 (1.0.1)
00018  *  -  Added support for multiple object splitters
00019  * 2004/10/27 (1.0.0)
00020  *  -  First Release
00021  *
00022  * TODO (updated 2004/11/27)
00023  * -------------------------
00024  *
00025  *************************************************************************************
00026  *
00027  *     This file is part of GeSHi.
00028  *
00029  *   GeSHi is free software; you can redistribute it and/or modify
00030  *   it under the terms of the GNU General Public License as published by
00031  *   the Free Software Foundation; either version 2 of the License, or
00032  *   (at your option) any later version.
00033  *
00034  *   GeSHi is distributed in the hope that it will be useful,
00035  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00036  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00037  *   GNU General Public License for more details.
00038  *
00039  *   You should have received a copy of the GNU General Public License
00040  *   along with GeSHi; if not, write to the Free Software
00041  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00042  *
00043  ************************************************************************************/
00044 
00045 $language_data = array (
00046      'LANG_NAME' => 'Lua',
00047      'COMMENT_SINGLE' => array(1 => "--"),
00048      'COMMENT_MULTI' => array('--[[' => ']]'),
00049      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00050      'QUOTEMARKS' => array('"'),
00051      'ESCAPE_CHAR' => '\\',
00052      'KEYWORDS' => array(
00053           1 => array(
00054                'and','break','do','else','elseif','end','false','for','function','if',
00055                'in','local','nil','not','or','repeat','return','then','true','until','while',
00056                '_VERSION','assert','collectgarbage','dofile','error','gcinfo','loadfile','loadstring',
00057                'print','tonumber','tostring','type','unpack',
00058                '_ALERT','_ERRORMESSAGE','_INPUT','_PROMPT','_OUTPUT',
00059                '_STDERR','_STDIN','_STDOUT','call','dostring','foreach','foreachi','getn','globals','newtype',
00060                'rawget','rawset','require','sort','tinsert','tremove',
00061                'abs','acos','asin','atan','atan2','ceil','cos','deg','exp',
00062                'floor','format','frexp','gsub','ldexp','log','log10','max','min','mod','rad','random','randomseed',
00063                'sin','sqrt','strbyte','strchar','strfind','strlen','strlower','strrep','strsub','strupper','tan',
00064                'openfile','closefile','readfrom','writeto','appendto',
00065                'remove','rename','flush','seek','tmpfile','tmpname','read','write',
00066                'clock','date','difftime','execute','exit','getenv','setlocale','time',
00067                '_G','getfenv','getmetatable','ipairs','loadlib','next','pairs','pcall',
00068                'rawegal','rawget','rawset','require','setfenv','setmetatable','xpcall',
00069             'string.byte','string.char','string.dump','string.find','string.len',
00070             'string.lower','string.rep','string.sub','string.upper','string.format','string.gfind','string.gsub',
00071             'table.concat','table.foreach','table.foreachi','table.getn','table.sort','table.insert','table.remove','table.setn',
00072             'math.abs','math.acos','math.asin','math.atan','math.atan2','math.ceil','math.cos','math.deg','math.exp',
00073             'math.floor','math.frexp','math.ldexp','math.log','math.log10','math.max','math.min','math.mod',
00074             'math.pi','math.rad','math.random','math.randomseed','math.sin','math.sqrt','math.tan',
00075             'coroutine.create','coroutine.resume','coroutine.status',
00076             'coroutine.wrap','coroutine.yield',
00077             'io.close','io.flush','io.input','io.lines','io.open','io.output','io.read','io.tmpfile','io.type','io.write',
00078             'io.stdin','io.stdout','io.stderr',
00079             'os.clock','os.date','os.difftime','os.execute','os.exit','os.getenv','os.remove','os.rename',
00080             'os.setlocale','os.time','os.tmpname',
00081                'string','table','math','coroutine','io','os','debug'
00082                )
00083           ),
00084      'SYMBOLS' => array(
00085           '(', ')', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>', '=', ';'
00086           ),
00087      'CASE_SENSITIVE' => array(
00088           GESHI_COMMENTS => true,
00089           1 => true
00090           ),
00091      'STYLES' => array(
00092           'KEYWORDS' => array(
00093                1 => 'color: #b1b100;'
00094                ),
00095           'COMMENTS' => array(
00096                1 => 'color: #808080; font-style: italic;',
00097                'MULTI' => 'color: #808080; font-style: italic;'
00098                ),
00099           'ESCAPE_CHAR' => array(
00100                0 => 'color: #000099; font-weight: bold;'
00101                ),
00102           'BRACKETS' => array(
00103                0 => 'color: #66cc66;'
00104                ),
00105           'STRINGS' => array(
00106                0 => 'color: #ff0000;'
00107                ),
00108           'NUMBERS' => array(
00109                0 => 'color: #cc66cc;'
00110                ),
00111           'METHODS' => array(
00112       0 => 'color: #b1b100;'
00113                ),
00114           'SYMBOLS' => array(
00115                0 => 'color: #66cc66;'
00116                ),
00117           'REGEXPS' => array(
00118                ),
00119           'SCRIPT' => array(
00120                )
00121           ),
00122      'OOLANG' => false,
00123      'OBJECT_SPLITTERS' => array(
00124           ),
00125      'REGEXPS' => array(
00126           ),
00127      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00128      'SCRIPT_DELIMITERS' => array(
00129           ),
00130      'HIGHLIGHT_STRICT_BLOCK' => array(
00131           )
00132 );
00133 
00134 ?>

Erzeugt am Thu May 14 00:55:48 2009 für OpenRat von  doxygen 1.5.8