typstfmt icon indicating copy to clipboard operation
typstfmt copied to clipboard

Multi Line Comments Drifting Right

Open BattleCh1cken opened this issue 2 years ago • 2 comments

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

Tested on commit 792f08f41d3c081bcc04675100e8a5f615567b3a

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 avatar Dec 21 '23 03:12 BattleCh1cken

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

BattleCh1cken avatar Dec 21 '23 03:12 BattleCh1cken

The comments too??? :sob:

thanks for the report !!

astrale-sharp avatar Dec 21 '23 08:12 astrale-sharp