summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@sentrium.io>2019-05-30 14:07:40 -0500
committerJohn Estabrook <jestabro@sentrium.io>2019-05-30 14:07:40 -0500
commitea9bee4c9e0a12947027bb83a6bf493cdf1ed1ed (patch)
treede8a2d2374cfaf533eb242f9b730bd90e9c793ab
parent9a80a5d3c652746f5e51d38aea1cf49f8a1949e4 (diff)
downloadlibvyosconfig-ea9bee4c9e0a12947027bb83a6bf493cdf1ed1ed.tar.gz
libvyosconfig-ea9bee4c9e0a12947027bb83a6bf493cdf1ed1ed.zip
T1334: Migration script runner rewrite
Add lexing support for new config file footer syntax.
-rw-r--r--parser/vyos1x_lexer.mll2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser/vyos1x_lexer.mll b/parser/vyos1x_lexer.mll
index 73bcd83..a996642 100644
--- a/parser/vyos1x_lexer.mll
+++ b/parser/vyos1x_lexer.mll
@@ -66,6 +66,8 @@ rule token = parse
{ vy_inside_node := false; LEFT_BRACE }
| '}'
{ vy_inside_node := false; RIGHT_BRACE }
+| "//" [^ '\n']*
+ { token lexbuf }
| [^ ' ' '\t' '\n' '\r' '{' '}' '"' ''' ]+ as s
{ vy_inside_node := true; IDENTIFIER s}
| eof