diff options
author | Aleksey Kladov <[email protected]> | 2019-07-22 15:47:33 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-22 15:47:33 +0100 |
commit | 75761c0e47d8c20a490a3d61ea64d2413d3c3570 (patch) | |
tree | 52f8c89145a952ab25e51b7658ec17441b33607a /crates/ra_syntax/tests/data/lexer | |
parent | d690249bc81bc265cb3d1836c2922325f4fdb8af (diff) |
add rustc_lexer
Diffstat (limited to 'crates/ra_syntax/tests/data/lexer')
-rw-r--r-- | crates/ra_syntax/tests/data/lexer/0004_numbers.txt | 12 | ||||
-rw-r--r-- | crates/ra_syntax/tests/data/lexer/0014_unclosed_char.txt | 2 |
2 files changed, 6 insertions, 8 deletions
diff --git a/crates/ra_syntax/tests/data/lexer/0004_numbers.txt b/crates/ra_syntax/tests/data/lexer/0004_numbers.txt index 39988aedc..7bb89b8ae 100644 --- a/crates/ra_syntax/tests/data/lexer/0004_numbers.txt +++ b/crates/ra_syntax/tests/data/lexer/0004_numbers.txt | |||
@@ -12,9 +12,9 @@ INT_NUMBER 2 "0_" | |||
12 | WHITESPACE 1 " " | 12 | WHITESPACE 1 " " |
13 | FLOAT_NUMBER 2 "0." | 13 | FLOAT_NUMBER 2 "0." |
14 | WHITESPACE 1 " " | 14 | WHITESPACE 1 " " |
15 | INT_NUMBER 2 "0e" | 15 | FLOAT_NUMBER 2 "0e" |
16 | WHITESPACE 1 " " | 16 | WHITESPACE 1 " " |
17 | INT_NUMBER 2 "0E" | 17 | FLOAT_NUMBER 2 "0E" |
18 | WHITESPACE 1 " " | 18 | WHITESPACE 1 " " |
19 | INT_NUMBER 2 "0z" | 19 | INT_NUMBER 2 "0z" |
20 | WHITESPACE 1 "\n" | 20 | WHITESPACE 1 "\n" |
@@ -32,9 +32,9 @@ INT_NUMBER 6 "0_1279" | |||
32 | WHITESPACE 1 " " | 32 | WHITESPACE 1 " " |
33 | FLOAT_NUMBER 6 "0.1279" | 33 | FLOAT_NUMBER 6 "0.1279" |
34 | WHITESPACE 1 " " | 34 | WHITESPACE 1 " " |
35 | INT_NUMBER 6 "0e1279" | 35 | FLOAT_NUMBER 6 "0e1279" |
36 | WHITESPACE 1 " " | 36 | WHITESPACE 1 " " |
37 | INT_NUMBER 6 "0E1279" | 37 | FLOAT_NUMBER 6 "0E1279" |
38 | WHITESPACE 1 "\n" | 38 | WHITESPACE 1 "\n" |
39 | INT_NUMBER 1 "0" | 39 | INT_NUMBER 1 "0" |
40 | DOT 1 "." | 40 | DOT 1 "." |
@@ -47,9 +47,7 @@ IDENT 3 "foo" | |||
47 | L_PAREN 1 "(" | 47 | L_PAREN 1 "(" |
48 | R_PAREN 1 ")" | 48 | R_PAREN 1 ")" |
49 | WHITESPACE 1 "\n" | 49 | WHITESPACE 1 "\n" |
50 | INT_NUMBER 2 "0e" | 50 | FLOAT_NUMBER 4 "0e+1" |
51 | PLUS 1 "+" | ||
52 | INT_NUMBER 1 "1" | ||
53 | WHITESPACE 1 "\n" | 51 | WHITESPACE 1 "\n" |
54 | INT_NUMBER 1 "0" | 52 | INT_NUMBER 1 "0" |
55 | DOT 1 "." | 53 | DOT 1 "." |
diff --git a/crates/ra_syntax/tests/data/lexer/0014_unclosed_char.txt b/crates/ra_syntax/tests/data/lexer/0014_unclosed_char.txt index 812dfbc18..737a300ee 100644 --- a/crates/ra_syntax/tests/data/lexer/0014_unclosed_char.txt +++ b/crates/ra_syntax/tests/data/lexer/0014_unclosed_char.txt | |||
@@ -1 +1 @@ | |||
CHAR 2 "\'1" | LIFETIME 2 "\'1" | ||