top | item 3843399

(no title)

palish | 14 years ago

Fixed. Thank you, keep 'em coming.

As of now, semicolon substitution isn't performed if the character before the newline is any of: & | + - * ? :

discuss

order

thezilch|14 years ago

Like I said, not limited; surely you can see where these are going...

  cat foo.js; jsmin <foo.js
  foo = [
    !"foo",
    !"foo" %
      !!"bar",
    1 ==
      !"foo"
  ];

  foo=[;!"foo",;!"foo"%;!!"bar",1==;!"foo"];

palish|14 years ago

Fixed. Thanks so much! I added % and = to the blacklist.

I'm searching for a fundamentally elegant solution. My current one is more of a kludge... though, if it fixes all cases and doesn't introduce problems, then maybe it's worth a few extra lines.