aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gen_iface.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2010-08-31 18:28:48 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2010-08-31 18:28:48 -0400
commitf062973a81b74e5a5ea38602d74a8ee61aa76695 (patch)
tree90a15e45d4d3196d6a10dbad1c3872e39df895e0 /scripts/gen_iface.lua
parentd4db80a3d354ba3c39038c8fb4a1477516fec6d8 (diff)
Change Lua interface to support updated LPeg Scintilla lexer.
Diffstat (limited to 'scripts/gen_iface.lua')
-rwxr-xr-xscripts/gen_iface.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/gen_iface.lua b/scripts/gen_iface.lua
index 1f1e64e7..fcfe5bb5 100755
--- a/scripts/gen_iface.lua
+++ b/scripts/gen_iface.lua
@@ -34,13 +34,18 @@ constants = {]]
-- {"constant", value}
for item in constants:sub(2, -2):gmatch('%b{}') do
local name, value = item:match('^{"(.-)",(.-)}')
- if not name:find('^IDM_') then
+ if not name:find('^IDM_') and not name:find('^SCE_') and
+ not name:find('^SCLEX_') then
if name == 'SC_MASK_FOLDERS' then value = '-33554432' end
local line = (" %s = %s,"):format(name, value)
out = out..line
end
end
out = out..string.gsub([[
+SCLEX_CONTAINER = 0,
+SCLEX_NULL = 1,
+SCLEX_LPEG = 999,
+SCLEX_AUTOMATIC = 1000,
SCN_STYLENEEDED = 2000,
SCN_CHARADDED = 2001,
SCN_SAVEPOINTREACHED = 2002,