Skip to content

Commit

Permalink
Adds "tag" as an alternative to "tags".
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Aug 20, 2024
1 parent 33c13a9 commit ed4ee43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ void parse(List<String> lines, File dslFile, boolean include) throws Structurizr
DeploymentNode deploymentNode = getContext(DeploymentNodeDslContext.class).getDeploymentNode();
startContext(new DeploymentNodeDslContext(deploymentNode, group));
registerIdentifier(identifier, group);
} else if (TAGS_TOKEN.equalsIgnoreCase(firstToken) && inContext(ModelItemDslContext.class) && !getContext(ModelItemDslContext.class).hasGroup()) {
} else if ((TAGS_TOKEN.equalsIgnoreCase(firstToken) || TAG_TOKEN.equalsIgnoreCase(firstToken)) && inContext(ModelItemDslContext.class) && !getContext(ModelItemDslContext.class).hasGroup()) {
new ModelItemParser().parseTags(getContext(ModelItemDslContext.class), tokens);

} else if (DESCRIPTION_TOKEN.equalsIgnoreCase(firstToken) && inContext(ModelItemDslContext.class) && getContext(ModelItemDslContext.class).getModelItem() instanceof Element && !getContext(ModelItemDslContext.class).hasGroup()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class StructurizrDslTokens {
static final String TECHNOLOGY_TOKEN = "technology";
static final String INSTANCES_TOKEN = "instances";
static final String TAGS_TOKEN = "tags";
static final String TAG_TOKEN = "tag";
static final String URL_TOKEN = "url";
static final String PROPERTIES_TOKEN = "properties";
static final String PERSPECTIVES_TOKEN = "perspectives";
Expand Down

0 comments on commit ed4ee43

Please sign in to comment.