41 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
41 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
42 * |
42 * |
43 ************************************************************************************/ |
43 ************************************************************************************/ |
44 |
44 |
45 $language_data = array ( |
45 $language_data = array ( |
46 'LANG_NAME' => 'Lua', |
46 'LANG_NAME' => 'Lua', |
47 'COMMENT_SINGLE' => array(1 => "--"), |
47 'COMMENT_SINGLE' => array(1 => "--"), |
48 'COMMENT_MULTI' => array('--[[' => ']]'), |
48 'COMMENT_MULTI' => array('--[[' => ']]'), |
49 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
49 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
50 'QUOTEMARKS' => array('"'), |
50 'QUOTEMARKS' => array("'", '"'), |
51 'ESCAPE_CHAR' => '\\', |
51 'ESCAPE_CHAR' => '\\', |
52 'KEYWORDS' => array( |
52 'KEYWORDS' => array( |
53 1 => array( |
53 1 => array( |
54 'and','break','do','else','elseif','end','false','for','function','if', |
54 'and','break','do','else','elseif','end','false','for','function','if', |
55 'in','local','nil','not','or','repeat','return','then','true','until','while', |
55 'in','local','nil','not','or','repeat','return','then','true','until','while', |
56 '_VERSION','assert','collectgarbage','dofile','error','gcinfo','loadfile','loadstring', |
56 '_VERSION','assert','collectgarbage','dofile','error','gcinfo','loadfile','loadstring', |
57 'print','tonumber','tostring','type','unpack', |
57 'print','tonumber','tostring','type','unpack', |
58 '_ALERT','_ERRORMESSAGE','_INPUT','_PROMPT','_OUTPUT', |
58 '_ALERT','_ERRORMESSAGE','_INPUT','_PROMPT','_OUTPUT', |
59 '_STDERR','_STDIN','_STDOUT','call','dostring','foreach','foreachi','getn','globals','newtype', |
59 '_STDERR','_STDIN','_STDOUT','call','dostring','foreach','foreachi','getn','globals','newtype', |
60 'rawget','rawset','require','sort','tinsert','tremove', |
60 'rawget','rawset','require','sort','tinsert','tremove', |
61 'abs','acos','asin','atan','atan2','ceil','cos','deg','exp', |
61 'abs','acos','asin','atan','atan2','ceil','cos','deg','exp', |
62 'floor','format','frexp','gsub','ldexp','log','log10','max','min','mod','rad','random','randomseed', |
62 'floor','format','frexp','gsub','ldexp','log','log10','max','min','mod','rad','random','randomseed', |
63 'sin','sqrt','strbyte','strchar','strfind','strlen','strlower','strrep','strsub','strupper','tan', |
63 'sin','sqrt','strbyte','strchar','strfind','strlen','strlower','strrep','strsub','strupper','tan', |
64 'openfile','closefile','readfrom','writeto','appendto', |
64 'openfile','closefile','readfrom','writeto','appendto', |
65 'remove','rename','flush','seek','tmpfile','tmpname','read','write', |
65 'remove','rename','flush','seek','tmpfile','tmpname','read','write', |
66 'clock','date','difftime','execute','exit','getenv','setlocale','time', |
66 'clock','date','difftime','execute','exit','getenv','setlocale','time', |
67 '_G','getfenv','getmetatable','ipairs','loadlib','next','pairs','pcall', |
67 '_G','getfenv','getmetatable','ipairs','loadlib','next','pairs','pcall', |
68 'rawegal','rawget','rawset','require','setfenv','setmetatable','xpcall', |
68 'rawegal','setfenv','setmetatable','xpcall', |
69 'string.byte','string.char','string.dump','string.find','string.len', |
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', |
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', |
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', |
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', |
73 'math.floor','math.frexp','math.ldexp','math.log','math.log10','math.max','math.min','math.mod', |
76 'coroutine.wrap','coroutine.yield', |
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', |
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', |
78 'io.stdin','io.stdout','io.stderr', |
79 'os.clock','os.date','os.difftime','os.execute','os.exit','os.getenv','os.remove','os.rename', |
79 'os.clock','os.date','os.difftime','os.execute','os.exit','os.getenv','os.remove','os.rename', |
80 'os.setlocale','os.time','os.tmpname', |
80 'os.setlocale','os.time','os.tmpname', |
81 'string','table','math','coroutine','io','os','debug' |
81 'string','table','math','coroutine','io','os','debug' |
82 ) |
82 ) |
83 ), |
83 ), |
84 'SYMBOLS' => array( |
84 'SYMBOLS' => array( |
85 '(', ')', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>', '=', ';' |
85 '(', ')', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>', '=', ';' |
86 ), |
86 ), |
87 'CASE_SENSITIVE' => array( |
87 'CASE_SENSITIVE' => array( |
88 GESHI_COMMENTS => true, |
88 GESHI_COMMENTS => false, |
89 1 => true |
89 1 => true |
90 ), |
90 ), |
91 'STYLES' => array( |
91 'STYLES' => array( |
92 'KEYWORDS' => array( |
92 'KEYWORDS' => array( |
93 1 => 'color: #b1b100;' |
93 1 => 'color: #b1b100;' |
94 ), |
94 ), |
95 'COMMENTS' => array( |
95 'COMMENTS' => array( |
96 1 => 'color: #808080; font-style: italic;', |
96 1 => 'color: #808080; font-style: italic;', |
97 'MULTI' => 'color: #808080; font-style: italic;' |
97 'MULTI' => 'color: #808080; font-style: italic;' |
98 ), |
98 ), |
99 'ESCAPE_CHAR' => array( |
99 'ESCAPE_CHAR' => array( |
100 0 => 'color: #000099; font-weight: bold;' |
100 0 => 'color: #000099; font-weight: bold;' |
101 ), |
101 ), |
102 'BRACKETS' => array( |
102 'BRACKETS' => array( |
103 0 => 'color: #66cc66;' |
103 0 => 'color: #66cc66;' |
104 ), |
104 ), |
105 'STRINGS' => array( |
105 'STRINGS' => array( |
106 0 => 'color: #ff0000;' |
106 0 => 'color: #ff0000;' |
107 ), |
107 ), |
108 'NUMBERS' => array( |
108 'NUMBERS' => array( |
109 0 => 'color: #cc66cc;' |
109 0 => 'color: #cc66cc;' |
110 ), |
110 ), |
111 'METHODS' => array( |
111 'METHODS' => array( |
112 0 => 'color: #b1b100;' |
112 0 => 'color: #b1b100;' |
113 ), |
113 ), |
114 'SYMBOLS' => array( |
114 'SYMBOLS' => array( |
115 0 => 'color: #66cc66;' |
115 0 => 'color: #66cc66;' |
116 ), |
116 ), |
117 'REGEXPS' => array( |
117 'REGEXPS' => array( |
118 ), |
118 ), |
119 'SCRIPT' => array( |
119 'SCRIPT' => array( |
120 ) |
120 ) |
121 ), |
121 ), |
122 'OOLANG' => false, |
122 'URLS' => array( |
123 'OBJECT_SPLITTERS' => array( |
123 1 => '' |
124 ), |
124 ), |
125 'REGEXPS' => array( |
125 'OOLANG' => false, |
126 ), |
126 'OBJECT_SPLITTERS' => array( |
127 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
127 ), |
128 'SCRIPT_DELIMITERS' => array( |
128 'REGEXPS' => array( |
129 ), |
129 ), |
130 'HIGHLIGHT_STRICT_BLOCK' => array( |
130 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
131 ) |
131 'SCRIPT_DELIMITERS' => array( |
|
132 ), |
|
133 'HIGHLIGHT_STRICT_BLOCK' => array( |
|
134 ) |
132 ); |
135 ); |
133 |
136 |
134 ?> |
137 ?> |