summaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index e9388c8..982c342 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -199,6 +199,15 @@ void Parser::statement()
199 if( lex[0].eType == Token::tCommand ) 199 if( lex[0].eType == Token::tCommand )
200 { 200 {
201 lex.setMode( Lexer::modeCommand ); 201 lex.setMode( Lexer::modeCommand );
202 output( lex[0] );
203 for(;;)
204 {
205 lex.nextToken();
206 if( lex[0].eType == Token::tEndOfLine ||
207 lex[0].eType == Token::tEndOfInput )
208 break;
209 output( lex[0] );
210 }
202 lex.setMode( Lexer::modeNormal ); 211 lex.setMode( Lexer::modeNormal );
203 } 212 }
204 else 213 else