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

Semantic highlight intradoclinks in documentation #8071

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Mar 17, 2021

Changelog feature highlight Intradoclinks in doc comments

@Veykril
Copy link
Member Author

Veykril commented Mar 17, 2021

Our intradoclink resolution certainly needs some improvement, most links I tried making didn't seem to work, here noop is a macro in the same file so it should be highlight but it isn't.
firefox_7djeQwRgTy
Edit: Ah I see we only implemented parts of it #6168

@Veykril
Copy link
Member Author

Veykril commented Mar 17, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 17, 2021

@bors bors bot merged commit bba474b into rust-lang:master Mar 17, 2021
@Veykril Veykril deleted the hl-idl branch March 17, 2021 20:16
(DOT, "dot"),
(ESCAPE_SEQUENCE, "escapeSequence"),
(FORMAT_SPECIFIER, "formatSpecifier"),
(GENERIC, "generic"),
(CONST_PARAMETER, "constParameter"),
(LIFETIME, "lifetime"),
(INTRA_DOC_LINK, "intraDocLink"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a separate token type here? I think that we might want to set the type to the type of the pointed to item, and set modifier to "doc link". That is, treat links (the part that is a rust path) as small snippets of injected rust code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh that's a nice idea actually

@lnicola
Copy link
Member

lnicola commented Mar 22, 2021

image

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 this pull request may close these issues.

3 participants