openlayers/ol3 — pull request #1008 by tschaub (2013-09-11 00:12:18+00:00)
Title: Code generation problems

I just tried to add the following block to `objectliterals.jsdoc`:

```js
/**
* @typedef {Object} ol.source.XYZOptions
* @property {Array.|undefined} attributions Attributions.
* @property {null|string|undefined} crossOrigin Cross origin setting for image
* requests.
* @property {ol.Extent|undefined} extent Extent.
* @property {string|undefined} logo Logo.
* @property {ol.ProjectionLike} projection Projection.
* @property {number|undefined} maxZoom Max zoom.
* @property {ol.TileUrlFunctionType|undefined} tileUrlFunction Optional
* function to get tile URL given a tile coordinate and the projection.
* Required if url or urls are not provided.
* @property {string|undefined} url URL template. Must include '{x}', '{y}',
* and '{z}' placeholders.
* @property {Array.|undefined} urls An array of URL templates.
*/
```

This resulted in the following in `build/src/external/externs/types.js`:
```js
/**
* @type {string|undefined} url URL template. Must include '{x}', '{y}
*/
olx.source.XYZOptionsExtern.prototype.',;
```

I assume there is some greedy pattern matching going on that is consuming everything until the last closing curly brace.