X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fselection%2Fselectioncollection.cpp;h=d124cf2800bcc15109af43e2dcc3f4caa375b1bf;hb=aa40ec1fd149313b4402c12dfc499da54abe68d3;hp=bbe3f11df267e7b05191d1c847b3823bfb9ab351;hpb=180cf1538ad2b19bd6b4108662adc4a519565fcb;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/selection/selectioncollection.cpp b/src/gromacs/selection/selectioncollection.cpp index bbe3f11df2..d124cf2800 100644 --- a/src/gromacs/selection/selectioncollection.cpp +++ b/src/gromacs/selection/selectioncollection.cpp @@ -188,26 +188,14 @@ int runParserLoop(yyscan_t scanner, _gmx_sel_yypstate *parserState, bool bInteractive) { int status = YYPUSH_MORE; - int prevToken = 0; do { YYSTYPE value; YYLTYPE location; int token = _gmx_sel_yylex(&value, &location, scanner); - if (bInteractive) + if (bInteractive && token == 0) { - if (token == 0) - { - break; - } - // Empty commands cause the interactive parser to print out - // status information. This avoids producing those unnecessarily, - // e.g., from "resname RA;;". - if (prevToken == CMD_SEP && token == CMD_SEP) - { - continue; - } - prevToken = token; + break; } status = _gmx_sel_yypush_parse(parserState, token, &value, &location, scanner); }