Skip to content

Commit

Permalink
Minor Parser Do fix
Browse files Browse the repository at this point in the history
  • Loading branch information
filt3rek committed Oct 27, 2022
1 parent e1f79a0 commit 2c92324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion ftk/format/template/Interp.hx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ class Interp {
for( field in Reflect.fields( ctx ) ){
hinterp.variables.set( field, Reflect.field( ctx, field ) );
}

try{
var expr = new hscript.Parser().parseString( hscriptSource );
if( runtimePos ){
Expand Down
3 changes: 2 additions & 1 deletion ftk/format/template/Parser.hx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ class Parser{
if( isInComment ){
addComment( DO + s );
}else{
out += '$s;';
out += '$s';
if( !s.trim().endsWith( ";" ) ) out+= ";";
}
case EElse :
if( isInComment ){
Expand Down

0 comments on commit 2c92324

Please sign in to comment.