From: John L. <jr...@us...> - 2006-05-19 05:32:00
|
Update of /cvsroot/wxlua/wxLua/bindings In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv27971/wxLua/bindings Modified Files: genidocs.lua Log Message: update wxLuaEdit to use wxTreeCtrl for selecting files, update for wxStEdit cleanup docs to create links only to classnames, not when the classname is part of a longer name Index: genidocs.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/genidocs.lua,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** genidocs.lua 17 May 2006 05:02:04 -0000 1.2 --- genidocs.lua 19 May 2006 05:31:52 -0000 1.3 *************** *** 30,34 **** table.insert(fileTable, MakeColour("Enums - %enum", enumColour).."<br>") ! table.insert(fileTable, MakeColour("Defines - %define [%string] [%object]", defineColour).."<br>") table.insert(fileTable, MakeColour("Events - %define %event", eventColour).."<br>") --- 30,34 ---- table.insert(fileTable, MakeColour("Enums - %enum", enumColour).."<br>") ! table.insert(fileTable, MakeColour("Defines - %define [%string] [%object] [%pointer]", defineColour).."<br>") table.insert(fileTable, MakeColour("Events - %define %event", eventColour).."<br>") *************** *** 238,245 **** used[cname] = true for w in string.gmatch(line, "([%w_]+)") do ! if (not string.find(cname, w, 1, 1)) and (not used[w]) and dataTypes[w] and (dataTypes[w].DefType ~= "builtin") then used[w] = true ! out_line = string.gsub(out_line, w, MakeLink(w)) end end --- 238,259 ---- used[cname] = true + local function replace_pattern(w) + + end + for w in string.gmatch(line, "([%w_]+)") do ! if ((string.len(cname) == 0) or (not string.find(w, cname, 1, 1))) and ! (not used[w]) and ! dataTypes[w] and (dataTypes[w].DefType ~= "builtin") and (dataTypes[w].DefType ~= "wxtypedef") then used[w] = true ! -- replace the classname with a link, but not if it's part of a name ! --out_line = string.gsub(out_line, w, MakeLink(w)) ! local pat = "[ %&%*%(%)%{%}%[%]%+%-%=%<%>%.%-%+%|%/]" ! local s, e = string.find(out_line, w..pat, 1) ! while s do ! local link = MakeLink(w) ! out_line = string.sub(out_line, 1, s-1)..link..string.sub(out_line, e) ! s, e = string.find(out_line, w..pat, s+string.len(link)) ! end end end |