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

cargo doc: Support JSON messages. #334

Merged
merged 1 commit into from
Sep 5, 2018
Merged

cargo doc: Support JSON messages. #334

merged 1 commit into from
Sep 5, 2018

Conversation

ehuss
Copy link

@ehuss ehuss commented Aug 21, 2018

1.30 has added support for JSON messages with rustdoc. This allows the build
command to capture errors and warnings for rustdoc. Previously messages were
only displayed in the build panel (older versions will continue to behave this way).

image

1.30 has added support for JSON messages with rustdoc. This allows the build
command to capture errors and warnings for rustdoc. Previously messages were
forced to the build panel (older versions will continue to behave this way).
@ehuss
Copy link
Author

ehuss commented Sep 5, 2018

bors r+

@bors
Copy link

bors bot commented Sep 5, 2018

Merge conflict (retrying...)

bors bot added a commit that referenced this pull request Sep 5, 2018
334: cargo doc: Support JSON messages. r=ehuss a=ehuss

1.30 has added support for JSON messages with rustdoc. This allows the build
command to capture errors and warnings for rustdoc. Previously messages were
only displayed in the build panel (older versions will continue to behave this way).

<img width="644" alt="image" src="https://user-images.githubusercontent.com/43198/44379176-9e819e80-a4b9-11e8-9c6b-e4c77815cafc.png">


335: Syntax: Fix raw pointers, and index `const` and `static` symbols (for Goto-Symbol). r=ehuss a=ehuss

This changes the scope of the const/static identifier to `entity.name.constant`. Depending on your color scheme, this will likely change the color from the old `constant.other` scope.
I think this better follows the spirit of Sublime's naming conventions.

Also includes changes to support raw pointers.  `*const` and `*mut` is now scoped as `storage.modifier.rust`.  These need to go together because of the keyword `const` interaction.

<img width="836" alt="image" src="https://user-images.githubusercontent.com/43198/44434629-1656d400-a561-11e8-8f1f-fc8191fecccf.png">



Co-authored-by: Eric Huss <eric@huss.org>
@bors
Copy link

bors bot commented Sep 5, 2018

Build succeeded

@bors bors bot merged commit 5e55d2f into rust-lang:master Sep 5, 2018
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.

1 participant