Newlines in strings should be counted; fix #3477

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-03-01 00:05:54 +09:00
parent 1a1f834ade
commit cd0ac59dd3
+4
View File
@@ -4069,6 +4069,10 @@ parse_string(parser_state *p)
return tSTRING_MID;
}
}
if (c == '\n') {
p->lineno++;
p->column = 0;
}
tokadd(p, c);
}