JoinLines: better comments processing

1. Improve the support of other languages in CommentJoinLinesHandler
2. Respect right margin in CommentJoinLinesHandler
3. JoinLineProcessor#convertEndComments: do not convert if only whitespaces are going to be added
4. JoinLineProcessor#adjustWhiteSpace: do not add white-spaces before line-break
Also fixes IDEA-125325 Join lines in custom file type should handle end-of-line comments

GitOrigin-RevId: 392fe2455dcf19d21303a0b42ee85db7f824fa85
This commit is contained in:
Tagir Valeev
2019-08-27 14:21:26 +07:00
committed by intellij-monorepo-bot
parent 83aadefe01
commit 0d75036403
16 changed files with 184 additions and 55 deletions

View File

@@ -0,0 +1,8 @@
class A {
<selection>// foo
</selection>
}