We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ead0a77 commit 2c8ac45Copy full SHA for 2c8ac45
src/lib/functions.ts
@@ -75,7 +75,7 @@ export const parseSubroutine = (line: TextLine) => {
75
};
76
export const _parse = (line: TextLine, type: MethodType) => {
77
const functionRegEx = /([a-zA-Z]+(\([\w.=]+\))*)*\s*function\s*([a-zA-Z_][a-z0-9_]*)\s*\((\s*[a-z_][a-z0-9_,\s]*)*\s*\)\s*(result\([a-z_][\w]*\))*/i;
78
- const subroutineRegEx = /subroutine\s*([a-z][a-z0-9_]*)\s*\((\s*[a-z][a-z0-9_,\s]*)*\s*(\)|&)/i;
+ const subroutineRegEx = /^\s*subroutine\s*([a-z][a-z0-9_]*)\s*(?:\((\s*[a-z][a-z0-9_,\s]*)*\s*\))*/i;
79
const regEx =
80
type === MethodType.Subroutine ? subroutineRegEx : functionRegEx;
81
0 commit comments