diff options
| author | bors <bors@rust-lang.org> | 2013-10-29 10:52:25 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-29 10:52:25 -0700 |
| commit | fed48cc861fd858762c1e9b498675bfa4dee2d38 (patch) | |
| tree | 01c61601be0db74a12ff9504f6eace70add85385 /src/libsyntax/parse/token.rs | |
| parent | 52f42f16387d0142944f376ea31c554c9caa2189 (diff) | |
| parent | 7e77bf17694e31c741fe3a31c7eca5437d9cb6d5 (diff) | |
| download | rust-fed48cc861fd858762c1e9b498675bfa4dee2d38.tar.gz rust-fed48cc861fd858762c1e9b498675bfa4dee2d38.zip | |
auto merge of #10132 : pcwalton/rust/proc, r=pcwalton
the feature gate for `once fn` if used with the `~` sigil. r? @brson
Diffstat (limited to 'src/libsyntax/parse/token.rs')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 27747d94b66..3d8fa1b6728 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -486,14 +486,15 @@ fn mk_fresh_ident_interner() -> @ident_interner { "while", // 62 "in", // 63 "continue", // 64 - - "be", // 65 - "pure", // 66 - "yield", // 67 - "typeof", // 68 - "alignof", // 69 - "offsetof", // 70 - "sizeof", // 71 + "proc", // 65 + + "be", // 66 + "pure", // 67 + "yield", // 68 + "typeof", // 69 + "alignof", // 70 + "offsetof", // 71 + "sizeof", // 72 ]; @interner::StrInterner::prefill(init_vec) @@ -502,9 +503,9 @@ fn mk_fresh_ident_interner() -> @ident_interner { static SELF_KEYWORD_NAME: uint = 8; static STATIC_KEYWORD_NAME: uint = 27; static STRICT_KEYWORD_START: uint = 32; -static STRICT_KEYWORD_FINAL: uint = 64; -static RESERVED_KEYWORD_START: uint = 65; -static RESERVED_KEYWORD_FINAL: uint = 71; +static STRICT_KEYWORD_FINAL: uint = 65; +static RESERVED_KEYWORD_START: uint = 66; +static RESERVED_KEYWORD_FINAL: uint = 72; // if an interner exists in TLS, return it. Otherwise, prepare a // fresh one. @@ -645,6 +646,7 @@ pub mod keywords { Use, While, Continue, + Proc, // Reserved keywords Alignof, @@ -694,14 +696,15 @@ pub mod keywords { Use => Ident { name: 61, ctxt: 0 }, While => Ident { name: 62, ctxt: 0 }, Continue => Ident { name: 64, ctxt: 0 }, - - Alignof => Ident { name: 69, ctxt: 0 }, - Be => Ident { name: 65, ctxt: 0 }, - Offsetof => Ident { name: 70, ctxt: 0 }, - Pure => Ident { name: 66, ctxt: 0 }, - Sizeof => Ident { name: 71, ctxt: 0 }, - Typeof => Ident { name: 68, ctxt: 0 }, - Yield => Ident { name: 67, ctxt: 0 }, + Proc => Ident { name: 65, ctxt: 0 }, + + Alignof => Ident { name: 70, ctxt: 0 }, + Be => Ident { name: 66, ctxt: 0 }, + Offsetof => Ident { name: 71, ctxt: 0 }, + Pure => Ident { name: 67, ctxt: 0 }, + Sizeof => Ident { name: 72, ctxt: 0 }, + Typeof => Ident { name: 69, ctxt: 0 }, + Yield => Ident { name: 68, ctxt: 0 }, } } } |
