Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
Rust: Add missing dyn keyword, and add new reserved key word async, a…
Browse files Browse the repository at this point in the history
…wait and try (#590)

* Added Rust missing keyword dyn

* Added Rust new reserved keyword async, await and try
  • Loading branch information
Stargateur authored and mikesamuel committed Apr 5, 2019
1 parent b5fa4d1 commit e14ed1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lang-rust.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ PR['registerLangHandler'](
[PR['PR_TAG'], /^'\w+?\b/],

// Keywords, reserved keywords and primitive types
[PR['PR_KEYWORD'], /^(?:match|if|else|as|break|box|continue|extern|fn|for|in|if|impl|let|loop|pub|return|super|unsafe|where|while|use|mod|trait|struct|enum|type|move|mut|ref|static|const|crate)\b/],
[PR['PR_KEYWORD'], /^(?:alignof|become|do|offsetof|priv|pure|sizeof|typeof|unsized|yield|abstract|virtual|final|override|macro)\b/],
[PR['PR_KEYWORD'], /^(?:match|if|else|as|break|box|continue|extern|fn|for|in|if|impl|dyn|let|loop|pub|return|super|unsafe|where|while|use|mod|trait|struct|enum|type|move|mut|ref|static|const|crate)\b/],
[PR['PR_KEYWORD'], /^(?:alignof|become|do|offsetof|priv|pure|sizeof|typeof|unsized|yield|async|await|try|abstract|virtual|final|override|macro)\b/],
[PR['PR_TYPE'], /^(?:[iu](8|16|32|64|128|size)|char|bool|f32|f64|str|Self)\b/],

// Rust 1.0 prelude items
Expand Down

0 comments on commit e14ed1c

Please sign in to comment.