diff options
author | 2009-06-21 17:57:17 -0400 | |
---|---|---|
committer | 2009-06-21 17:57:17 -0400 | |
commit | 114e970ed4da2ab804256700980ecc61c2647a1e (patch) | |
tree | fb8173484b5e558ba8b87d8fe5d124e9472b7603 /scripts | |
parent | 06f4637430d0afe0e0b910952bc666cf2e9b1a8c (diff) |
Updated scripts/gen_iface.lua.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen_iface.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/gen_iface.lua b/scripts/gen_iface.lua index 63508c37..3885763f 100755 --- a/scripts/gen_iface.lua +++ b/scripts/gen_iface.lua @@ -17,7 +17,7 @@ local types = { findtext = 11, formatrange = 12 } -out = out..'textadept.constants = {\n' +out = out..'local constants = {\n' -- {"constant", value} for item in constants:sub(2, -2):gmatch('%b{}') do local name, value = item:match('^{"(.-)",(.-)}') @@ -53,9 +53,9 @@ out = out..[[ SCN_INDICATORCLICK = 2023, SCN_INDICATORRELEASE = 2024, ]] -out = out..'}\n\n' +out = out..'}\nrawset(textadept, \'constants\', constants)\n\n' -out = out..'textadept.buffer_functions = {\n' +out = out..'local buffer_functions = {\n' -- {"function", msg_id, iface_*, {iface_*, iface_*}} for item in functions:sub(2, -2):gmatch('%b{}') do local name, msg_id, rt_type, p1_type, p2_type = @@ -67,9 +67,9 @@ for item in functions:sub(2, -2):gmatch('%b{}') do name, msg_id, types[rt_type], types[p1_type], types[p2_type]) out = out..line end -out = out..'}\n\n' +out = out..'}\nrawset(textadept, \'buffer_functions\', buffer_functions)\n\n' -out = out..'textadept.buffer_properties = {\n' +out = out..'local buffer_properties = {\n' -- {"property", get_id, set_id, rt_type, p1_type} for item in properties:sub(2, -2):gmatch('%b{}') do local name, get_id, set_id, rt_type, p1_type = @@ -81,7 +81,7 @@ for item in properties:sub(2, -2):gmatch('%b{}') do name, get_id, set_id, types[rt_type], types[p1_type]) out = out..line end -out = out..'}\n' +out = out..'}\nrawset(textadept, \'buffer_properties\', buffer_properties)\n' f = io.open('../core/iface.lua', 'w') f:write(out) |