slightlyoff / cassowary.js

Cassowary/JS, better, faster, future-ready
Other
1.69k stars 107 forks source link

Allow numeric digits in IdentifierName of parser grammar #58

Closed whummer closed 9 years ago

whummer commented 10 years ago

Simple (yet important) change: It would be extremely useful to allow for variable names like "var1", "x_1", etc.

The pull request is based on the grammar in https://github.com/dmajda/pegjs/blob/master/examples/javascript.pegjs

The /src/parser/parser.js file would have to be re-generated after this change.