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

fix: allow spaces inside section branch. #965

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

angelozerr
Copy link
Contributor

@angelozerr angelozerr commented Jul 6, 2024

This PR provides the capability to add any spaces between parameters of section

Ex :

{#let foo    =         "bar"       }
{foo}

will not report error in {foo} because foo can be computed correctly even with extra spaces.

@angelozerr angelozerr added this to the 0.19.0 milestone Jul 6, 2024
@angelozerr angelozerr self-assigned this Jul 6, 2024
@angelozerr angelozerr added the qute label Jul 6, 2024
@angelozerr angelozerr marked this pull request as ready for review July 7, 2024 09:22
@angelozerr angelozerr requested a review from fbricon July 7, 2024 09:23
Comment on lines 98 to 100
//if (!stream.eos() && (stream.peekChar() == ' ' || stream.peekChar() == '=')) {
// state = ScannerState.WithinParameters;
//} else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

delete comment

@fbricon
Copy link
Collaborator

fbricon commented Jul 8, 2024

ok to merge once the nitpicks are addressed

Signed-off-by: azerr <azerr@redhat.com>
@fbricon fbricon merged commit 7b0c9c6 into redhat-developer:master Jul 8, 2024
1 check passed
@fbricon
Copy link
Collaborator

fbricon commented Jul 8, 2024

thanks @angelozerr !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working qute
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants