From 8a6d6ac1326ed522004350ae5700ef3ca10c8230 Mon Sep 17 00:00:00 2001 From: csmoe Date: Fri, 4 Jan 2019 21:28:09 +0800 Subject: add mod doc comment test --- crates/ra_syntax/tests/data/parser/ok/0037_mod.rs | 5 +++++ crates/ra_syntax/tests/data/parser/ok/0037_mod.txt | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 crates/ra_syntax/tests/data/parser/ok/0037_mod.rs create mode 100644 crates/ra_syntax/tests/data/parser/ok/0037_mod.txt (limited to 'crates/ra_syntax/tests') 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 000000000..7e5a1b835 --- /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 000000000..e11c4a06d --- /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) + -- cgit v1.2.3