fb55/htmlparser2 — pull request #49 by AndreasMadsen (2013-06-06 20:28:40+00:00)
Title: [tokenizer] don't reset comment state in case of long endings

Found the bug when scraping http://www.guardian.co.uk/world/2013/jun/06/florida-tropical-storm-andrea

See testcase below:

```javascript
var Parser = require('htmlparser2').Parser;

var stream = new Parser({
onopentag: function (tagname, attr) {
console.log('open: ' + tagname, attr);
},

oncomment: function (value) {
console.log('open comment: ' + value);
},

ontext: function (text) {
console.log('text: ' + text);
},

oncommentend: function () {
console.log('close comment');
},

onclosetag: function (tagname) {
console.log('close: ' + tagname);
}
});

stream.write('');
stream.write('');
stream.write('');
stream.end();
```

Outputs this on master:
```
open: meta { id: 'before' }
close: meta
open comment: text --->
close comment
```

with this fix:
```
open: meta { id: 'before' }
close: meta
open comment: text -
close comment
open: meta { id: 'after' }
close: meta
```