mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[properties] IDEA-248873 - Cannot programmatically add comments to properties file
This patch changes the check if the left node is a comment with simple equality Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com> GitOrigin-RevId: 79d6250e1facfc0c25ad277b49f45d9dde7f027f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f600f9cdfb
commit
4892dae6ca
+3
-1
@@ -60,7 +60,9 @@ public class PropertiesParserDefinition implements ParserDefinition {
|
||||
|
||||
@Override
|
||||
public SpaceRequirements spaceExistenceTypeBetweenTokens(ASTNode left, ASTNode right) {
|
||||
if (PropertiesTokenTypes.COMMENTS.contains(left.getElementType())) return SpaceRequirements.MUST_LINE_BREAK;
|
||||
if (left.getElementType() == PropertiesTokenTypes.END_OF_LINE_COMMENT) {
|
||||
return SpaceRequirements.MUST_LINE_BREAK;
|
||||
}
|
||||
return SpaceRequirements.MAY;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user