Skip to content

Commit

Permalink
fixes #83
Browse files Browse the repository at this point in the history
  • Loading branch information
flyx committed Jul 5, 2020
1 parent 048183d commit 060fc07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions yaml/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import taglib, stream, private/lex, private/internal

when defined(nimNoNil):
{.experimental: "notnil".}

type
WarningCallback* = proc(line, column: int, lineContent: string,
message: string)
Expand Down Expand Up @@ -946,8 +946,10 @@ parserState flow:
result = true
state = objectEnd
stored = flowAfterObject
of ltEmptyLine:
c.advance()
else:
raise c.generateError("Unexpected toked: " & $c.lex.cur)
raise c.generateError("Unexpected token: " & $c.lex.cur)

parserState leaveFlowMap:
case c.level.kind
Expand Down
2 changes: 1 addition & 1 deletion yaml/stream.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import private/internal, taglib

when defined(nimNoNil):
{.experimental: "notnil".}

when defined(yamlScalarRepInd):
type ScalarRepresentationIndicator* = enum
srPlain, srSingleQuoted, srDoubleQuoted, srLiteral, srFolded
Expand Down

0 comments on commit 060fc07

Please sign in to comment.