summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-03-18 08:49:25 -0500
committerJohn Estabrook <jestabro@vyos.io>2025-03-18 11:45:30 -0500
commitb8d221356a11e172bba4fc54ecb1a0f3133bf12a (patch)
treef88832fbb51ca39dffdf67ac5b82aa3bc113a6bb /src
parentd08be19809a3e1c8413e0d98556273244dc18e77 (diff)
downloadvyos1x-config-b8d221356a11e172bba4fc54ecb1a0f3133bf12a.tar.gz
vyos1x-config-b8d221356a11e172bba4fc54ecb1a0f3133bf12a.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/vyos1x_lexer.mll2
1 files changed, 0 insertions, 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