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

Strip last newline from here documents? #175

Open
Niols opened this issue Jun 18, 2023 · 1 comment
Open

Strip last newline from here documents? #175

Niols opened this issue Jun 18, 2023 · 1 comment

Comments

@Niols
Copy link
Member

Niols commented Jun 18, 2023

Currently, on here documents, Morbig systematically produces a word that ends with a literal containing a newline character. One could however argue that this newline, because it is systematically necessary, does not belong to the content of the here-document but to the syntax of here-documents themselves. I think we should strip it as part of Morbig's parsing.

@yurug
Copy link
Contributor

yurug commented Jun 18, 2023

That makes sense to me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants