From 31b0ea6b34d439dce922342454aa070c82edd1c3 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Thu, 9 Jan 2020 20:56:09 -0500 Subject: [PATCH] Link to structs and enums in docs --- src/main.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 36c3aa6..9237bd1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -103,9 +103,9 @@ pub struct StyleSheet { #[derive(Clone, Debug, Eq, PartialEq)] pub enum Stmt { - /// A style: `color: red` + /// A [`Style`](/grass/style/struct.Style) Style(Style), - /// An entire `[RuleSet](crate::RuleSet)` + /// A [`RuleSet`](/grass/struct.RuleSet.html) RuleSet(RuleSet), /// A multiline comment: `/* foo bar */` MultilineComment(String), @@ -490,9 +490,13 @@ mod test_css { "a {\n /* foo */\n /* bar */\n color: red;\n}\n" ); test!( - preserves_toplevel_comment, + preserves_toplevel_comment_before, "/* foo */\na {\n color: red;\n}\n" ); + test!( + preserves_toplevel_comment_after, + "a {\n color: red;\n}\n/* foo */\n" + ); test!( removes_single_line_comment, "// a { color: red }\na {\n height: 1 1px;\n}\n",