add characters | < to defaults parsing

This commit is contained in:
sonoro1234
2019-05-06 16:41:40 +02:00
parent 1aeb9ad132
commit 022f60320f
4 changed files with 10 additions and 5 deletions

View File

@@ -466,7 +466,7 @@ local function parseFunction(self,stname,lineorig,namespace)
defT.defaults = {}
--for k,def in args:gmatch("([%w%s%*_]+)=([%w_%(%)%s,%*]+)[,%)]") do
--for k,def in args:gmatch("([%w_]+)=([%w_%(%)%s,%*%.%-]+)[,%)]") do
for k,def in args:gmatch('([%w_]+)=([%w_%(%)%s,%*%.%-%+%%"]+)[,%)]') do
for k,def in args:gmatch('([%w_]+)=([|<%w_%(%)%s,%*%.%-%+%%"]+)[,%)]') do
defT.defaults[k]=def
end
defT.templated = self.typenames[stname] and true