mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-16 14:28:29 +01:00
take care of spaces in templated type
This commit is contained in:
@@ -460,8 +460,7 @@ local function parseFunction(self,stname,lineorig,namespace)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
--end
|
--end
|
||||||
argscsinpars = argscsinpars:gsub("<([%w_%*]+)>",te) --ImVector
|
argscsinpars = argscsinpars:gsub("<([%w_%*%s]+)>",te) --ImVector
|
||||||
|
|
||||||
local argsArr = {}
|
local argsArr = {}
|
||||||
local functype_re = "^%s*[%w%s%*]+%(%*[%w_]+%)%([^%(%)]*%)"
|
local functype_re = "^%s*[%w%s%*]+%(%*[%w_]+%)%([^%(%)]*%)"
|
||||||
local functype_reex = "^(%s*[%w%s%*]+)%(%*([%w_]+)%)(%([^%(%)]*%))"
|
local functype_reex = "^(%s*[%w%s%*]+)%(%*([%w_]+)%)(%([^%(%)]*%))"
|
||||||
@@ -1457,4 +1456,14 @@ local function location(file,locpathT,defines,COMPILER)
|
|||||||
return location_it
|
return location_it
|
||||||
end
|
end
|
||||||
M.location = location
|
M.location = location
|
||||||
|
|
||||||
|
--[=[
|
||||||
|
-- tests
|
||||||
|
local line = [[void DockBuilderCopyDockSpace(ImGuiID src_dockspace_id, ImGuiID dst_dockspace_id, ImVector<const char*>* in_window_remap_pairs);]]
|
||||||
|
local parser = M.Parser()
|
||||||
|
parser:insert(line)
|
||||||
|
parser:do_parse()
|
||||||
|
--M.prtable(parser)
|
||||||
|
--]=]
|
||||||
|
|
||||||
return M
|
return M
|
Reference in New Issue
Block a user