]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5014] Count embbeded \n in comments
authorFrancis Dupont <fdupont@isc.org>
Fri, 18 Nov 2016 01:55:09 +0000 (02:55 +0100)
committerFrancis Dupont <fdupont@isc.org>
Fri, 18 Nov 2016 01:55:09 +0000 (02:55 +0100)
src/bin/dhcp6/dhcp6_lexer.ll

index 6742b74027a4477a9e6234c09b3a5f3040530786..a029257e2f284c690c3b67521972a857da8dc12d 100644 (file)
@@ -116,7 +116,7 @@ JSONString                              \"{JSONStringCharacter}*\"
 }
 
 <COMMENT>"*/" BEGIN(INITIAL);
-<COMMENT>.|"\n" ;
+<COMMENT>. ;
 <COMMENT><<EOF>> {
     isc_throw(isc::BadValue, "Comment not closed. (/* in line " << comment_start_line);
 }
@@ -125,6 +125,7 @@ JSONString                              \"{JSONStringCharacter}*\"
     // Ok, we found a with space. Let's ignore it and update loc variable.
     loc.step();
 }
+
 [\n]+      {
     // Newline found. Let's update the location and continue.
     loc.lines(yyleng);