rust-lang / rust-lang/rust-analyzer
Syntax highlighting for macros
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
Very far-fetch with little logic behind it
Syntax highlighting inside of macros. Something parses the content inside a macro, and theoretically speaking this could be used for syntax highlighting inside of a macro.
For example, take the xflags macro. This crate has its own syntactical sugar inside of the macro, and syntax highlighting for it would be cool. Theoretically, it just has to parse how the macro is defined and send that back to the editor, but it is probably more complex than that.
Not sure how this would work with proc-macros.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by investigating how the xflags macro definition could expose its inner syntax to the editor, including how proc-macros would fit. Done would require a concrete design and implementation path for macro-body syntax highlighting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100