Source for file lua.php

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

Documentation generated on Thu, 22 Sep 2005 13:48:02 +1200 by phpDocumentor 1.2.3