Skip Menu |

This queue is for tickets about the JavaScript-Beautifier CPAN distribution.

Report information
The Basics
Id: 63479
Status: open
Priority: 0/
Queue: JavaScript-Beautifier

People
Owner: Nobody in particular
Requestors: atomantic [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.17
Fixed in: (no value)



The new sexy standard for creating multiple variables in javascript is like so: var x = 1, y = 2; http://jsbeautifier.org/ correctly identifies that new var declarations after the comma should be indented once to nest after the 'var' keyword, however the perl script misses this, leaving the 'y' unindented at the same position as 'var'. BTW, thanks for the awesome script--this is just what I needed to get TextMate to format js :)
Втр Ноя 30 17:33:45 2010, antic писал: Note that rt eaten indenting whitespaces, i think code should looks like: Show quoted text
> var x = 1, > y = 2;
Argh! Code: var x = 1,     y = 2;