Skip to content

Commit aae14f2

Browse files
committed
Fix #136 - Function defs in comments not transpiled
1 parent 717290e commit aae14f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/VBA-stdError-Wrapper/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function main() {
142142

143143
//Loop through each public function
144144
const functionFinder =
145-
/(?<header>(?<!')(?:Public|Private|Friend) (?:(?<type>Function|Sub|Property) ?(?<access>Get|Let|Set)?) (?<name>\w+)\((?<params>(?:\(\)|[^)])*)\)(?: as (?<retType>(?:\w+\.)?\w+(?:\(\))?))?)(?<body>(?:.|\s)+?)\b(?<footer>End\s+(?:Function|Sub|Property))/gim;
145+
/^[ \t]*(?<header>(?:Public|Private|Friend) (?:(?<type>Function|Sub|Property) ?(?<access>Get|Let|Set)?) (?<name>\w+)\((?<params>(?:\(\)|[^)])*)\)(?: as (?<retType>(?:\w+\.)?\w+(?:\(\))?))?)(?<body>(?:.|\s)+?)\b(?<footer>End\s+(?:Function|Sub|Property))/gim;
146146
content = content.replace(
147147
functionFinder,
148148
(

0 commit comments

Comments
 (0)