That's the punishment for using a manually written tokenizer!
Created attachment 12921 [details]
This test is also used for bug 12602 (with two offending cases commented out).
Actually, the tokenizer is OK - it's just another problem with implicit arguments in these functions (and in number()).
Created attachment 13011 [details]
Per the style guidelines,
+ if (argCount() == 0)
should be rewritten as
+ if (!argCount())
Comment on attachment 13011 [details]
Committed revision 19467.
(In reply to comment #5)
> Per the style guidelines,
Fixed here and in several other places in the file. /me stabs this guideline.