From 8622d8625c12d3cc7ac248df8be5612519a59565 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 12 Aug 2013 17:34:26 +0200 Subject: lexer: enter NEEDSPACE context after an IP address --- src/config.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.l b/src/config.l index 53b52d6..295352f 100644 --- a/src/config.l +++ b/src/config.l @@ -122,6 +122,7 @@ auto { TOKEN(TOK_AUTO); } return -1; } + BEGIN(NEEDSPACE); return TOK_ADDR4; } @@ -180,7 +181,7 @@ auto { TOKEN(TOK_AUTO); } return -1; } } -\] { yylloc->last_column++; BEGIN(INITIAL); return TOK_ADDR6; } +\] { yylloc->last_column++; BEGIN(NEEDSPACE); return TOK_ADDR6; } #.* { yylloc->last_column += yyleng; } \/\/.* { yylloc->last_column += yyleng; } -- cgit v1.2.3