foundeo / toscript

Converts Tag based CFML to CFML Script
GNU General Public License v3.0
20 stars 9 forks source link

loops without index not working properly #3

Closed ryanguill closed 7 years ago

ryanguill commented 7 years ago
<cfloop array="#myArray#" item="i">

</cfloop>

<cfloop collection="#myStruct#" item="key">

</cfloop>

returns

/* toScript ERROR: key [INDEX] doesn't exist

<cfloop array="#myArray#" item="i">

</cfloop>

*/

}

/* toScript ERROR: Unimplemented cfloop condition

<cfloop collection="#myStruct#" item="key">

</cfloop>

*/

}

also note the extra } being returned below the error.