summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/master_lexer.h
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@isc.org>2014-01-22 02:07:15 +0100
committerMukund Sivaraman <muks@isc.org>2014-01-22 04:54:04 +0100
commit2104bd1fc98336145b39a6afc01eba9d0f78729f (patch)
tree277f6b896fc0186bf561d3c93dc17613838a106d /src/lib/dns/master_lexer.h
parentUpdate .gitignore files (diff)
downloadkea-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.h4
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