diff --git a/crates/ra_syntax/tests/data/parser/ok/0037_mod.rs b/crates/ra_syntax/tests/data/parser/ok/0037_mod.rs new file mode 100644 index 000000000000..7e5a1b8358c4 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/ok/0037_mod.rs @@ -0,0 +1,5 @@ +// https://github.com/rust-analyzer/rust-analyzer/issues/357 + +//! docs +// non-docs +mod foo {} \ No newline at end of file diff --git a/crates/ra_syntax/tests/data/parser/ok/0037_mod.txt b/crates/ra_syntax/tests/data/parser/ok/0037_mod.txt new file mode 100644 index 000000000000..e11c4a06df8d --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/ok/0037_mod.txt @@ -0,0 +1,17 @@ +SOURCE_FILE@[0; 93) + COMMENT@[0; 60) + WHITESPACE@[60; 62) + MODULE@[62; 93) + COMMENT@[62; 70) + WHITESPACE@[70; 71) + COMMENT@[71; 82) + WHITESPACE@[82; 83) + MOD_KW@[83; 86) + WHITESPACE@[86; 87) + NAME@[87; 90) + IDENT@[87; 90) "foo" + WHITESPACE@[90; 91) + ITEM_LIST@[91; 93) + L_CURLY@[91; 92) + R_CURLY@[92; 93) +