Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes redundant spaces in single tokens with multiline separators #268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

goto1134
Copy link
Contributor

@goto1134 goto1134 commented Apr 1, 2024

Now cases when a single keyword is split by multiple multiline separators are supported.

work\
 spa\
 ce {
}

Also fixes redundant spaces inside quoted strings. The following code was parsed as "Soft ware System" before.

"Soft\
   ware \
   Sys\
   tem"

BREAKING CHANGE!
The following code produced valid workspace before, because whitespaces in the second line were preserved. Now the first three lines will produce a single token workspace{.

workspace\
 \
  {
}

Now cases when a single keyword is split by multiple multiline separators are supported.
```structurizr
work\
 spa\
 ce {
}
```

Also fixes redundant spaces inside quoted strings. The following code was parsed as `"Soft  ware   System"` before.
```structurizr
"Soft\
   ware \
   Sys\
   tem"
```

BREAKING CHANGE!
The following code produced valid workspace before, because whitespaces in the second line were preserved. Now the first three lines will produce a single token `workspace{`.
```structurizr
workspace\
 \
  {
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant