-
Notifications
You must be signed in to change notification settings - Fork 300
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 new keywords #282
Add new keywords #282
Conversation
* `async` from rust-lang/rfcs#2394; * `existential` from rust-lang/rfcs#2071.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
cc @da-x |
Hi,
|
Hi, @da-x!
I didn't know this was a thing. I searched for places where " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could treat existential
like union
(which is also a weak keyword) and add a match
line that only highlights it if it is followed by a typedef such that the following works.
existential type Adder: Fn(usize) -> usize; // highlighted
let existential = 42; // not highlighted
Feel free to use #284 as inspiration 😄
Thanks @dlrobertson who let me use his PR rust-lang#284!
Thanks @dlrobertson! I was thinking to learn more vimscript on this weekend to understand advanced concepts involved in |
Thanks! |
* remotes/original/master: (423 commits) Use 'setfiletype' to avoid load 'ftplugin/rust.vim' twice (rust-lang#301) avoid setting `isfname` allow 'pub use' Set `include` and improve `includeexpr` Revert "BufWritePre should be <buffer>" Recognize edition2015 and edition2018 doc test specifiers Revert "RustTest: specify module name to run exact one test case" RustTest: specify module name to run exact one test case RustTest: use :terminal for running tests ftplugin/rust.vim: Better to narrow augroup scope rustfmt: remove incorrect version check rustfmt: simplify regex tests Improve 'async' contextual keyword highlighting (rust-lang#290) RustFmt: fix non-existant temp file Add new keywords (rust-lang#282) Add SyntasticInfo if exists to the output of RustInfo Check that Syntastic is new enough Update rust.txt Add `cargo#guessrun` function & `Cgrun` command Fix RunRustfmt() for Vim 7.x ...
async
from async/await notation for ergonomic asynchronous IO rfcs#2394;existential
from Named existentials and impl Trait variable declarations rfcs#2071.