summaryrefslogtreecommitdiffhomepage
path: root/lib/yard/mruby/code_objects/function_object.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yard/mruby/code_objects/function_object.rb')
-rw-r--r--lib/yard/mruby/code_objects/function_object.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yard/mruby/code_objects/function_object.rb b/lib/yard/mruby/code_objects/function_object.rb
index 2fdc0b7..598257c 100644
--- a/lib/yard/mruby/code_objects/function_object.rb
+++ b/lib/yard/mruby/code_objects/function_object.rb
@@ -40,7 +40,7 @@ module YARD::MRuby::CodeObjects
return if parameters.match /^\s*void\s*$/
parameters.split(',').each do |parameter|
- parameter.scan(/((:?struct\s+)?\w+(:?\s*\*)?)\s*(\w+)?/) do |type,_,_,name|
+ parameter.scan(/((?:const\s+)?(?:struct\s+)?\w+(?:\s*\*)?)\s*(\w+)?/) do |type,name|
@parameter_types << ParameterType.new(type,name)
end
end