Skip to content

'again' keyword #2923

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/etc/vim/syntax/rust.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ endif

syn keyword rustAssert assert
syn match rustAssert "assert\(\w\)*"
syn keyword rustKeyword alt as break
syn keyword rustKeyword check claim cont const copy do drop else export extern fail
syn keyword rustKeyword again alt as break
syn keyword rustKeyword check claim const copy do drop else export extern fail
syn keyword rustKeyword for if impl import in let log
syn keyword rustKeyword loop mod mut new of pure
syn keyword rustKeyword ret self to unchecked
Expand Down
4 changes: 2 additions & 2 deletions src/rustc/middle/check_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn check_crate(tcx: ty::ctxt, crate: @crate) {
}
expr_again {
if !cx.in_loop {
tcx.sess.span_err(e.span, "`cont` outside of loop");
tcx.sess.span_err(e.span, "`again` outside of loop");
}
}
expr_ret(oe) {
Expand All @@ -49,4 +49,4 @@ fn check_crate(tcx: ty::ctxt, crate: @crate) {
}
with *visit::default_visitor()
}));
}
}