diff options
author | Dmitry <[email protected]> | 2020-08-14 19:32:05 +0100 |
---|---|---|
committer | Dmitry <[email protected]> | 2020-08-14 19:32:05 +0100 |
commit | 178c3e135a2a249692f7784712492e7884ae0c00 (patch) | |
tree | ac6b769dbf7162150caa0c1624786a4dd79ff3be /crates/syntax/test_data/lexer/ok | |
parent | 06ff8e6c760ff05f10e868b5d1f9d79e42fbb49c (diff) | |
parent | c2594daf2974dbd4ce3d9b7ec72481764abaceb5 (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'crates/syntax/test_data/lexer/ok')
28 files changed, 361 insertions, 0 deletions
diff --git a/crates/syntax/test_data/lexer/ok/0001_hello.rs b/crates/syntax/test_data/lexer/ok/0001_hello.rs new file mode 100644 index 000000000..95d09f2b1 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0001_hello.rs | |||
@@ -0,0 +1 @@ | |||
hello world \ No newline at end of file | |||
diff --git a/crates/syntax/test_data/lexer/ok/0001_hello.txt b/crates/syntax/test_data/lexer/ok/0001_hello.txt new file mode 100644 index 000000000..27a5940a9 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0001_hello.txt | |||
@@ -0,0 +1,3 @@ | |||
1 | IDENT 5 "hello" | ||
2 | WHITESPACE 1 " " | ||
3 | IDENT 5 "world" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0002_whitespace.rs b/crates/syntax/test_data/lexer/ok/0002_whitespace.rs new file mode 100644 index 000000000..08fce1418 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0002_whitespace.rs | |||
@@ -0,0 +1,4 @@ | |||
1 | a b c | ||
2 | d | ||
3 | |||
4 | e f | ||
diff --git a/crates/syntax/test_data/lexer/ok/0002_whitespace.txt b/crates/syntax/test_data/lexer/ok/0002_whitespace.txt new file mode 100644 index 000000000..01d260918 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0002_whitespace.txt | |||
@@ -0,0 +1,12 @@ | |||
1 | IDENT 1 "a" | ||
2 | WHITESPACE 1 " " | ||
3 | IDENT 1 "b" | ||
4 | WHITESPACE 2 " " | ||
5 | IDENT 1 "c" | ||
6 | WHITESPACE 1 "\n" | ||
7 | IDENT 1 "d" | ||
8 | WHITESPACE 2 "\n\n" | ||
9 | IDENT 1 "e" | ||
10 | WHITESPACE 1 "\t" | ||
11 | IDENT 1 "f" | ||
12 | WHITESPACE 1 "\n" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0003_ident.rs b/crates/syntax/test_data/lexer/ok/0003_ident.rs new file mode 100644 index 000000000..c05c9c009 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0003_ident.rs | |||
@@ -0,0 +1 @@ | |||
foo foo_ _foo _ __ x привет | |||
diff --git a/crates/syntax/test_data/lexer/ok/0003_ident.txt b/crates/syntax/test_data/lexer/ok/0003_ident.txt new file mode 100644 index 000000000..4a0d5c053 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0003_ident.txt | |||
@@ -0,0 +1,14 @@ | |||
1 | IDENT 3 "foo" | ||
2 | WHITESPACE 1 " " | ||
3 | IDENT 4 "foo_" | ||
4 | WHITESPACE 1 " " | ||
5 | IDENT 4 "_foo" | ||
6 | WHITESPACE 1 " " | ||
7 | UNDERSCORE 1 "_" | ||
8 | WHITESPACE 1 " " | ||
9 | IDENT 2 "__" | ||
10 | WHITESPACE 1 " " | ||
11 | IDENT 1 "x" | ||
12 | WHITESPACE 1 " " | ||
13 | IDENT 12 "привет" | ||
14 | WHITESPACE 1 "\n" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0004_numbers.rs b/crates/syntax/test_data/lexer/ok/0004_numbers.rs new file mode 100644 index 000000000..bc761c235 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0004_numbers.rs | |||
@@ -0,0 +1,9 @@ | |||
1 | 0 00 0_ 0. 0z | ||
2 | 01790 0b1790 0o1790 0x1790aAbBcCdDeEfF 001279 0_1279 0.1279 0e1279 0E1279 | ||
3 | 0..2 | ||
4 | 0.foo() | ||
5 | 0e+1 | ||
6 | 0.e+1 | ||
7 | 0.0E-2 | ||
8 | 0___0.10000____0000e+111__ | ||
9 | 1i64 92.0f32 11__s | ||
diff --git a/crates/syntax/test_data/lexer/ok/0004_numbers.txt b/crates/syntax/test_data/lexer/ok/0004_numbers.txt new file mode 100644 index 000000000..e19fc5789 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0004_numbers.txt | |||
@@ -0,0 +1,57 @@ | |||
1 | INT_NUMBER 1 "0" | ||
2 | WHITESPACE 1 " " | ||
3 | INT_NUMBER 2 "00" | ||
4 | WHITESPACE 1 " " | ||
5 | INT_NUMBER 2 "0_" | ||
6 | WHITESPACE 1 " " | ||
7 | FLOAT_NUMBER 2 "0." | ||
8 | WHITESPACE 1 " " | ||
9 | INT_NUMBER 2 "0z" | ||
10 | WHITESPACE 1 "\n" | ||
11 | INT_NUMBER 5 "01790" | ||
12 | WHITESPACE 1 " " | ||
13 | INT_NUMBER 6 "0b1790" | ||
14 | WHITESPACE 1 " " | ||
15 | INT_NUMBER 6 "0o1790" | ||
16 | WHITESPACE 1 " " | ||
17 | INT_NUMBER 18 "0x1790aAbBcCdDeEfF" | ||
18 | WHITESPACE 1 " " | ||
19 | INT_NUMBER 6 "001279" | ||
20 | WHITESPACE 1 " " | ||
21 | INT_NUMBER 6 "0_1279" | ||
22 | WHITESPACE 1 " " | ||
23 | FLOAT_NUMBER 6 "0.1279" | ||
24 | WHITESPACE 1 " " | ||
25 | FLOAT_NUMBER 6 "0e1279" | ||
26 | WHITESPACE 1 " " | ||
27 | FLOAT_NUMBER 6 "0E1279" | ||
28 | WHITESPACE 1 "\n" | ||
29 | INT_NUMBER 1 "0" | ||
30 | DOT 1 "." | ||
31 | DOT 1 "." | ||
32 | INT_NUMBER 1 "2" | ||
33 | WHITESPACE 1 "\n" | ||
34 | INT_NUMBER 1 "0" | ||
35 | DOT 1 "." | ||
36 | IDENT 3 "foo" | ||
37 | L_PAREN 1 "(" | ||
38 | R_PAREN 1 ")" | ||
39 | WHITESPACE 1 "\n" | ||
40 | FLOAT_NUMBER 4 "0e+1" | ||
41 | WHITESPACE 1 "\n" | ||
42 | INT_NUMBER 1 "0" | ||
43 | DOT 1 "." | ||
44 | IDENT 1 "e" | ||
45 | PLUS 1 "+" | ||
46 | INT_NUMBER 1 "1" | ||
47 | WHITESPACE 1 "\n" | ||
48 | FLOAT_NUMBER 6 "0.0E-2" | ||
49 | WHITESPACE 1 "\n" | ||
50 | FLOAT_NUMBER 26 "0___0.10000____0000e+111__" | ||
51 | WHITESPACE 1 "\n" | ||
52 | INT_NUMBER 4 "1i64" | ||
53 | WHITESPACE 1 " " | ||
54 | FLOAT_NUMBER 7 "92.0f32" | ||
55 | WHITESPACE 1 " " | ||
56 | INT_NUMBER 5 "11__s" | ||
57 | WHITESPACE 1 "\n" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0005_symbols.rs b/crates/syntax/test_data/lexer/ok/0005_symbols.rs new file mode 100644 index 000000000..487569b5a --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0005_symbols.rs | |||
@@ -0,0 +1,6 @@ | |||
1 | ; , ( ) { } [ ] < > @ # ~ ? $ & | + * / ^ % | ||
2 | . .. ... ..= | ||
3 | : :: | ||
4 | = => | ||
5 | ! != | ||
6 | - -> | ||
diff --git a/crates/syntax/test_data/lexer/ok/0005_symbols.txt b/crates/syntax/test_data/lexer/ok/0005_symbols.txt new file mode 100644 index 000000000..2049c2f1d --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0005_symbols.txt | |||
@@ -0,0 +1,77 @@ | |||
1 | SEMICOLON 1 ";" | ||
2 | WHITESPACE 1 " " | ||
3 | COMMA 1 "," | ||
4 | WHITESPACE 1 " " | ||
5 | L_PAREN 1 "(" | ||
6 | WHITESPACE 1 " " | ||
7 | R_PAREN 1 ")" | ||
8 | WHITESPACE 1 " " | ||
9 | L_CURLY 1 "{" | ||
10 | WHITESPACE 1 " " | ||
11 | R_CURLY 1 "}" | ||
12 | WHITESPACE 1 " " | ||
13 | L_BRACK 1 "[" | ||
14 | WHITESPACE 1 " " | ||
15 | R_BRACK 1 "]" | ||
16 | WHITESPACE 1 " " | ||
17 | L_ANGLE 1 "<" | ||
18 | WHITESPACE 1 " " | ||
19 | R_ANGLE 1 ">" | ||
20 | WHITESPACE 1 " " | ||
21 | AT 1 "@" | ||
22 | WHITESPACE 1 " " | ||
23 | POUND 1 "#" | ||
24 | WHITESPACE 1 " " | ||
25 | TILDE 1 "~" | ||
26 | WHITESPACE 1 " " | ||
27 | QUESTION 1 "?" | ||
28 | WHITESPACE 1 " " | ||
29 | DOLLAR 1 "$" | ||
30 | WHITESPACE 1 " " | ||
31 | AMP 1 "&" | ||
32 | WHITESPACE 1 " " | ||
33 | PIPE 1 "|" | ||
34 | WHITESPACE 1 " " | ||
35 | PLUS 1 "+" | ||
36 | WHITESPACE 1 " " | ||
37 | STAR 1 "*" | ||
38 | WHITESPACE 1 " " | ||
39 | SLASH 1 "/" | ||
40 | WHITESPACE 1 " " | ||
41 | CARET 1 "^" | ||
42 | WHITESPACE 1 " " | ||
43 | PERCENT 1 "%" | ||
44 | WHITESPACE 1 "\n" | ||
45 | DOT 1 "." | ||
46 | WHITESPACE 1 " " | ||
47 | DOT 1 "." | ||
48 | DOT 1 "." | ||
49 | WHITESPACE 1 " " | ||
50 | DOT 1 "." | ||
51 | DOT 1 "." | ||
52 | DOT 1 "." | ||
53 | WHITESPACE 1 " " | ||
54 | DOT 1 "." | ||
55 | DOT 1 "." | ||
56 | EQ 1 "=" | ||
57 | WHITESPACE 1 "\n" | ||
58 | COLON 1 ":" | ||
59 | WHITESPACE 1 " " | ||
60 | COLON 1 ":" | ||
61 | COLON 1 ":" | ||
62 | WHITESPACE 1 "\n" | ||
63 | EQ 1 "=" | ||
64 | WHITESPACE 1 " " | ||
65 | EQ 1 "=" | ||
66 | R_ANGLE 1 ">" | ||
67 | WHITESPACE 1 "\n" | ||
68 | BANG 1 "!" | ||
69 | WHITESPACE 1 " " | ||
70 | BANG 1 "!" | ||
71 | EQ 1 "=" | ||
72 | WHITESPACE 1 "\n" | ||
73 | MINUS 1 "-" | ||
74 | WHITESPACE 1 " " | ||
75 | MINUS 1 "-" | ||
76 | R_ANGLE 1 ">" | ||
77 | WHITESPACE 1 "\n" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0006_chars.rs b/crates/syntax/test_data/lexer/ok/0006_chars.rs new file mode 100644 index 000000000..454ee0a5f --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0006_chars.rs | |||
@@ -0,0 +1 @@ | |||
'x' ' ' '0' 'hello' '\x7f' '\n' '\\' '\'' | |||
diff --git a/crates/syntax/test_data/lexer/ok/0006_chars.txt b/crates/syntax/test_data/lexer/ok/0006_chars.txt new file mode 100644 index 000000000..950954fbc --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0006_chars.txt | |||
@@ -0,0 +1,16 @@ | |||
1 | CHAR 3 "\'x\'" | ||
2 | WHITESPACE 1 " " | ||
3 | CHAR 3 "\' \'" | ||
4 | WHITESPACE 1 " " | ||
5 | CHAR 3 "\'0\'" | ||
6 | WHITESPACE 1 " " | ||
7 | CHAR 7 "\'hello\'" | ||
8 | WHITESPACE 1 " " | ||
9 | CHAR 6 "\'\\x7f\'" | ||
10 | WHITESPACE 1 " " | ||
11 | CHAR 4 "\'\\n\'" | ||
12 | WHITESPACE 1 " " | ||
13 | CHAR 4 "\'\\\\\'" | ||
14 | WHITESPACE 1 " " | ||
15 | CHAR 4 "\'\\\'\'" | ||
16 | WHITESPACE 1 "\n" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0007_lifetimes.rs b/crates/syntax/test_data/lexer/ok/0007_lifetimes.rs new file mode 100644 index 000000000..b764f1dce --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0007_lifetimes.rs | |||
@@ -0,0 +1 @@ | |||
'a 'foo 'foo_bar_baz '_ | |||
diff --git a/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt b/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt new file mode 100644 index 000000000..005c29100 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt | |||
@@ -0,0 +1,8 @@ | |||
1 | LIFETIME 2 "\'a" | ||
2 | WHITESPACE 1 " " | ||
3 | LIFETIME 4 "\'foo" | ||
4 | WHITESPACE 1 " " | ||
5 | LIFETIME 12 "\'foo_bar_baz" | ||
6 | WHITESPACE 1 " " | ||
7 | LIFETIME 2 "\'_" | ||
8 | WHITESPACE 1 "\n" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0008_byte_strings.rs b/crates/syntax/test_data/lexer/ok/0008_byte_strings.rs new file mode 100644 index 000000000..b54930f5e --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0008_byte_strings.rs | |||
@@ -0,0 +1,3 @@ | |||
1 | b'' b'x' b"foo" br"" | ||
2 | b''suf b""ix br""br | ||
3 | b'\n' b'\\' b'\'' b'hello' | ||
diff --git a/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt b/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt new file mode 100644 index 000000000..bc03b51a8 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt | |||
@@ -0,0 +1,22 @@ | |||
1 | BYTE 3 "b\'\'" | ||
2 | WHITESPACE 1 " " | ||
3 | BYTE 4 "b\'x\'" | ||
4 | WHITESPACE 1 " " | ||
5 | BYTE_STRING 6 "b\"foo\"" | ||
6 | WHITESPACE 1 " " | ||
7 | RAW_BYTE_STRING 4 "br\"\"" | ||
8 | WHITESPACE 1 "\n" | ||
9 | BYTE 6 "b\'\'suf" | ||
10 | WHITESPACE 1 " " | ||
11 | BYTE_STRING 5 "b\"\"ix" | ||
12 | WHITESPACE 1 " " | ||
13 | RAW_BYTE_STRING 6 "br\"\"br" | ||
14 | WHITESPACE 1 "\n" | ||
15 | BYTE 5 "b\'\\n\'" | ||
16 | WHITESPACE 1 " " | ||
17 | BYTE 5 "b\'\\\\\'" | ||
18 | WHITESPACE 1 " " | ||
19 | BYTE 5 "b\'\\\'\'" | ||
20 | WHITESPACE 1 " " | ||
21 | BYTE 8 "b\'hello\'" | ||
22 | WHITESPACE 1 "\n" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0009_strings.rs b/crates/syntax/test_data/lexer/ok/0009_strings.rs new file mode 100644 index 000000000..4ddb5bffc --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0009_strings.rs | |||
@@ -0,0 +1,2 @@ | |||
1 | "hello" r"world" "\n\"\\no escape" "multi | ||
2 | line" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0009_strings.txt b/crates/syntax/test_data/lexer/ok/0009_strings.txt new file mode 100644 index 000000000..4cb4d711d --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0009_strings.txt | |||
@@ -0,0 +1,8 @@ | |||
1 | STRING 7 "\"hello\"" | ||
2 | WHITESPACE 1 " " | ||
3 | RAW_STRING 8 "r\"world\"" | ||
4 | WHITESPACE 1 " " | ||
5 | STRING 17 "\"\\n\\\"\\\\no escape\"" | ||
6 | WHITESPACE 1 " " | ||
7 | STRING 12 "\"multi\nline\"" | ||
8 | WHITESPACE 1 "\n" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0010_single_line_comments.rs b/crates/syntax/test_data/lexer/ok/0010_single_line_comments.rs new file mode 100644 index 000000000..4b6653f9c --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0010_single_line_comments.rs | |||
@@ -0,0 +1,12 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | // hello | ||
3 | //! World | ||
4 | //!! Inner line doc | ||
5 | /// Outer line doc | ||
6 | //// Just a comment | ||
7 | |||
8 | // | ||
9 | //! | ||
10 | //!! | ||
11 | /// | ||
12 | //// | ||
diff --git a/crates/syntax/test_data/lexer/ok/0010_single_line_comments.txt b/crates/syntax/test_data/lexer/ok/0010_single_line_comments.txt new file mode 100644 index 000000000..98a3818c0 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0010_single_line_comments.txt | |||
@@ -0,0 +1,22 @@ | |||
1 | SHEBANG 19 "#!/usr/bin/env bash" | ||
2 | WHITESPACE 1 "\n" | ||
3 | COMMENT 8 "// hello" | ||
4 | WHITESPACE 1 "\n" | ||
5 | COMMENT 9 "//! World" | ||
6 | WHITESPACE 1 "\n" | ||
7 | COMMENT 19 "//!! Inner line doc" | ||
8 | WHITESPACE 1 "\n" | ||
9 | COMMENT 18 "/// Outer line doc" | ||
10 | WHITESPACE 1 "\n" | ||
11 | COMMENT 19 "//// Just a comment" | ||
12 | WHITESPACE 2 "\n\n" | ||
13 | COMMENT 2 "//" | ||
14 | WHITESPACE 1 "\n" | ||
15 | COMMENT 3 "//!" | ||
16 | WHITESPACE 1 "\n" | ||
17 | COMMENT 4 "//!!" | ||
18 | WHITESPACE 1 "\n" | ||
19 | COMMENT 3 "///" | ||
20 | WHITESPACE 1 "\n" | ||
21 | COMMENT 4 "////" | ||
22 | WHITESPACE 1 "\n" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0011_keywords.rs b/crates/syntax/test_data/lexer/ok/0011_keywords.rs new file mode 100644 index 000000000..1e91bff4e --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0011_keywords.rs | |||
@@ -0,0 +1,3 @@ | |||
1 | async fn use struct trait enum impl true false as extern crate | ||
2 | mod pub self super in where for loop while if match const | ||
3 | static mut type ref let else move return | ||
diff --git a/crates/syntax/test_data/lexer/ok/0011_keywords.txt b/crates/syntax/test_data/lexer/ok/0011_keywords.txt new file mode 100644 index 000000000..22c00eefb --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0011_keywords.txt | |||
@@ -0,0 +1,64 @@ | |||
1 | ASYNC_KW 5 "async" | ||
2 | WHITESPACE 1 " " | ||
3 | FN_KW 2 "fn" | ||
4 | WHITESPACE 1 " " | ||
5 | USE_KW 3 "use" | ||
6 | WHITESPACE 1 " " | ||
7 | STRUCT_KW 6 "struct" | ||
8 | WHITESPACE 1 " " | ||
9 | TRAIT_KW 5 "trait" | ||
10 | WHITESPACE 1 " " | ||
11 | ENUM_KW 4 "enum" | ||
12 | WHITESPACE 1 " " | ||
13 | IMPL_KW 4 "impl" | ||
14 | WHITESPACE 1 " " | ||
15 | TRUE_KW 4 "true" | ||
16 | WHITESPACE 1 " " | ||
17 | FALSE_KW 5 "false" | ||
18 | WHITESPACE 1 " " | ||
19 | AS_KW 2 "as" | ||
20 | WHITESPACE 1 " " | ||
21 | EXTERN_KW 6 "extern" | ||
22 | WHITESPACE 1 " " | ||
23 | CRATE_KW 5 "crate" | ||
24 | WHITESPACE 1 "\n" | ||
25 | MOD_KW 3 "mod" | ||
26 | WHITESPACE 1 " " | ||
27 | PUB_KW 3 "pub" | ||
28 | WHITESPACE 1 " " | ||
29 | SELF_KW 4 "self" | ||
30 | WHITESPACE 1 " " | ||
31 | SUPER_KW 5 "super" | ||
32 | WHITESPACE 1 " " | ||
33 | IN_KW 2 "in" | ||
34 | WHITESPACE 1 " " | ||
35 | WHERE_KW 5 "where" | ||
36 | WHITESPACE 1 " " | ||
37 | FOR_KW 3 "for" | ||
38 | WHITESPACE 1 " " | ||
39 | LOOP_KW 4 "loop" | ||
40 | WHITESPACE 1 " " | ||
41 | WHILE_KW 5 "while" | ||
42 | WHITESPACE 1 " " | ||
43 | IF_KW 2 "if" | ||
44 | WHITESPACE 1 " " | ||
45 | MATCH_KW 5 "match" | ||
46 | WHITESPACE 1 " " | ||
47 | CONST_KW 5 "const" | ||
48 | WHITESPACE 1 "\n" | ||
49 | STATIC_KW 6 "static" | ||
50 | WHITESPACE 1 " " | ||
51 | MUT_KW 3 "mut" | ||
52 | WHITESPACE 1 " " | ||
53 | TYPE_KW 4 "type" | ||
54 | WHITESPACE 1 " " | ||
55 | REF_KW 3 "ref" | ||
56 | WHITESPACE 1 " " | ||
57 | LET_KW 3 "let" | ||
58 | WHITESPACE 1 " " | ||
59 | ELSE_KW 4 "else" | ||
60 | WHITESPACE 1 " " | ||
61 | MOVE_KW 4 "move" | ||
62 | WHITESPACE 1 " " | ||
63 | RETURN_KW 6 "return" | ||
64 | WHITESPACE 1 "\n" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0012_block_comment.rs b/crates/syntax/test_data/lexer/ok/0012_block_comment.rs new file mode 100644 index 000000000..b880a59d9 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0012_block_comment.rs | |||
@@ -0,0 +1,3 @@ | |||
1 | /* */ | ||
2 | /**/ | ||
3 | /* /* */ */ | ||
diff --git a/crates/syntax/test_data/lexer/ok/0012_block_comment.txt b/crates/syntax/test_data/lexer/ok/0012_block_comment.txt new file mode 100644 index 000000000..2618e287e --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0012_block_comment.txt | |||
@@ -0,0 +1,6 @@ | |||
1 | COMMENT 5 "/* */" | ||
2 | WHITESPACE 1 "\n" | ||
3 | COMMENT 4 "/**/" | ||
4 | WHITESPACE 1 "\n" | ||
5 | COMMENT 11 "/* /* */ */" | ||
6 | WHITESPACE 1 "\n" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0013_raw_strings.rs b/crates/syntax/test_data/lexer/ok/0013_raw_strings.rs new file mode 100644 index 000000000..e5ed0b693 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0013_raw_strings.rs | |||
@@ -0,0 +1 @@ | |||
r###"this is a r##"raw"## string"### | |||
diff --git a/crates/syntax/test_data/lexer/ok/0013_raw_strings.txt b/crates/syntax/test_data/lexer/ok/0013_raw_strings.txt new file mode 100644 index 000000000..9cf0957d1 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0013_raw_strings.txt | |||
@@ -0,0 +1,2 @@ | |||
1 | RAW_STRING 36 "r###\"this is a r##\"raw\"## string\"###" | ||
2 | WHITESPACE 1 "\n" | ||
diff --git a/crates/syntax/test_data/lexer/ok/0014_raw_ident.rs b/crates/syntax/test_data/lexer/ok/0014_raw_ident.rs new file mode 100644 index 000000000..b40a1b6a2 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0014_raw_ident.rs | |||
@@ -0,0 +1 @@ | |||
r#raw_ident | |||
diff --git a/crates/syntax/test_data/lexer/ok/0014_raw_ident.txt b/crates/syntax/test_data/lexer/ok/0014_raw_ident.txt new file mode 100644 index 000000000..484689693 --- /dev/null +++ b/crates/syntax/test_data/lexer/ok/0014_raw_ident.txt | |||
@@ -0,0 +1,2 @@ | |||
1 | IDENT 11 "r#raw_ident" | ||
2 | WHITESPACE 1 "\n" | ||