jshint/jshint — pull request #726 by circusbred (2012-11-03 18:49:59+00:00)
Title: Added support for /*exported ... */ directive

This patch introduces a new `/*exported … */` directive that is intended for use with the `unused` option. This directive will suppress warnings about unused function declarations and expressions if they are defined in the global scope but not used.

The following should run without warnings:

```javascript
/*exported cats */
function cats() {}
```

If the function declaration or expression is not in the global scope, it should throw a warning:

```javascript
/*exported cats */
function isCat() {
var cats; // Warning: 'cats' is defined but never used.
}
isCat();
```

References:

Closes GH-659