File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public class EzCode
2323 /// <summary>
2424 /// Directory of the script playing
2525 /// </summary>
26- public static string Version { get ; } = "2.3.2 " ;
26+ public static string Version { get ; } = "2.3.3 " ;
2727
2828 #region Variables_and_Initializers
2929 /// <summary>
Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ static EZText StaticTranslate(string line)
454454 }
455455 else
456456 {
457- Error ( "Expected 'stop the program' to clear the console " , e ) ;
457+ Error ( "Expected 'stop the program' or 'stop the file' to stop the program or file " , e ) ;
458458 }
459459 }
460460 catch
@@ -546,17 +546,24 @@ static EZText StaticTranslate(string line)
546546 case "play" :
547547 try
548548 {
549- if ( words [ 1 ] == "project " )
549+ if ( words [ 1 ] == "the " )
550550 {
551- Code += $ "file playproj { string . Join ( " " , words . Skip ( 2 ) ) } ";
552- }
553- else if ( words [ 1 ] == "file" )
554- {
555- Code += $ "file play { string . Join ( " " , words . Skip ( 2 ) ) } ";
551+ if ( words [ 2 ] == "project" )
552+ {
553+ Code += $ "file playproj { string . Join ( " " , words . Skip ( 3 ) ) } ";
554+ }
555+ else if ( words [ 2 ] == "file" )
556+ {
557+ Code += $ "file play { string . Join ( " " , words . Skip ( 3 ) ) } ";
558+ }
559+ else
560+ {
561+ Error ( "Expected 'project' or 'file' for syntax 'play the project/file URL'" , e ) ;
562+ }
556563 }
557564 else
558565 {
559- Error ( "Expected 'project' or 'file' for syntax 'play project/file URL'" , e ) ;
566+ Error ( "Expected 'the' for syntax 'play the project/file URL'" , e ) ;
560567 }
561568 }
562569 catch
You can’t perform that action at this time.
0 commit comments