fix(KT-52339): add newlines to SourceMap to calculate multiline comments in a right way.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user