Loading lib/jsduck/doc_parser.rb +3 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,9 @@ module JsDuck boolean_at_tag(/@static/, :static) elsif look(/@(private|ignore|hide|protected)\b/) boolean_at_tag(/@(private|ignore|hide|protected)/, :private) elsif look(/@markdown\b/) # this is detected just to be ignored boolean_at_tag(/@markdown/, :markdown) elsif look(/@/) @current_tag[:doc] += @input.scan(/@/) elsif look(/[^@]/) Loading spec/aggregator_classes_spec.rb +17 −0 Original line number Diff line number Diff line Loading @@ -230,6 +230,23 @@ describe JsDuck::Aggregator do end end describe "class with @markdown" do before do @doc = parse(<<-EOS)[0] /** * @class MyClass * @markdown * Comment here. */ EOS end it_should_behave_like "class" it "does not show @markdown tag in docs" do @doc[:doc].should == "Comment here." end end describe "member docs after class doc" do before do @classes = parse(<<-EOS) Loading Loading
lib/jsduck/doc_parser.rb +3 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,9 @@ module JsDuck boolean_at_tag(/@static/, :static) elsif look(/@(private|ignore|hide|protected)\b/) boolean_at_tag(/@(private|ignore|hide|protected)/, :private) elsif look(/@markdown\b/) # this is detected just to be ignored boolean_at_tag(/@markdown/, :markdown) elsif look(/@/) @current_tag[:doc] += @input.scan(/@/) elsif look(/[^@]/) Loading
spec/aggregator_classes_spec.rb +17 −0 Original line number Diff line number Diff line Loading @@ -230,6 +230,23 @@ describe JsDuck::Aggregator do end end describe "class with @markdown" do before do @doc = parse(<<-EOS)[0] /** * @class MyClass * @markdown * Comment here. */ EOS end it_should_behave_like "class" it "does not show @markdown tag in docs" do @doc[:doc].should == "Comment here." end end describe "member docs after class doc" do before do @classes = parse(<<-EOS) Loading