refactor tokenizing

This commit is contained in:
Garux
2021-10-06 23:37:12 +03:00
parent fa1933fff5
commit 71c72527af
7 changed files with 92 additions and 160 deletions

View File

@@ -441,8 +441,7 @@ void ParseScript( void ){
{
do
{ // look for a line starting with a $ command
GetToken( true );
if ( endofscript ) {
if ( !GetToken( true ) ) {
return;
}
if ( token[0] == '$' ) {