Skip to content

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
(GENERIC, "generic"),
(CONST_PARAMETER, "constParameter"),
(LIFETIME, "lifetime"),
(INTRA_DOC_LINK, "intraDocLink"),
Copy link
Contributor

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