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

Make Tag::Class return hash.

Also introduce shorthand for horizontal whitespace skipping.
parent 6f098967
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -223,6 +223,11 @@ module JsDuck
    def skip_horiz_white
      @input.scan(/[ \t]+/)
    end
    # Shorthand alias
    def hw
      skip_horiz_white
    end

  end

end
+5 −2
Original line number Diff line number Diff line
@@ -8,8 +8,11 @@ module JsDuck::Tag

    # @class name
    def parse(p)
      p.add_tag(:class)
      p.maybe_ident_chain(:name)
      {
        :tagname => :class,
        :name => p.hw && p.ident_chain,
        :doc => "",
      }
    end
  end
end