Commit 8aaec134 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Turn DocScanner#hw method into chainable.

parent 3b54436d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -228,6 +228,7 @@ module JsDuck
    # Shorthand alias
    def hw
      skip_horiz_white
      self
    end

  end
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ module JsDuck::Tag
    def parse(p)
      {
        :tagname => :class,
        :name => p.hw && p.ident_chain,
        :name => p.hw.ident_chain,
      }
    end
  end
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ module JsDuck::Tag
    def parse(p)
      {
        :tagname => @key,
        :classes => p.hw && p.classname_list,
        :classes => p.hw.classname_list,
      }
    end

+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ module JsDuck::Tag
    def parse(p)
      {
        :tagname => @key,
        :version => p.hw && p.match(/[0-9.]+/)
        :version => p.hw.match(/[0-9.]+/)
      }
    end

+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ module JsDuck::Tag
    def parse(p)
      {
        :tagname => :event,
        :name => p.hw && p.ident,
        :name => p.hw.ident,
      }
    end
  end
Loading