From f062973a81b74e5a5ea38602d74a8ee61aa76695 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 31 Aug 2010 18:28:48 -0400 Subject: Change Lua interface to support updated LPeg Scintilla lexer. --- scripts/gen_iface.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/gen_iface.lua') 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, -- cgit v1.2.3