jashkenas/coffee-script — pull request #2061 by geraldalewis (2012-01-20 22:28:13+00:00)
Title: Issue #2060 Disallow uppercase radix prefixes and exponential notation

Disallows uppercase radix prefixes and exponential notation.

I also tweaked the error code for octal literals.

Uppercase radix prefixes.

```bash
$ bin/coffee -bpe '0B0'
SyntaxError: radix prefixes must be lowercase '0B0' on line 1

$ bin/coffee -bpe '0O0'
SyntaxError: radix prefixes must be lowercase '0O0' on line 1

$ bin/coffee -bpe '0X0'
SyntaxError: radix prefixes must be lowercase '0X0' on line 1
```

Uppercase exponential notation.

```bash
$ bin/coffee -bpe '0E0'
SyntaxError: exponential notation must be indicated with a lowercase 'e' on line 1
```

Deprecated octal literal notation.

```bash
$ bin/coffee -bpe '00'
SyntaxError: octal literals '00' must be prefixed with '0o' on line 1
```

`0`-prefixed decimals.

```bash
$ bin/coffee -bpe '08'
SyntaxError: decimal literals '08' must not be prefixed with '0' on line 1
```