CommandHelper

CommandHelper

46.5k Downloads

Error with double quotation marks as optional value.

LadyCailinBot opened this issue ยท 4 comments

commented

CMDHELPER-3088 - Reported by Nessiesson

The following alias definition,

*:"/derp" [$=""] = noop();

returns a compiler error stating the following:

COMPILE ERROR: Unexpected token in optional variable

This seems to be an error related directly to double quotes, as it does not happen using the single ones.

commented

Comment by PseudoKnight

but... there's no reason to use smart quotes there.

commented

Comment by Nessiesson

That is irrelevant.

commented

Comment by PseudoKnight

Oh, in that case...

*:/derp !$ = noop();
*:/herp /* don't mind me */ $ = noop();
*:/burp [$=colorize('Blah')] = noop();
*:/lerp reg_match('^regex$', $) = noop();
commented

Comment by PseudoKnight

I made it accept values in double quotes here. (build 2989)