From b8d221356a11e172bba4fc54ecb1a0f3133bf12a Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 18 Mar 2025 08:49:25 -0500 Subject: T7246: drop lexer rule ignoring lines beginning with '//' The lexer is unnecessarily aggressive in disallowing strings following '//', originally added to ignore version string information. This has the side effect of ignoring legitimate values. Since the version string is now extracted before parsing, this restriction can be dropped. --- src/vyos1x_lexer.mll | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/vyos1x_lexer.mll b/src/vyos1x_lexer.mll index a363c65..34cf294 100644 --- a/src/vyos1x_lexer.mll +++ b/src/vyos1x_lexer.mll @@ -69,8 +69,6 @@ rule token vy_inside_node = parse { (false, LEFT_BRACE) } | '}' { (false, RIGHT_BRACE) } -| "//" [^ '\n']* - { token vy_inside_node lexbuf } | [^ ' ' '\t' '\n' '\r' '{' '}' '"' ''' ]+ as s { (true, IDENTIFIER s) } | eof -- cgit v1.2.3