Skip to content

Commit 039ceda

Browse files
committed
---
yaml --- r: 12629 b: refs/heads/master c: 7ee90cc h: refs/heads/master i: 12627: e4b4401 v: v3
1 parent aecca68 commit 039ceda

File tree

3 files changed

+98
-93
lines changed

3 files changed

+98
-93
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5a0c564817508604fcb738e15966f2d279139d8c
2+
refs/heads/master: 7ee90cc7be7b74fd8e63ef79a19844343ad1dd9c
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/librustsyntax/parse/common.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ fn require_keyword(p: parser, word: str) {
5858
}
5959
}
6060

61-
fn is_word(p: parser, word: str) -> bool {
61+
fn is_keyword(p: parser, word: str) -> bool {
6262
require_keyword(p, word);
6363
ret alt p.token {
6464
token::IDENT(sid, false) { str::eq(word, p.get_str(sid)) }
6565
_ { false }
6666
};
6767
}
6868

69-
fn eat_word(p: parser, word: str) -> bool {
69+
fn eat_keyword(p: parser, word: str) -> bool {
7070
require_keyword(p, word);
7171
alt p.token {
7272
token::IDENT(sid, false) {
@@ -79,9 +79,9 @@ fn eat_word(p: parser, word: str) -> bool {
7979
}
8080
}
8181

82-
fn expect_word(p: parser, word: str) {
82+
fn expect_keyword(p: parser, word: str) {
8383
require_keyword(p, word);
84-
if !eat_word(p, word) {
84+
if !eat_keyword(p, word) {
8585
p.fatal("expecting " + word + ", found " +
8686
token_to_str(p.reader, p.token));
8787
}

0 commit comments

Comments
 (0)