Loading lib/jsduck/css/sass_parser.rb +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ module JsDuck def make_docset(prev_comment, node=nil) return { :comment => prev_comment.value[0], :comment => prev_comment.value[0].sub(/\A\/\*\*/, "").sub(/\*\/\z/, ""), :linenr => prev_comment.line, :code => analyze_code(node), :type => :doc_comment, Loading spec/css_sass_parser_spec.rb +3 −3 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ describe JsDuck::Css::SassParser do end it "detects comment" do var[:comment].should == "/** My variable */" var[:comment].should == " My variable " end it "detects line number" do Loading Loading @@ -97,7 +97,7 @@ describe JsDuck::Css::SassParser do end it "detects comment" do var[:comment].should == "/** My mixin */" var[:comment].should == " My mixin " end it "detects :css_mixin type" do Loading Loading @@ -144,7 +144,7 @@ describe JsDuck::Css::SassParser do end it "detects comment" do var[:comment].should == "/** My docs */" var[:comment].should == " My docs " end it "detects code as :property" do Loading Loading
lib/jsduck/css/sass_parser.rb +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ module JsDuck def make_docset(prev_comment, node=nil) return { :comment => prev_comment.value[0], :comment => prev_comment.value[0].sub(/\A\/\*\*/, "").sub(/\*\/\z/, ""), :linenr => prev_comment.line, :code => analyze_code(node), :type => :doc_comment, Loading
spec/css_sass_parser_spec.rb +3 −3 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ describe JsDuck::Css::SassParser do end it "detects comment" do var[:comment].should == "/** My variable */" var[:comment].should == " My variable " end it "detects line number" do Loading Loading @@ -97,7 +97,7 @@ describe JsDuck::Css::SassParser do end it "detects comment" do var[:comment].should == "/** My mixin */" var[:comment].should == " My mixin " end it "detects :css_mixin type" do Loading Loading @@ -144,7 +144,7 @@ describe JsDuck::Css::SassParser do end it "detects comment" do var[:comment].should == "/** My docs */" var[:comment].should == " My docs " end it "detects code as :property" do Loading