3 print "These are default_keys dictionary"
4 print "This file is automatically generated from default_keys.h - DON'T EDIT MANUALLY."
6 print "local _keys = {"
9 $
1 ~
/^
[A
-Fa
-f0
-9]+/ { sub(/\r/, ""); print " '"substr($
1,1,12)"'," }
14 print "-- The keys above have just been pasted in, for completeness sake. They contain duplicates. "
15 print "-- We need to weed the duplicates out before we expose the list to someone who actually wants to use them"
16 print "-- @param list a list to do 'uniq' on"
18 print "local function uniq(list)"
20 print " local foobar = {}"
21 print " for _, value in pairs(list) do"
22 print " value = value:lower()"
23 print " if not foobar[value] then"
24 print " foobar[value] = true"
25 print " table.insert(foobar, value);"
28 print " return foobar"
30 print "return uniq(_keys)"