veged / xjst

Extensible JavaScript Transformations
http://veged.github.com/xjst/
203 stars 19 forks source link

Incorrect omitting of parenthesis #17

Closed veged closed 11 years ago

veged commented 11 years ago

After compilation of template(bla) { url + (page - (1 - start)) + anchor } all parenthesis are omitted (url + page - 1 - start + anchor).

indutny commented 11 years ago

Fixed in xjst@0.4.0. I've updated minor version, since it may break some existing things (but hopefully won't) because of introduced parens AST node added in corresponding ometajs module version.