diff --git a/lib/dox.js b/lib/dox.js index 5de885f..b596f0c 100644 --- a/lib/dox.js +++ b/lib/dox.js @@ -20,10 +20,10 @@ dox.contextPatternMatchers = [ //Procedure/Function function (str) { - if (/^\s*(cursor|procedure|function)\s+([\w$]+)\s*/i.exec(str)) { + if (/^\s*((constructor|overriding member|member)?\s?(cursor|procedure|function))\s+([\w$]+)\s*/i.exec(str)) { return { - type: RegExp.$1.toLowerCase() - , name: RegExp.$2 + type: RegExp.$3.toLowerCase() + , name: RegExp.$4 // Split on ";" for pks files. This may occur when on JavaDoc fn then another fn without JavaDoc , header: str.split(/(\s+(as|is|begin)\s+|;)/gi)[0] };