MIPS: Add missing opcodes to the DynASM MIPS module plus minor fixes.

Allow single dot as macro name.
This commit is contained in:
Mike Pall
2012-01-23 19:06:58 +01:00
parent a72134e280
commit b9651b4ba2
2 changed files with 15 additions and 4 deletions

View File

@@ -390,7 +390,7 @@ map_coreop[".macro_*"] = function(mparams)
-- Split off and validate macro name.
local name = remove(mparams, 1)
if not name then werror("missing macro name") end
if not (match(name, "^[%a_][%w_%.]*$") or match(name, "^%.[%w_%.]+$")) then
if not (match(name, "^[%a_][%w_%.]*$") or match(name, "^%.[%w_%.]*$")) then
wfatal("bad macro name `"..name.."'")
end
-- Validate macro parameter names.