mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Newlines in strings should be counted; fix #3477
This commit is contained in:
@@ -4069,6 +4069,10 @@ parse_string(parser_state *p)
|
||||
return tSTRING_MID;
|
||||
}
|
||||
}
|
||||
if (c == '\n') {
|
||||
p->lineno++;
|
||||
p->column = 0;
|
||||
}
|
||||
tokadd(p, c);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user