aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-09-16 21:26:43 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-09-16 21:26:43 -0400
commit095980fbbc1f5f4956afdee2802b87ce45f245e7 (patch)
treef1c214a39b66bd939dde2f7deb26e449f7fe57c9 /scripts
parentdbef5c3fa8ca9f842f75a6db1f0aa0fb029a4be6 (diff)
Removed the `SC_` prefix from constants in `_SCINTILLA.constants`.
Also removed more unused constants.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen_iface.lua5
1 files changed, 3 insertions, 2 deletions
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