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

Foreach in sketch #8141

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
syntax: add temporary 'foreach' keyword.
  • Loading branch information
graydon committed Jul 30, 2013
commit 9a2d183d6ae83a0119f5cce1f95e3770ddf5d689
3 changes: 3 additions & 0 deletions src/libsyntax/parse/token.rs
Original file line number Diff line number Diff line change
@@ -475,6 +475,7 @@ fn mk_fresh_ident_interner() -> @ident_interner {

"be", // 65
"in", // 66
"foreach", // 67
];

@ident_interner {
@@ -571,6 +572,7 @@ pub mod keywords {
False,
Fn,
For,
ForEach,
If,
Impl,
In,
@@ -614,6 +616,7 @@ pub mod keywords {
False => ident { name: 40, ctxt: 0 },
Fn => ident { name: 41, ctxt: 0 },
For => ident { name: 42, ctxt: 0 },
ForEach => ident { name: 67, ctxt: 0 },
If => ident { name: 43, ctxt: 0 },
Impl => ident { name: 44, ctxt: 0 },
In => ident { name: 66, ctxt: 0 },