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

typstyle will delete comments after every parameter of function #60

Closed
jjjenkinson opened this issue Apr 30, 2024 · 1 comment · Fixed by #61
Closed

typstyle will delete comments after every parameter of function #60

jjjenkinson opened this issue Apr 30, 2024 · 1 comment · Fixed by #61
Labels
bug Something isn't working

Comments

@jjjenkinson
Copy link

jjjenkinson commented Apr 30, 2024

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

@Enter-tainer Enter-tainer added the bug Something isn't working label Apr 30, 2024
@Enter-tainer
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants