diff options
author | DJMcNab <[email protected]> | 2019-01-27 15:20:36 +0000 |
---|---|---|
committer | DJMcNab <[email protected]> | 2019-01-27 15:20:36 +0000 |
commit | 137b1ccb715fe795cdf6c528bef6f8df3387f158 (patch) | |
tree | f4e329fe8d4c97e1ba6ac0a9b99a03a11f716ede /crates/ra_syntax/tests/data/parser | |
parent | 73b075c5562f351b84b6c96b7852547c7b50a1ef (diff) |
Add a test for inner attributes on extern blocks
Diffstat (limited to 'crates/ra_syntax/tests/data/parser')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/ok/0045_extern_inner_attributes.rs | 4 | ||||
-rw-r--r-- | crates/ra_syntax/tests/data/parser/ok/0045_extern_inner_attributes.txt | 26 |
2 files changed, 30 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/ok/0045_extern_inner_attributes.rs b/crates/ra_syntax/tests/data/parser/ok/0045_extern_inner_attributes.rs new file mode 100644 index 000000000..fe67e2df4 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/ok/0045_extern_inner_attributes.rs | |||
@@ -0,0 +1,4 @@ | |||
1 | extern "C" { | ||
2 | //! This is a doc comment | ||
3 | #![doc("This is also a doc comment")] | ||
4 | } | ||
diff --git a/crates/ra_syntax/tests/data/parser/ok/0045_extern_inner_attributes.txt b/crates/ra_syntax/tests/data/parser/ok/0045_extern_inner_attributes.txt new file mode 100644 index 000000000..c68e1b271 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/ok/0045_extern_inner_attributes.txt | |||
@@ -0,0 +1,26 @@ | |||
1 | SOURCE_FILE@[0; 87) | ||
2 | EXTERN_BLOCK@[0; 86) | ||
3 | ABI@[0; 10) | ||
4 | EXTERN_KW@[0; 6) | ||
5 | WHITESPACE@[6; 7) | ||
6 | STRING@[7; 10) | ||
7 | WHITESPACE@[10; 11) | ||
8 | EXTERN_ITEM_LIST@[11; 86) | ||
9 | L_CURLY@[11; 12) | ||
10 | WHITESPACE@[12; 17) | ||
11 | COMMENT@[17; 42) | ||
12 | WHITESPACE@[42; 47) | ||
13 | ATTR@[47; 84) | ||
14 | POUND@[47; 48) | ||
15 | EXCL@[48; 49) | ||
16 | TOKEN_TREE@[49; 84) | ||
17 | L_BRACK@[49; 50) | ||
18 | IDENT@[50; 53) "doc" | ||
19 | TOKEN_TREE@[53; 83) | ||
20 | L_PAREN@[53; 54) | ||
21 | STRING@[54; 82) | ||
22 | R_PAREN@[82; 83) | ||
23 | R_BRACK@[83; 84) | ||
24 | WHITESPACE@[84; 85) | ||
25 | R_CURLY@[85; 86) | ||
26 | WHITESPACE@[86; 87) | ||