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

Syntax: Recover on bad enum syntax. #419

Merged
merged 1 commit into from
Dec 13, 2019

Conversation

ehuss
Copy link

@ehuss ehuss commented Dec 13, 2019

Break out of highlighting an enum definition when there is invalid syntax. This often happens with things like serde's forward_to_deserialize_any, it would get confused for many lines following.

    serde::forward_to_deserialize_any! {
        f32 f64 char str bytes
        byte_buf unit unit_struct
        enum identifier ignored_any newtype_struct
    }

@ehuss ehuss merged commit be113dd into rust-lang:master Dec 13, 2019
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