From 095980fbbc1f5f4956afdee2802b87ce45f245e7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 16 Sep 2013 21:26:43 -0400 Subject: Removed the `SC_` prefix from constants in `_SCINTILLA.constants`. Also removed more unused constants. --- scripts/gen_iface.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/gen_iface.lua b/scripts/gen_iface.lua index 05ef080e..6fa49cc0 100755 --- a/scripts/gen_iface.lua +++ b/scripts/gen_iface.lua @@ -39,7 +39,7 @@ local ignores = { '^SC_CACHE_', '^SC_CHARSET_', '^SC_EFF_', '^SC_FONT_SIZE_MULTIPLIER', '^SC_LINE_END_TYPE_', -- provisional '^SC_PRINT_', '^SC_STATUS_', '^SC_TECHNOLOGY_', '^SC_TYPE_', '^SC_WEIGHT_', - '^SCE_', '^SCEN_', '^SCI_', '^SCLEX_', + '^SCE_', '^SCEN_', '^SCI_', '^SCK_', '^SCLEX_', '^UNDO_MAY_COALESCE' } -- Constants ({"constant", value}). @@ -48,7 +48,8 @@ for item in iface:match('Constants%[%] = (%b{})'):sub(2, -2):gmatch('%b{}') do local skip = false for i = 1, #ignores do if name:find(ignores[i]) then skip = true break end end if not skip then - if name == 'SC_MASK_FOLDERS' then value = '-33554432' end + name = name:gsub('SC_', '') + if name == 'MASK_FOLDERS' then value = '-33554432' end constants[#constants + 1] = string_format('%s=%s', name, value) fielddoc[#fielddoc + 1] = string_format('-- * `%s.%s` %d', s, name, value) end -- cgit v1.2.3