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

Rust code block comment syntax is not highlited properly #290

Open
dewcked opened this issue Jul 12, 2023 · 0 comments
Open

Rust code block comment syntax is not highlited properly #290

dewcked opened this issue Jul 12, 2023 · 0 comments

Comments

@dewcked
Copy link

dewcked commented Jul 12, 2023

Following block comment:

```rust
     /*
     * This is another type of comment, a block comment. In general,
     * line comments are the recommended comment style. But block comments
     * are extremely useful for temporarily disabling chunks of code.
     * /* Block comments can be /* nested, */ */ so it takes only a few
     * keystrokes to comment out everything in this main() function.
     * /*/*/* Try it yourself! */*/*/
     */
```

is being escaped after the first comment ending delimiter */, opened again at the fourth comment starting delimiter /*, and then closed again, opened again, closed again with broken highlight.

Rust allows nested block comment, so the comment above must be greyed out at all (If delimiter pairs match).

See official doc.

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

No branches or pull requests

1 participant