mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fix dangling bracket and parens eof bugs in config parser
Signed-off-by: Waldemar Quevedo <wally@synadia.com>
This commit is contained in:
@@ -656,6 +656,8 @@ func lexMapKeyStart(lx *lexer) stateFn {
|
||||
case r == dqStringStart:
|
||||
lx.next()
|
||||
return lexSkip(lx, lexMapDubQuotedKey)
|
||||
case r == eof:
|
||||
return lx.errorf("Unexpected EOF processing map.")
|
||||
}
|
||||
lx.ignore()
|
||||
lx.next()
|
||||
@@ -898,6 +900,8 @@ func lexBlock(lx *lexer) stateFn {
|
||||
return lx.pop()
|
||||
}
|
||||
lx.backup()
|
||||
case r == eof:
|
||||
return lx.errorf("Unexpected EOF processing block.")
|
||||
}
|
||||
return lexBlock
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user