forked from pyrex/chameleonic
assert on unrecognized directive
saves four tokens and is more diagnostic.
This commit is contained in:
parent
ce3fc83221
commit
e028209adf
@ -62,7 +62,7 @@ function fmt(f, ...)
|
||||
elseif m == "!" then
|
||||
out ..= tostring(p)
|
||||
else
|
||||
out ..= "(?!:"..m..":"..tostring(p)..")"
|
||||
assert(false, tostr(m).."is not a formatting directive")
|
||||
end
|
||||
end
|
||||
out ..=sub(s,2)
|
||||
|
Loading…
Reference in New Issue
Block a user