Documentation is available at lua.php
1 <?php
2 /***********************************************************************************
3 * lua.php
4 * -------
5 * Author: Roberto Rossi (rsoftware@altervista.org)
6 * Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/blog)
7 * Release Version: 1.0.7.1
8 * CVS Revision Version: $Revision: 1.1 $
9 * Date Started: 2004/07/10
10 * Last Modified: $Date: 2005/06/02 04:57:18 $
11 *
12 * LUA language file for GeSHi.
13 *
14 * CHANGES
15 * -------
16 * 2004/11/27 (1.0.1)
17 * - Added support for multiple object splitters
18 * 2004/10/27 (1.0.0)
19 * - First Release
20 *
21 * TODO (updated 2004/11/27)
22 * -------------------------
23 *
24 ************************************************************************************
25 *
26 * This file is part of GeSHi.
27 *
28 * GeSHi is free software; you can redistribute it and/or modify
29 * it under the terms of the GNU General Public License as published by
30 * the Free Software Foundation; either version 2 of the License, or
31 * (at your option) any later version.
32 *
33 * GeSHi is distributed in the hope that it will be useful,
34 * but WITHOUT ANY WARRANTY; without even the implied warranty of
35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 * GNU General Public License for more details.
37 *
38 * You should have received a copy of the GNU General Public License
39 * along with GeSHi; if not, write to the Free Software
40 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
41 *
42 ************************************************************************************/
42
43
44 $language_data = array (
45 'LANG_NAME' => 'LUA',
46 'COMMENT_SINGLE' => array(1 => "--"),
47 'COMMENT_MULTI' => array('--[[' => ']]'),
48 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
49 'QUOTEMARKS' => array('"'),
50 'ESCAPE_CHAR' => '\\',
51 'KEYWORDS' => array(
52 1 => array(
53 'and','break','do','else','elseif','end','false','for','function','if',
54 'in','local','nil','not','or','repeat','return','then','true','until','while',
55 '_VERSION','assert','collectgarbage','dofile','error','gcinfo','loadfile','loadstring',
56 'print','tonumber','tostring','type','unpack',
57 '_ALERT','_ERRORMESSAGE','_INPUT','_PROMPT','_OUTPUT',
58 '_STDERR','_STDIN','_STDOUT','call','dostring','foreach','foreachi','getn','globals','newtype',
59 'rawget','rawset','require','sort','tinsert','tremove',
60 'abs','acos','asin','atan','atan2','ceil','cos','deg','exp',
61 'floor','format','frexp','gsub','ldexp','log','log10','max','min','mod','rad','random','randomseed',
62 'sin','sqrt','strbyte','strchar','strfind','strlen','strlower','strrep','strsub','strupper','tan',
63 'openfile','closefile','readfrom','writeto','appendto',
64 'remove','rename','flush','seek','tmpfile','tmpname','read','write',
65 'clock','date','difftime','execute','exit','getenv','setlocale','time',
66 '_G','getfenv','getmetatable','ipairs','loadlib','next','pairs','pcall',
67 'rawegal','rawget','rawset','require','setfenv','setmetatable','xpcall',
68 'string','table','math','coroutine','io','os','debug',
69 'string.byte','string.char','string.dump','string.find','string.len',
70 'string.lower','string.rep','string.sub','string.upper','string.format','string.gfind','string.gsub',
71 'table.concat','table.foreach','table.foreachi','table.getn','table.sort','table.insert','table.remove','table.setn',
72 'math.abs','math.acos','math.asin','math.atan','math.atan2','math.ceil','math.cos','math.deg','math.exp',
73 'math.floor','math.frexp','math.ldexp','math.log','math.log10','math.max','math.min','math.mod',
74 'math.pi','math.rad','math.random','math.randomseed','math.sin','math.sqrt','math.tan',
75 'coroutine.create','coroutine.resume','coroutine.status',
76 'coroutine.wrap','coroutine.yield',
77 'io.close','io.flush','io.input','io.lines','io.open','io.output','io.read','io.tmpfile','io.type','io.write',
78 'io.stdin','io.stdout','io.stderr',
79 'os.clock','os.date','os.difftime','os.execute','os.exit','os.getenv','os.remove','os.rename',
80 'os.setlocale','os.time','os.tmpname'
81 )
82 ),
83 'SYMBOLS' => array(
84 '(', ')', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>', '=', ';'
85 ),
86 'CASE_SENSITIVE' => array(
87 GESHI_COMMENTS => true,
88 1 => true
89 ),
90 'STYLES' => array(
91 'KEYWORDS' => array(
92 1 => 'color: #b1b100;'
93 ),
94 'COMMENTS' => array(
95 1 => 'color: #808080; font-style: italic;',
96 'MULTI' => 'color: #808080; font-style: italic;'
97 ),
98 'ESCAPE_CHAR' => array(
99 0 => 'color: #000099; font-weight: bold;'
100 ),
101 'BRACKETS' => array(
102 0 => 'color: #66cc66;'
103 ),
104 'STRINGS' => array(
105 0 => 'color: #ff0000;'
106 ),
107 'NUMBERS' => array(
108 0 => 'color: #cc66cc;'
109 ),
110 'METHODS' => array(
111 ),
112 'SYMBOLS' => array(
113 0 => 'color: #66cc66;'
114 ),
115 'REGEXPS' => array(
116 ),
117 'SCRIPT' => array(
118 )
119 ),
120 'OOLANG' => false,
121 'OBJECT_SPLITTERS' => array(
122 ),
123 'REGEXPS' => array(
124 ),
125 'STRICT_MODE_APPLIES' => GESHI_NEVER,
126 'SCRIPT_DELIMITERS' => array(
127 ),
128 'HIGHLIGHT_STRICT_BLOCK' => array(
129 )
130 );
131
132 ?>
Documentation generated on Tue, 26 Jul 2005 17:10:31 +1200 by phpDocumentor 1.2.3