Cscott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/192864

Change subject: Teach docparser about @member, @see, and PHP pass-by-reference 
(&$foo).
......................................................................

Teach docparser about @member, @see, and PHP pass-by-reference (&$foo).

Change-Id: Ie4c1abce16423d6e08d910399689f7c6b018b1d2
---
M bin/docparser.rb
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/64/192864/1

diff --git a/bin/docparser.rb b/bin/docparser.rb
index e8b2f95..7730d2e 100644
--- a/bin/docparser.rb
+++ b/bin/docparser.rb
@@ -113,7 +113,7 @@
                                        data[:params] << {name: name, type: 
cleanup_class_name(type), description: description || '', default: default}
                                        previous_item = data[:params][-1]
                                when :php
-                                       type, name, config, description = 
content.match(/^(\S+) \$(\w+)(?:\['(\w+)'\])?( .+)?$/).captures
+                                       type, name, config, description = 
content.match(/^(\S+) \&?\$(\w+)(?:\['(\w+)'\])?( .+)?$/).captures
                                        next if type == 'array' && name == 
'config' && !config
                                        if config && name == 'config'
                                                data[:config] << {name: config, 
type: cleanup_class_name(type), description: description || ''}
@@ -148,7 +148,7 @@
                                data[:abstract] = true
                        when 'ignore'
                                ignore = true
-                       when 'inheritable', 'deprecated', 'singleton', 
'throws', 'chainable', 'fires', 'localdoc', 'inheritdoc'
+                       when 'inheritable', 'deprecated', 'singleton', 
'throws', 'chainable', 'fires', 'localdoc', 'inheritdoc', 'member', 'see'
                                # skip
                        else
                                fail "unrecognized keyword: #{keyword}"

-- 
To view, visit https://gerrit.wikimedia.org/r/192864
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie4c1abce16423d6e08d910399689f7c6b018b1d2
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to