File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export const parseSubroutine = (line: TextLine) => {
74
74
return _parse ( line , MethodType . Subroutine ) ;
75
75
} ;
76
76
export const _parse = ( line : TextLine , type : MethodType ) => {
77
- const functionRegEx = / ( [ a - z A - Z ] + ( \( [ \w . = ] + \) ) * ) * \s * \b f u n c t i o n \b \s * ( [ a - z A - Z _ ] [ a - z 0 - 9 _ ] * ) \s * \( ( \s * [ a - z _ ] [ a - z 0 - 9 _ , \s ] * ) * \s * ( \) | \& ) \s * ( r e s u l t \( [ a - z _ ] [ \w ] * ( \) | \& ) ) * / i;
77
+ const functionRegEx = / (?< = ( [ a - z A - Z ] + ( \( [ \w . = ] + \) ) * ) * ) \s * \b f u n c t i o n \b \s * ( [ a - z A - Z _ ] [ a - z 0 - 9 _ ] * ) \s * \( ( \s * [ a - z _ ] [ a - z 0 - 9 _ , \s ] * ) * \s * (?: \) | \& ) \s * ( r e s u l t \( [ a - z _ ] [ \w ] * (?: \) | \& ) ) * / i;
78
78
const subroutineRegEx = / ^ \s * (? ! \b e n d \b ) \w * \s * \b s u b r o u t i n e \b \s * ( [ a - z ] [ a - z 0 - 9 _ ] * ) \s * (?: \( ( \s * [ a - z ] [ a - z 0 - 9 _ , \s ] * ) * \s * ( \) | \& ) ) * / i;
79
79
const regEx =
80
80
type === MethodType . Subroutine ? subroutineRegEx : functionRegEx ;
You can’t perform that action at this time.
0 commit comments