Skip to content

Commit

Permalink
Parse setter methods (e.g. #foo=).
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed May 3, 2009
1 parent 83fb66c commit 7868692
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/yard/code_objects/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def push(value)
ISEP = '#'
CONSTANTMATCH = /[A-Z]\w*/
NAMESPACEMATCH = /(?:(?:#{Regexp.quote NSEP})?#{CONSTANTMATCH})+/
METHODNAMEMATCH = /[a-zA-Z_]\w*[!?]?|[-+~]\@|<<|>>|=~|===?|[<>]=?|\*\*|[-\/+%^&*~`|]|\[\]=?/
METHODNAMEMATCH = /[a-zA-Z_]\w*[!?=]?|[-+~]\@|<<|>>|=~|===?|[<>]=?|\*\*|[-\/+%^&*~`|]|\[\]=?/
METHODMATCH = /(?:(?:#{NAMESPACEMATCH}|self)\s*(?:\.|#{Regexp.quote NSEP})\s*)?#{METHODNAMEMATCH}/

BUILTIN_EXCEPTIONS = ["SecurityError", "Exception", "NoMethodError", "FloatDomainError",
Expand Down Expand Up @@ -251,4 +251,4 @@ def format_source(source)
end
end
end
end
end

0 comments on commit 7868692

Please sign in to comment.