diff options
author | 2010-08-31 18:28:48 -0400 | |
---|---|---|
committer | 2010-08-31 18:28:48 -0400 | |
commit | f062973a81b74e5a5ea38602d74a8ee61aa76695 (patch) | |
tree | 90a15e45d4d3196d6a10dbad1c3872e39df895e0 /scripts/gen_iface.lua | |
parent | d4db80a3d354ba3c39038c8fb4a1477516fec6d8 (diff) | |
download | textadept-f062973a81b74e5a5ea38602d74a8ee61aa76695.tar.gz textadept-f062973a81b74e5a5ea38602d74a8ee61aa76695.zip |
Change Lua interface to support updated LPeg Scintilla lexer.
Diffstat (limited to 'scripts/gen_iface.lua')
-rwxr-xr-x | scripts/gen_iface.lua | 7 |
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, |