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

Wrong comment highlighting in function headers #44

Open
jiribenes opened this issue Jan 10, 2025 · 0 comments · May be fixed by #51
Open

Wrong comment highlighting in function headers #44

jiribenes opened this issue Jan 10, 2025 · 0 comments · May be fixed by #51

Comments

@jiribenes
Copy link
Contributor

Currently, the following code

def replicate[A](n: Int) // n = repeats
  { prog: () => A }: List[A] = <>

renders as
Screenshot 2025-01-10 at 11 34 04

But the comment should be rendered as a comment!

If I had to guess, this is solvable just by rearranging the order in which highlighting rules match.

@jiribenes jiribenes changed the title Fix highlighting involving comments in function headers Wrong comment highlighting in function headers Jan 10, 2025
@JakubSchwenkbeck JakubSchwenkbeck linked a pull request Feb 19, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant