parse list expressions without extra semicolon

This commit is contained in:
Gokcehan committed 2016-10-15 15:56:53 +03:00
1 parent 692e9116bf
commit cecd3f9904
3 files changed
+16 -4

No files matched your search

+1 -1
View File
@@ -166,13 +166,13 @@ scan:
s.cmd = false
s.sem = true
case s.chr == '\n':
s.next()
if s.sem {
s.typ = TokenSemicolon
s.tok = "\n"
s.sem = false
return true
}
s.next()
if s.nln {
s.typ = TokenSemicolon
s.tok = "\n"