Fixed a problem with implicit keys and properties

This commit is contained in:
Felix Krause 2016-03-10 19:59:56 +01:00
parent 99ece33b8b
commit 491c5f5e3a
1 changed files with 9 additions and 0 deletions

View File

@ -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: