Permalink
Browse files

Merge pull request #1 from wesbillman/support-camelCase-functions

Change regex to support camelCase functions.
  • Loading branch information...
2 parents 7e3da1e + 1858ce1 commit 5b4565e5608204003675f4e71d00b644725200f1 @schacon committed Sep 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/docurium.rb
View
@@ -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]

0 comments on commit 5b4565e

Please sign in to comment.