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

Allow delimiters with arbitrary length #820

Merged
merged 1 commit into from
May 31, 2023
Merged

Conversation

Kijewski
Copy link
Collaborator

No description provided.

syntax.comment_end,
] {
if s.len() < 2 {
let msg = format!("Delimiters must be at least two characters long: {s:?}");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style nits: capitalized error messages, and maybe just inline msg here in these branches?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -105,8 +105,8 @@ The following keys can currently be used to customize template syntax:
* `expr_start`, defaults to `{{`
* `expr_end`, defaults to `}}`

Values must be 2 characters long and start delimiters must all start with the same
character. If a key is omitted, the value from the default syntax is used.
Values must be 2 at least characters long.
Copy link
Collaborator

@vallentin vallentin May 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Values must be 2 at least characters long.
Values must be at least 2 characters long.

Phrasing

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, fixed.

@djc djc merged commit fe5d350 into djc:main May 31, 2023
17 checks passed
@Kijewski Kijewski deleted the pr-delim-len branch May 31, 2023 15:38
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.

None yet

3 participants