Commit afaba0df authored by dickelbeck's avatar dickelbeck

brian's patch

parent 12b94cc1
...@@ -167,7 +167,10 @@ DSN_T SPECCTRA_DB::nextTok() ...@@ -167,7 +167,10 @@ DSN_T SPECCTRA_DB::nextTok()
bool SPECCTRA_DB::isSymbol( DSN_T aTok ) bool SPECCTRA_DB::isSymbol( DSN_T aTok )
{ {
// if aTok is >= 0, then it might be a coincidental match to a keyword. // if aTok is >= 0, then it might be a coincidental match to a keyword.
return aTok==T_SYMBOL || aTok==T_STRING || aTok>=0; return aTok==T_SYMBOL
|| aTok==T_STRING
|| aTok>=0
;
} }
...@@ -1864,7 +1867,7 @@ void SPECCTRA_DB::doCOMPONENT( COMPONENT* growth ) throw( IOError ) ...@@ -1864,7 +1867,7 @@ void SPECCTRA_DB::doCOMPONENT( COMPONENT* growth ) throw( IOError )
{ {
DSN_T tok = nextTok(); DSN_T tok = nextTok();
if( !isSymbol( tok ) ) if( !isSymbol( tok ) && tok != T_NUMBER )
expecting( "image_id" ); expecting( "image_id" );
growth->image_id = lexer->CurText(); growth->image_id = lexer->CurText();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment