DioxusLabs / DioxusLabs/dioxus

dx fmt eats block comments

Open
#2,751 0 comments 4 reactions 0 assignees View on GitHub
autoformatting bug
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

Currently we have no special handling for block comments in rsx. Only `//` and `///` are supported.

Block comments are particularly tricky since you need to identify the *end* of the block comment which means we now need a block comment parser. This isn't *too* terrible to actually implement but is not that important for the time being.

**Environment:**
- Dioxus version:
- Rust version:
- OS info:
- App platform:

**Questionnaire**

- [ ] I'm interested in fixing this myself but don't know where to start
- [ ] I would like to fix and I have a solution
- [ ] I don't have time to fix this right now, but maybe later

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.