adobe / htl-spec

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

Add negative numbers to the HTL grammar #44

Closed karollewandowski closed 6 years ago

karollewandowski commented 7 years ago

I'm wondering why negative numbers like: -5, -8.2 are not allowed in grammar. Is there any motivation for this or it was just overlooked? It could be sometimes useful eg. for comparing values with -1 (it's often returned from Java API methods as "not found" code). If it is something that can be added, but you just don't have time, please let me know. I can create changes here and in Sling project.