aslakhellesoy/eventsource-node — pull request #23 by Fire- (2013-03-23 08:51:41+00:00)
Title: Fix Unicode support to cope with Javascript Unicode size limitations

Looks like jison was parsing incorrectly due to a size limitation with javascript unicode support

Test data:
```
id: 1
data: hello world

event: test
data: {"body":"豆腐"}

```

Python:
```python
0x8C46 in range(0x003B,0x10FFFF)
True
```
Jison:

```js
[\u003B-\u10FFFF] return 'char';

Parse error on line 5:
...testdata: {"body":"豆腐"}
----------------------^
Expecting 'eol', 'colon', 'char', 'space', got 'INVALID'
```

Python:
```python
0x8C46 in range(0x003B,0x9FFFF)
True
```

Jison
```js
[\u003B-\u9FFFF] return 'char';

[{"comments":[],"data":"hello world\n","id":"1"},{"comments":[],"data":"{\"body\":\"豆腐\"}\n","event":"test"}]
```

it also happens in both chrome and firefox's js consoles:

```js
"豆".match(/[0-\u10FFFF]/)
null

"豆".match(/[0-\uFFFFF]/)
["豆"]

"豆".match(/[0-\u9FFFF]/)
["豆"]
```

Even a single decimal character less ( 10 -> F , 16 to 15 ) makes it work with no discernible impact on actual usability ( It's a single character at the very tip top of Supplemental Private Use Area-B )