mirror of https://github.com/status-im/NimYAML.git
Fixed a problem with implicit keys and properties
This commit is contained in:
parent
99ece33b8b
commit
491c5f5e3a
|
@ -334,6 +334,15 @@ template handlePossibleMapStart() {.dirty.} =
|
|||
if p.lexer.buf[pos] == '\\': pos.inc()
|
||||
pos.inc()
|
||||
if p.lexer.buf[pos] != '"': break
|
||||
of '\'':
|
||||
pos.inc()
|
||||
while p.lexer.buf[pos] notin {'\'', '\l', '\c', EndOfFile}:
|
||||
pos.inc()
|
||||
of '&', '*', '!':
|
||||
pos.inc()
|
||||
while p.lexer.buf[pos] notin {' ', '\t', '\l', '\c', EndOfFile}:
|
||||
pos.inc()
|
||||
continue
|
||||
else: discard
|
||||
pos.inc()
|
||||
if level.indentation == -1:
|
||||
|
|
Loading…
Reference in New Issue