From 89332755bf0fffa7695e273cba04b0dce63a69c8 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Tue, 17 May 2011 16:07:50 +0300 Subject: [PATCH] Add support for @ftype - grid feature type. --- lib/jsduck/doc_parser.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/jsduck/doc_parser.rb b/lib/jsduck/doc_parser.rb index d66ac8eb..9d049eca 100644 --- a/lib/jsduck/doc_parser.rb +++ b/lib/jsduck/doc_parser.rb @@ -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/) -- GitLab