Skip to content

Commit fd3e5fd

Browse files
Merge pull request #755 from nats-io/accounts
[ADDED] Account Support
2 parents d5ceade + dc745f0 commit fd3e5fd

17 files changed

+2152
-124
lines changed

conf/lex.go

+2
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,8 @@ func lexMapKeyStart(lx *lexer) stateFn {
594594
switch {
595595
case isKeySeparator(r):
596596
return lx.errorf("Unexpected key separator '%v'.", r)
597+
case r == arrayEnd:
598+
return lx.errorf("Unexpected array end '%v' processing map.", r)
597599
case unicode.IsSpace(r):
598600
lx.next()
599601
return lexSkip(lx, lexMapKeyStart)

0 commit comments

Comments
 (0)