https://bugzilla.wikimedia.org/show_bug.cgi?id=27528

--- Comment #15 from P.Copp <[email protected]> 2011-03-14 15:56:12 UTC 
---
Created attachment 8290
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=8290
Follow-up fix: don't insert newlines before increment operators

(In reply to comment #12)
> Patch committed in r83885, some tweaks made in r83891

Thanks a lot. I really appreciate this being included in MediaWiki.

Just a small fix concerning the addition of the $maxLineLength parameter: There
is one case in the js grammar, where a newline is forbidden, although semicolon
insertion is not triggered:

if(x
++);

This raises a syntax error, because a newline may not occur before a postfix
increment operator. So we have to check for that too, when inserting a newline.

Fix with regression tests attached.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to