diff options
author | Mukund Sivaraman <muks@isc.org> | 2014-01-22 02:07:15 +0100 |
---|---|---|
committer | Mukund Sivaraman <muks@isc.org> | 2014-01-22 04:54:04 +0100 |
commit | 2104bd1fc98336145b39a6afc01eba9d0f78729f (patch) | |
tree | 277f6b896fc0186bf561d3c93dc17613838a106d /src/lib/dns/master_lexer.h | |
parent | Update .gitignore files (diff) | |
download | kea-2104bd1fc98336145b39a6afc01eba9d0f78729f.tar.xz kea-2104bd1fc98336145b39a6afc01eba9d0f78729f.zip |
[2534] Support some minor cases for quoted character strings (compatibility with BIND 9)
Diffstat (limited to 'src/lib/dns/master_lexer.h')
-rw-r--r-- | src/lib/dns/master_lexer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/dns/master_lexer.h b/src/lib/dns/master_lexer.h index e33f9649b8..650368181c 100644 --- a/src/lib/dns/master_lexer.h +++ b/src/lib/dns/master_lexer.h @@ -78,6 +78,7 @@ public: /// error and should never get out of the lexer. NUMBER_OUT_OF_RANGE, ///< Number was out of range BAD_NUMBER, ///< Number is expected but not recognized + UNEXPECTED_QUOTES, ///< Unexpected quotes character detected MAX_ERROR_CODE ///< Max integer corresponding to valid error codes. /// (excluding this one). Mainly for internal use. }; @@ -587,6 +588,9 @@ public: /// /// - If the expected type is MasterToken::QSTRING, both quoted and /// unquoted strings are recognized and returned. + /// - A string with quotation marks is not recognized as a + /// - MasterToken::STRING. You have to get it as a + /// - MasterToken::QSTRING. /// - If the optional \c eol_ok parameter is \c true (very rare case), /// MasterToken::END_OF_LINE and MasterToken::END_OF_FILE are recognized /// and returned if they are found instead of the expected type of |