Skip to content

Commit

Permalink
Merge pull request #1 from wesbillman/support-camelCase-functions
Browse files Browse the repository at this point in the history
Change regex to support camelCase functions.
  • Loading branch information
schacon committed Sep 14, 2011
2 parents 7e3da1e + 1858ce1 commit 5b4565e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/docurium.rb
Expand Up @@ -438,7 +438,7 @@ def extract_functions(file, data)
rawComments = block[:comments]
comments = block[:comments]

if m = /^(.*?) ([a-z_]+)\((.*)\)/.match(code)
if m = /^(.*?) ([a-zA-Z_]+)\((.*)\)/.match(code)
ret = m[1].strip
if r = /\((.*)\)/.match(ret) # strip macro
ret = r[1]
Expand Down

0 comments on commit 5b4565e

Please sign in to comment.