diff options
author | Aleksey Kladov <[email protected]> | 2018-01-08 18:21:59 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-08 18:21:59 +0000 |
commit | f25142c5edc579c7f7030c03c2673db238255bb2 (patch) | |
tree | c652b46e510f11b9c760fb8d94d31231d760c8a5 /tests/data | |
parent | 55027bed0867356a7c84ab2df3d6dcecc45e455d (diff) |
L: true and false are keywords
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/lexer/0011_keywords.rs | 2 | ||||
-rw-r--r-- | tests/data/lexer/0011_keywords.txt | 4 | ||||
-rw-r--r-- | tests/data/parser/ok/0006_inner_attributes.txt | 58 |
3 files changed, 30 insertions, 34 deletions
diff --git a/tests/data/lexer/0011_keywords.rs b/tests/data/lexer/0011_keywords.rs index aa89d70c5..1f4a4a74c 100644 --- a/tests/data/lexer/0011_keywords.rs +++ b/tests/data/lexer/0011_keywords.rs | |||
@@ -1 +1 @@ | |||
fn use struct trait enum impl | fn use struct trait enum impl true false | ||
diff --git a/tests/data/lexer/0011_keywords.txt b/tests/data/lexer/0011_keywords.txt index d90047d1e..eded37084 100644 --- a/tests/data/lexer/0011_keywords.txt +++ b/tests/data/lexer/0011_keywords.txt | |||
@@ -9,4 +9,8 @@ WHITESPACE 1 " " | |||
9 | ENUM_KW 4 "enum" | 9 | ENUM_KW 4 "enum" |
10 | WHITESPACE 1 " " | 10 | WHITESPACE 1 " " |
11 | IMPL_KW 4 "impl" | 11 | IMPL_KW 4 "impl" |
12 | WHITESPACE 1 " " | ||
13 | TRUE_KW 4 "true" | ||
14 | WHITESPACE 1 " " | ||
15 | FALSE_KW 5 "false" | ||
12 | WHITESPACE 1 "\n" | 16 | WHITESPACE 1 "\n" |
diff --git a/tests/data/parser/ok/0006_inner_attributes.txt b/tests/data/parser/ok/0006_inner_attributes.txt index a19d2f49c..5d27a015b 100644 --- a/tests/data/parser/ok/0006_inner_attributes.txt +++ b/tests/data/parser/ok/0006_inner_attributes.txt | |||
@@ -7,52 +7,44 @@ FILE@[0; 236) | |||
7 | IDENT@[3; 7) | 7 | IDENT@[3; 7) |
8 | R_BRACK@[7; 8) | 8 | R_BRACK@[7; 8) |
9 | WHITESPACE@[8; 9) | 9 | WHITESPACE@[8; 9) |
10 | ATTR@[9; 24) | 10 | ATTR@[9; 17) |
11 | POUND@[9; 10) | 11 | POUND@[9; 10) |
12 | EXCL@[10; 11) | 12 | EXCL@[10; 11) |
13 | L_BRACK@[11; 12) | 13 | L_BRACK@[11; 12) |
14 | META_ITEM@[12; 22) | 14 | META_ITEM@[12; 17) |
15 | IDENT@[12; 16) | 15 | IDENT@[12; 16) |
16 | L_PAREN@[16; 17) | 16 | L_PAREN@[16; 17) |
17 | META_ITEM@[17; 21) | 17 | err: `expected R_PAREN` |
18 | IDENT@[17; 21) | 18 | err: `expected R_BRACK` |
19 | R_PAREN@[21; 22) | 19 | ERROR@[17; 236) |
20 | err: `expected item` | ||
21 | TRUE_KW@[17; 21) | ||
22 | R_PAREN@[21; 22) | ||
20 | R_BRACK@[22; 23) | 23 | R_BRACK@[22; 23) |
21 | WHITESPACE@[23; 24) | 24 | WHITESPACE@[23; 24) |
22 | ATTR@[24; 40) | ||
23 | POUND@[24; 25) | 25 | POUND@[24; 25) |
24 | EXCL@[25; 26) | 26 | EXCL@[25; 26) |
25 | L_BRACK@[26; 27) | 27 | L_BRACK@[26; 27) |
26 | META_ITEM@[27; 38) | 28 | IDENT@[27; 31) |
27 | IDENT@[27; 31) | 29 | L_PAREN@[31; 32) |
28 | L_PAREN@[31; 32) | 30 | IDENT@[32; 37) |
29 | META_ITEM@[32; 37) | 31 | R_PAREN@[37; 38) |
30 | IDENT@[32; 37) | ||
31 | R_PAREN@[37; 38) | ||
32 | R_BRACK@[38; 39) | 32 | R_BRACK@[38; 39) |
33 | WHITESPACE@[39; 40) | 33 | WHITESPACE@[39; 40) |
34 | ATTR@[40; 66) | ||
35 | POUND@[40; 41) | 34 | POUND@[40; 41) |
36 | EXCL@[41; 42) | 35 | EXCL@[41; 42) |
37 | L_BRACK@[42; 43) | 36 | L_BRACK@[42; 43) |
38 | META_ITEM@[43; 66) | 37 | IDENT@[43; 47) |
39 | IDENT@[43; 47) | 38 | L_PAREN@[47; 48) |
40 | L_PAREN@[47; 48) | 39 | IDENT@[48; 53) |
41 | META_ITEM@[48; 53) | 40 | COMMA@[53; 54) |
42 | IDENT@[48; 53) | 41 | WHITESPACE@[54; 55) |
43 | COMMA@[53; 54) | 42 | INT_NUMBER@[55; 58) |
44 | WHITESPACE@[54; 55) | 43 | COMMA@[58; 59) |
45 | INT_NUMBER@[55; 58) | 44 | WHITESPACE@[59; 60) |
46 | COMMA@[58; 59) | 45 | TRUE_KW@[60; 64) |
47 | META_ITEM@[59; 64) | 46 | COMMA@[64; 65) |
48 | WHITESPACE@[59; 60) | 47 | WHITESPACE@[65; 66) |
49 | IDENT@[60; 64) | ||
50 | COMMA@[64; 65) | ||
51 | err: `expected R_PAREN` | ||
52 | WHITESPACE@[65; 66) | ||
53 | err: `expected R_BRACK` | ||
54 | ERROR@[66; 236) | ||
55 | err: `expected item` | ||
56 | STRING@[66; 72) | 48 | STRING@[66; 72) |
57 | COMMA@[72; 73) | 49 | COMMA@[72; 73) |
58 | WHITESPACE@[73; 74) | 50 | WHITESPACE@[73; 74) |
@@ -95,7 +87,7 @@ FILE@[0; 236) | |||
95 | WHITESPACE@[146; 147) | 87 | WHITESPACE@[146; 147) |
96 | EQ@[147; 148) | 88 | EQ@[147; 148) |
97 | WHITESPACE@[148; 149) | 89 | WHITESPACE@[148; 149) |
98 | IDENT@[149; 153) | 90 | TRUE_KW@[149; 153) |
99 | R_PAREN@[153; 154) | 91 | R_PAREN@[153; 154) |
100 | R_BRACK@[154; 155) | 92 | R_BRACK@[154; 155) |
101 | WHITESPACE@[155; 156) | 93 | WHITESPACE@[155; 156) |
@@ -104,7 +96,7 @@ FILE@[0; 236) | |||
104 | L_BRACK@[158; 159) | 96 | L_BRACK@[158; 159) |
105 | IDENT@[159; 166) | 97 | IDENT@[159; 166) |
106 | L_PAREN@[166; 167) | 98 | L_PAREN@[166; 167) |
107 | IDENT@[167; 171) | 99 | TRUE_KW@[167; 171) |
108 | R_PAREN@[171; 172) | 100 | R_PAREN@[171; 172) |
109 | R_BRACK@[172; 173) | 101 | R_BRACK@[172; 173) |
110 | WHITESPACE@[173; 174) | 102 | WHITESPACE@[173; 174) |