Permalink
Browse files

it doesn't what the defaulted value is

  • Loading branch information...
1 parent eb56601 commit 6f73aa6beaee8a15bd220ddfd6a6c9652abc5242 @darrinholst darrinholst committed Mar 18, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/ib/parser.rb
  2. +1 −1 spec/fixtures/custom_view.rb
View
@@ -3,7 +3,7 @@ class IB::Parser
CLASS_REGEX = /^[ \t]*class[ \t]+(#{NAME_REGEX})([ \t]*<[ \t]*(#{NAME_REGEX}))?/
OUTLET_REGEX = /^[ \t]+(ib_)?outlet(_accessor)?[ \t]+:(#{NAME_REGEX})[ \t]*?(,[ \t]*['"]?(#{NAME_REGEX}))?/
OUTLET_COLLECTION_REGEX = /^[ \t]+(ib_)?outlet_collection(_accessor)?[ \t]+:(#{NAME_REGEX})[ \t]*?(,[ \t]*['"]?(#{NAME_REGEX}))?/
- METHOD_ARGUMENT_REGEX = /(#{NAME_REGEX})(?:[ \t]*=[ \t]*#{NAME_REGEX})?/
+ METHOD_ARGUMENT_REGEX = /(#{NAME_REGEX})(?:[ \t]*=[^,#)]*)?/
METHOD_REF_REGEX = /^[ \t]+(ib_action)[ \t]:(#{NAME_REGEX})[ \t]*?(,[ \t]*['"]?(#{NAME_REGEX}))?/
METHOD_DEF_REGEX = /^[ \t]+(def)[ \t]#{METHOD_ARGUMENT_REGEX}([ \t(]+)?#{METHOD_ARGUMENT_REGEX}?([ \t)]*)(#.*)?$/
ACTION_REGEX = Regexp.union METHOD_DEF_REGEX, METHOD_REF_REGEX
@@ -33,7 +33,7 @@ def notAction with, toArgs
def actionWithoutArgs
end
- def actionWithDefaultedArgs(sender = nil)
+ def actionWithDefaultedArgs(sender = nil) #comment
end
end

0 comments on commit 6f73aa6

Please sign in to comment.