beautify-web/js-beautify — pull request #484 by evocateur (2014-06-25 00:55:19+00:00)
Title: Support 'starless' docblock comments.

I've been using "starless" docblocks for awhile now, and I thought it'd be nice to format them properly. I first encountered them in YUI3, and find it makes inline docs much easier to write and maintain.

##### Javadoc
```js
/**
* stuff
*/
```

##### Starless
```js
/**
stuff
**/
```

We already handle the Javadoc-style well enough, so it was frustrating when I found my immaculately formatted source was getting mangled by js-beautify:

#### Input & Expected Output
```js
var foo = {
/**
Do stuff to the fizzbuzz

@method doStuff
**/
doStuff: function () {
// etc
}
};
```

#### Actual Output
```js
var foo = {
/**
Do stuff to the fizzbuzz

@method doStuff
**/
doStuff: function () {
// etc
}
};
```

The indentation was horked, and there were several edge cases that degraded even further.

## TL;DR:
This pull request fixes that. Bonus, I learned some Python idioms. :)