Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Multi Line Comments Drifting Right #138

Open
1 task done
BattleCh1cken opened this issue Dec 21, 2023 · 2 comments
Open
1 task done

Multi Line Comments Drifting Right #138

BattleCh1cken opened this issue Dec 21, 2023 · 2 comments

Comments

@BattleCh1cken
Copy link
Contributor

  • I have tested with the master version of typstfmt and not just typst-lsp

Tested on commit 792f08f

Describe the bug

Formatting a multi line comment that is inside parenthesis makes it move to the right, even if the document has not been changed since the last format.

To Reproduce
Steps to reproduce the behavior:

  1. Start with this code:
#let test_func() = {
(
/*
test
*/
)
  1. Repeatedly format
  2. Watch as the comment goes on a journey to the right side of your screen
#let test_func() = {
  (/*
              test
              */)
}
@BattleCh1cken
Copy link
Contributor Author

This may be related to #136 but I'm unsure.

@astrale-sharp
Copy link
Owner

The comments too??? 😭

thanks for the report !!

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

No branches or pull requests

2 participants