diff options
author | Aleksey Kladov <[email protected]> | 2019-07-24 10:38:21 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-24 10:49:19 +0100 |
commit | 459241f272748ff2e57b2c7e84f5a04f78d67edb (patch) | |
tree | 2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/test_data/parser/inline/ok/0129_marco_pat.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0129_marco_pat.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0129_marco_pat.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0129_marco_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0129_marco_pat.txt new file mode 100644 index 000000000..50b4ab2e7 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0129_marco_pat.txt | |||
@@ -0,0 +1,36 @@ | |||
1 | SOURCE_FILE@[0; 33) | ||
2 | FN_DEF@[0; 32) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 7) | ||
6 | IDENT@[3; 7) "main" | ||
7 | PARAM_LIST@[7; 9) | ||
8 | L_PAREN@[7; 8) "(" | ||
9 | R_PAREN@[8; 9) ")" | ||
10 | WHITESPACE@[9; 10) " " | ||
11 | BLOCK@[10; 32) | ||
12 | L_CURLY@[10; 11) "{" | ||
13 | WHITESPACE@[11; 16) "\n " | ||
14 | LET_STMT@[16; 30) | ||
15 | LET_KW@[16; 19) "let" | ||
16 | WHITESPACE@[19; 20) " " | ||
17 | MACRO_CALL@[20; 25) | ||
18 | PATH_PAT@[20; 21) | ||
19 | PATH@[20; 21) | ||
20 | PATH_SEGMENT@[20; 21) | ||
21 | NAME_REF@[20; 21) | ||
22 | IDENT@[20; 21) "m" | ||
23 | EXCL@[21; 22) "!" | ||
24 | TOKEN_TREE@[22; 25) | ||
25 | L_PAREN@[22; 23) "(" | ||
26 | IDENT@[23; 24) "x" | ||
27 | R_PAREN@[24; 25) ")" | ||
28 | WHITESPACE@[25; 26) " " | ||
29 | EQ@[26; 27) "=" | ||
30 | WHITESPACE@[27; 28) " " | ||
31 | LITERAL@[28; 29) | ||
32 | INT_NUMBER@[28; 29) "0" | ||
33 | SEMI@[29; 30) ";" | ||
34 | WHITESPACE@[30; 31) "\n" | ||
35 | R_CURLY@[31; 32) "}" | ||
36 | WHITESPACE@[32; 33) "\n" | ||