Lines Matching refs:match
49 local sub, match, gmatch, gsub = _s.sub, _s.match, _s.gmatch, _s.gsub
190 if not match(name, "^[%a_][%w_]*$") then werror("bad or duplicate define") end
198 local name, subst = match(namesubst, "^([%a_][%w_]*)=(.*)$")
201 elseif match(namesubst, "^[%a_][%w_]*$") then
211 if match(name, "^[%a_][%w_]*$") then
288 local op = match(stmt, "^%s*(%S+)")
355 local dirsep = package and match(package.path, "\\") and "\\" or "/"
401 if not (match(name, "^[%a_][%w_%.]*$") or match(name, "^%.[%w_%.]*$")) then
407 if not match(mp, "^[%a_][%w_]*$") then
426 if not match(stmt, "^%s*.endmacro%s*$") then
512 if not match(name, "^[%a_][%w_]*$") then
542 if not match(name, "^[%a_][%w_]*$") then
597 if not match(name, "^[%a][%w_]*$") or
632 if not match(arch, "^[%w_]+$") then return "bad arch name" end
664 local name, nparam = match(sname, "^(.+)_([0-9%*])$")
763 local label = match(stmt, "^%s*(.+):%s*$")
772 local op, other = match(stmt, "^%s*([^%s%z]+)%s*(.*)$")
789 if match(stmt, "^%s*$") then return end
832 local indent, aline = match(line, "^(%s*)%|(.*)$")
865 if match(aline, ";") then
1056 local lopt, opt = match(a, "^%-(%-?)(.+)")
1087 prefix = match(arg[0], "^(.*[/\\])")