Skip to content

Commit

Permalink
it doesn't what the defaulted value is
Browse files Browse the repository at this point in the history
  • Loading branch information
darrinholst committed Mar 18, 2013
1 parent eb56601 commit 6f73aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ib/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/custom_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.