Commit 47faa4b7 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Exclude /** */ from comment content in SCSS.

parent 685665d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+3 −3
Original line number Diff line number Diff line
@@ -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
@@ -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
@@ -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