Fix unexpected token type in inline table (#334)

Fixes #321
This commit is contained in:
Allen
2020-03-11 01:39:48 +08:00
committed by GitHub
parent d2d17bccec
commit 3503483c73
2 changed files with 34 additions and 1 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ func (l *tomlLexer) lexLeftCurlyBrace() tomlLexStateFn {
func (l *tomlLexer) lexRightCurlyBrace() tomlLexStateFn {
l.next()
l.emit(tokenRightCurlyBrace)
return l.lexVoid
return l.lexRvalue
}
func (l *tomlLexer) lexDate() tomlLexStateFn {