Enter-tainer / typstyle

Beautiful and reliable typst code formatter

Home Page:https://enter-tainer.github.io/typstyle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typstyle will delete comments after every parameter of function

jjjenkinson opened this issue · comments

Typstyle works great. But when writing a long parameter list of a function, we prefer to add comments after every parameter to explain the meaning.
And typstyle will delete the comments. For example:

#let conf(
  title: none, //comments
  authors: (),
  abstract: [],
  lang: "zh",   // language
  doctype: "book",  //comments
  doc  // all comments will be deleted by typstyle
)={doc}

屏幕截图_20240430_194916

#61 will "fix" this by not formatting closure with comments. Correctly handling and formatting comments is harder and is tracked in #15