mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Added import and export parsing for configs
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -594,6 +594,8 @@ func lexMapKeyStart(lx *lexer) stateFn {
|
||||
switch {
|
||||
case isKeySeparator(r):
|
||||
return lx.errorf("Unexpected key separator '%v'.", r)
|
||||
case r == arrayEnd:
|
||||
return lx.errorf("Unexpected array end '%v' processing map.", r)
|
||||
case unicode.IsSpace(r):
|
||||
lx.next()
|
||||
return lexSkip(lx, lexMapKeyStart)
|
||||
|
||||
Reference in New Issue
Block a user