]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5014_phase2] Fixed default rule (flex -s)
authorFrancis Dupont <fdupont@isc.org>
Sun, 27 Nov 2016 07:44:52 +0000 (08:44 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 29 Nov 2016 18:58:36 +0000 (19:58 +0100)
src/bin/dhcp6/dhcp6_lexer.ll

index a26734868c83c35e522d673d9a7ccc8e99904f50..927d5e2f3ba376e05625c3438d1974010527ad2d 100644 (file)
@@ -148,15 +148,18 @@ JSONString                              \"{JSONStringCharacter}*\"
 
     driver.includeFile(tmp);
 }
+<DIR_ENTER,DIR_INCLUDE,DIR_EXIT><<EOF>> {
+    isc_throw(isc::BadValue, "Directive not closed.");
+}
 <DIR_EXIT>"?>" BEGIN(INITIAL);
     
 
-{blank}+   {
+<*>{blank}+   {
     // Ok, we found a with space. Let's ignore it and update loc variable.
     loc.step();
 }
 
-[\n]+      {
+<*>[\n]+      {
     // Newline found. Let's update the location and continue.
     loc.lines(yyleng);
     loc.step();
@@ -792,7 +795,7 @@ null {
    return isc::dhcp::Dhcp6Parser::make_NULL_TYPE(loc);
 }
 
-.   driver.error (loc, "Invalid character: " + std::string(yytext));
+<*>.   driver.error (loc, "Invalid character: " + std::string(yytext));
 
 <<EOF>> {
     if (states.empty()) {