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

add try keyword to rust highlights #10641

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Conversation

Luv-Ray
Copy link
Contributor

@Luv-Ray Luv-Ray commented Apr 30, 2024

try keyword can be used in nightly rustc after 2018 edition.

#![feature(try_blocks)]

fn main() {
    let res: Option<i32> = try {
        let a = Some(1)?;
        a
    };
    println!("{res:?}");
}

@archseer archseer merged commit 752ed8e into helix-editor:master Apr 30, 2024
6 checks passed
Vulpesx pushed a commit to Vulpesx/helix that referenced this pull request Jun 7, 2024
Chirikumbrah pushed a commit to Chirikumbrah/helix that referenced this pull request Jun 15, 2024
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
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