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

Add support for @ftype - grid feature type.

parent e2ce8ec6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -97,6 +97,8 @@ module JsDuck
          at_type
        elsif look(/@xtype\b/)
          at_xtype
        elsif look(/@ftype\b/)
          at_ftype
        elsif look(/@member\b/)
          at_member
        elsif look(/@author\b/)
@@ -244,6 +246,14 @@ module JsDuck
      skip_white
    end

    # matches @ftype name
    def at_ftype
      match(/@ftype/)
      add_tag(:ftype)
      maybe_ident_chain(:name)
      skip_white
    end

    # matches @member name ...
    def at_member
      match(/@member/)