diff options
author | John Estabrook <jestabro@sentrium.io> | 2019-05-30 14:07:40 -0500 |
---|---|---|
committer | John Estabrook <jestabro@sentrium.io> | 2019-05-30 14:07:40 -0500 |
commit | ea9bee4c9e0a12947027bb83a6bf493cdf1ed1ed (patch) | |
tree | de8a2d2374cfaf533eb242f9b730bd90e9c793ab | |
parent | 9a80a5d3c652746f5e51d38aea1cf49f8a1949e4 (diff) | |
download | libvyosconfig-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.mll | 2 |
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 |