adobe / htl-spec

HTML Template Language Specification
Apache License 2.0
280 stars 146 forks source link

"field" definition allows for undocumented expression #57

Closed lachlanmcdonald closed 6 years ago

lachlanmcdonald commented 6 years ago

The field definition includes the string definition, which allows for the following expression to validate:

${ a."string" }

I'm not sure whether this is intentional; I can't seem to find any references to this expression in the documentation. Perhaps it should be:

propertyAccess = atom {'.' id}
               | atom {'[' , exprNode , ']'};