diff options
| author | Daniil Baturin <daniil@baturin.org> | 2018-09-11 12:59:53 +0200 |
|---|---|---|
| committer | Daniil Baturin <daniil@baturin.org> | 2018-09-11 12:59:53 +0200 |
| commit | 1af50ec84a39ef50c9ec5f17b2a7b4a1ce514b2a (patch) | |
| tree | d26b12a12a62a2e1039c091284c9a87354c58729 /parser | |
| parent | 81f662f716dbc36129957cde5b97284e6e2f4181 (diff) | |
| download | libvyosconfig-1af50ec84a39ef50c9ec5f17b2a7b4a1ce514b2a.tar.gz libvyosconfig-1af50ec84a39ef50c9ec5f17b2a7b4a1ce514b2a.zip | |
Allow all characters except braces, quotes, and whitespace in "identifiers"
(bare strings that can be either node identifiers or leaf node values).
That's required for compatibility with old configs because old configs allow it,
for example, "pre-shared secret f%#$!@*&".
Diffstat (limited to 'parser')
| -rw-r--r-- | parser/vyos1x_lexer.mll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/vyos1x_lexer.mll b/parser/vyos1x_lexer.mll index 1969b91..73bcd83 100644 --- a/parser/vyos1x_lexer.mll +++ b/parser/vyos1x_lexer.mll @@ -66,7 +66,7 @@ rule token = parse { vy_inside_node := false; LEFT_BRACE } | '}' { vy_inside_node := false; RIGHT_BRACE } -| [^ ' ' '\t' '\n' '\r' '{' '}' '[' ']' ';' '#' '"' ''' ]+ as s +| [^ ' ' '\t' '\n' '\r' '{' '}' '"' ''' ]+ as s { vy_inside_node := true; IDENTIFIER s} | eof { EOF } |
