[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Syntax highlighting in / for Lua
- From: "Nick Trout" <nick@...>
- Date: Mon, 6 Aug 2001 17:59:08 +0100
Oops, time to go home...
function makeDict(t)
local d={}
for i=1,getn(t) do d[ t[i] ]=1 end
return d
end
tokens = makeDict {
"~=", "<=", ">=", "<", ">",
"==", "=", "+", "-", "*",
etc
}