Commit 03dc2386 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2382] ungetToken EOL/EOF in the backend factories.

parent 3ae13a89
......@@ -214,6 +214,7 @@ Generic::Generic(MasterLexer& lexer, const Name*,
const MasterToken& token = lexer.getNextToken();
if ((token.getType() == MasterToken::END_OF_FILE) ||
(token.getType() == MasterToken::END_OF_LINE)) {
lexer.ungetToken(); // let the upper layer handle the end-of token
break;
}
......
......@@ -55,6 +55,7 @@ AbstractRdataFactory::create(MasterLexer& lexer, const Name*,
const MasterToken& token = lexer.getNextToken();
if ((token.getType() == MasterToken::END_OF_FILE) ||
(token.getType() == MasterToken::END_OF_LINE)) {
lexer.ungetToken(); // let the upper layer handle the end-of token
break;
}
......
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