hkoba / yatt_lite

YATT::Lite - Template with "use strict"
Other
5 stars 0 forks source link

yatt:if should be more strict for syntax error #170

Closed hkoba closed 5 years ago

hkoba commented 5 years ago

Unexpectedly, the following examples are compiled without error. Those should cause syntax errors.

 <yatt:my foo = 2 />
 <yatt:if "&yatt:foo; == 1">
 foo is 1.
 <:yatt:else if "&yatt:foo; == 2" />
 foo is 2.
 </yatt:if>
 <yatt:my bar = 2 />
 <yatt:if "&yatt:bar; == 1">
 bar is 1.
 <:yatt:elsif "&yatt:foo; == 2" />
 bar is 2.
 </yatt:if>