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

Unindent stringifier() in tasks guide #13084

Merged
merged 1 commit into from
Mar 22, 2014
Merged

Unindent stringifier() in tasks guide #13084

merged 1 commit into from
Mar 22, 2014

Conversation

Havvy
Copy link
Contributor

@Havvy Havvy commented Mar 22, 2014

The indentation looks off in the guide because the main() function is not shown, so I'm dedenting the visible function.

bors added a commit that referenced this pull request Mar 22, 2014
The indentation looks off in the guide because the main() function is not shown, so I'm dedenting the visible function.
@bors bors closed this Mar 22, 2014
@bors bors merged commit a73d2c7 into rust-lang:master Mar 22, 2014
JohnTitor pushed a commit to JohnTitor/rust that referenced this pull request Aug 30, 2022
Add some more highlighting configurations

The following can be enabled/disabled now in terms of highlighting:
- doc comment injection (enabled by default)
- punctuation highlighting (disabled by default)
- operator highlighting (enabled by default)
- punctuation specialized highlighting (disabled by default)
- operator specialized highlighting (disabled by default)
- macro call bang highlighting (disabled by default)

This PR also changes our `attribute` semantic token type to the `decorator` type which landed upstream (but not yet in lsp-types).

Specialized highlighting is disabled by default, as all clients will have to ship something to map these back to the standard punctuation/operator token (we do this in VSCode via the inheritance mapping for example). This is a lot of maintenance work, and not something every client wants to do, pushing that need to use the user. As this is a rather niche use in the first place this will just be disabled by default.

Punctuation highlighting is disabled by default, punctuation is usually something that can be done by the native syntactic highlighting of the client, so there is no loss in quality. The main reason for this though is that punctuation adds a lot of extra token data that we sent over, a lot of clients struggle with applying this, so disabling this improves the UX for a lot of people. Note that we still highlight punctuations with special meaning as that special entity, (the never type `!` will still be tagged as a builtin type if it occurs as such)

Separate highlighting of the macro call bang `!` is disabled by default, as I think people actually didn't like that change that much, though at the same time I feel like not many people even noticed that change (I prefer it be separate, but that's not enough reason for it to be enabled by default I believe :^) )

cc rust-lang/rust-analyzer#12783 rust-lang/rust-analyzer#13066
flip1995 pushed a commit to flip1995/rust that referenced this pull request Aug 8, 2024
Misc changes to `clippy_config`

Contains part of rust-lang#13084

Changes include:
* Sort config list and each configs lint list.
* Add default text for the two configs that were missing it.
* Switch the lint list in the configs to an attribute.
* Make `dev fmt` sort the config list.

r? `@xFrednet`

changelog: none
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.

2 participants