|
@@ -79,7 +79,14 @@ public:
|
|
|
|
|
|
constructFromLexer(lexer);
|
|
|
|
|
|
- if (lexer.getNextToken().getType() != MasterToken::END_OF_FILE) {
|
|
|
+ for (MasterToken::Type token_type = lexer.getNextToken().getType();
|
|
|
+ token_type != MasterToken::END_OF_FILE;
|
|
|
+ token_type = lexer.getNextToken().getType())
|
|
|
+ {
|
|
|
+ if (token_type == MasterToken::END_OF_LINE) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
isc_throw(InvalidRdataText,
|
|
|
"Extra input text for " << RRType(typeCode) << ": "
|
|
|
<< ds_str);
|