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

Leading whitespaces after indentation are not parsed correctly #1016

Open
styrix560 opened this issue Apr 13, 2024 · 0 comments · May be fixed by #1023
Open

Leading whitespaces after indentation are not parsed correctly #1016

styrix560 opened this issue Apr 13, 2024 · 0 comments · May be fixed by #1023
Assignees
Labels
P: Compiler: Frontend Package: The compiler frontend T: Fix Type: Bug Fixes

Comments

@styrix560
Copy link
Collaborator

When parsing the string:

"
    foo
"

two of the white-spaces should be flagged as trailing white-space and two should remain with the string. Currently, both are marked as being trailing white-space.

The same error occurs when parsing

  foo
    bar

Here all four white-spaces in front of bar are marked as trailing, while only two of them should be.

@styrix560 styrix560 added T: Fix Type: Bug Fixes P: Compiler: VM Package: The VM executing Candy byte code (LIR) P: Compiler: Frontend Package: The compiler frontend and removed P: Compiler: VM Package: The VM executing Candy byte code (LIR) labels Apr 13, 2024
@styrix560 styrix560 self-assigned this Apr 14, 2024
@styrix560 styrix560 linked a pull request Apr 21, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: Compiler: Frontend Package: The compiler frontend T: Fix Type: Bug Fixes
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant