Skip to content

Commit

Permalink
Fixes #346.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Oct 5, 2024
1 parent ff37cc2 commit ba57795
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- structurizr-component: Adds `ImplementationWithSuffixSupportingTypesStrategy`.
- structurizr-dsl: Adds `supportingTypes implementation-prefix <prefix>`.
- structurizr-dsl: Adds `supportingTypes implementation-suffix <suffix>`.
- structurizr-dsl: Fixes https://github.com/structurizr/java/issues/346 (`// comment \` joins lines).

## 3.0.0 (19th September 2024)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ private List<DslLine> preProcessLines(List<String> lines) {
boolean lineComplete = true;

for (String line : lines) {
if (line.endsWith(MULTI_LINE_SEPARATOR)) {
if (!COMMENT_PATTERN.matcher(line).matches() && line.endsWith(MULTI_LINE_SEPARATOR)) {
buf.append(line, 0, line.length()-1);
lineComplete = false;
} else {
Expand Down
1 change: 1 addition & 0 deletions structurizr-dsl/src/test/resources/dsl/test.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ workspace "Name" "Description" {
!impliedRelationships "com.structurizr.model.CreateImpliedRelationshipsUnlessSameRelationshipExistsStrategy"
!impliedRelationships true

// single line comment with long line split character \
properties {
"Name" "Value"
}
Expand Down

0 comments on commit ba57795

Please sign in to comment.