Commit a31b002f authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Have JsParser and CssParser report comment type.

While EsprimaParser reports either :plain_comment or :doc_comment,
these fellows always report :doc_comment.
parent 217d1868
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -17,7 +17,8 @@ module JsDuck
          @docs << {
            :comment => comment[:value],
            :linenr => comment[:linenr],
            :code => code_block
            :code => code_block,
            :type => :doc_comment,
          }
        else
          @lex.next
+4 −2
Original line number Diff line number Diff line
@@ -41,7 +41,8 @@ module JsDuck
    #           {:name => "bar"}
    #         ]
    #       }
    #     }
    #     },
    #     :type => :doc_comment,
    #   }
    # ]
    #
@@ -52,7 +53,8 @@ module JsDuck
          @docs << {
            :comment => comment[:value],
            :linenr => comment[:linenr],
            :code => code_block
            :code => code_block,
            :type => :doc_comment,
          }
        else
          @lex.next