alanz/language-javascript — Issue #4: Parser fails on code and mode as variable names
Author: alanz
Created: 2012-02-02 13:19:45+00:00
State: open

From tony Morris

Hi mate, I am using language-javascript-0.4.6 and the parser is failing
if I use the word "code". I can't find anything in the specification
that says this is not permitted, so am I assuming correctly that this is
a bug in the parser?

Here is an example that fails to parser:
```
var k = {
y: code
}
```

If I change the word "code" to anything else it parses fine. Thanks for
any help.

------------------

Another word that appears to be disallowed but not listed in any specification I can find is "mode".