aurelia / templating-binding

An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.
MIT License
32 stars 26 forks source link

ES6 Map syntax parses incorrectly #36

Closed martingust closed 9 years ago

martingust commented 9 years ago

Today ES6 Map syntax for for strictly needs to be on form: [key, value] of itemMap. Following should also be valid:

[key,value] of itemMap (no space after comma) [ key, value ] of itemMap (spaces after opening bracket and before closing bracket) [key, value]of itemMap (no space between closing bracket and of)

Following the ES6 syntax, leaving out comma separator should also be valid:

[key value] of itemMap