Skip to content

Commit

Permalink
Simplify text rendering of feature nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeantessier committed Jan 13, 2025
1 parent 2fdcd9e commit ada55ea
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,7 @@ protected void postprocessFeatureNode(FeatureNode node) {

if (shouldShowFeatureNode(node) || !dependencies.isEmpty()) {
lowerIndent();
if (perl().match("/([^\\.]*\\(.*\\)(: \\S.*)?)$/", node.getName())) {
indent().printScopeNodeName(node, perl().group(1)).eol();
} else if (perl().match("/([^\\.]*)$/", node.getName())) {
indent().printScopeNodeName(node, perl().group(1)).eol();
} else {
indent().printScopeNodeName(node, node.getName().substring(node.getName().lastIndexOf('.') + 1)).eol();
}
indent().printScopeNodeName(node, node.getSimpleName()).eol();
raiseIndent();
}

Expand Down

0 comments on commit ada55ea

Please sign in to comment.