Skip to content
Permalink
Browse files
Newlines in strings should be counted; fix #3477
  • Loading branch information
matz committed Feb 28, 2017
1 parent 1a1f834 commit cd0ac59dd36fc515e3667ab462fe8c4424b5928a
Showing 1 changed file with 4 additions and 0 deletions.
@@ -4069,6 +4069,10 @@ parse_string(parser_state *p)
return tSTRING_MID;
}
}
if (c == '\n') {
p->lineno++;
p->column = 0;
}
tokadd(p, c);
}

0 comments on commit cd0ac59

Please sign in to comment.