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) => {
7474 return _parse ( line , MethodType . Subroutine ) ;
7575} ;
7676export 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;
7878 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;
7979 const regEx =
8080 type === MethodType . Subroutine ? subroutineRegEx : functionRegEx ;
You can’t perform that action at this time.
0 commit comments