fix(KT-52339): add newlines to SourceMap to calculate multiline comments in a right way.

This commit is contained in:
Artem Kobzar
2022-05-20 13:35:54 +00:00
committed by Space
parent 84ed3ff5b0
commit 8bc5508f5c
4 changed files with 65 additions and 9 deletions
@@ -702,7 +702,10 @@ public class Parser {
break;
}
}
ts.matchToken(TokenStream.SEMI);
if (pn.type != TokenStream.SINGLE_LINE_COMMENT && pn.type != TokenStream.MULTI_LINE_COMMENT) {
ts.matchToken(TokenStream.SEMI);
}
return pn;
}