Skip to content

Commit

Permalink
mark recursive functions
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz committed Apr 6, 2023
1 parent 713eeed commit bc14906
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/regex.f90
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ logical function matchcharclass(c,str) result(match)

end function matchcharclass

logical function matchquestion(p, pattern, text, matchlength)
recursive logical function matchquestion(p, pattern, text, matchlength)
type(regex_token), intent(in) :: p, pattern(:)
character(len=*,kind=RCK), intent(in) :: text
integer, intent(inout) :: matchlength
Expand All @@ -334,7 +334,7 @@ logical function matchquestion(p, pattern, text, matchlength)

end function matchquestion

logical function matchstar(p, pattern, text, it0, matchlength)
recursive logical function matchstar(p, pattern, text, it0, matchlength)
type(regex_token), intent(in) :: p, pattern(:)
character(len=*,kind=RCK), intent(in) :: text
integer, intent(in) :: it0 ! starting point
Expand Down Expand Up @@ -371,7 +371,7 @@ logical function matchstar(p, pattern, text, it0, matchlength)

end function matchstar

logical function matchplus(p, pattern, text, it0, matchlength)
recursive logical function matchplus(p, pattern, text, it0, matchlength)
type(regex_token), intent(in) :: p, pattern(:)
character(len=*,kind=RCK), intent(in) :: text
integer, intent(in) :: it0
Expand Down Expand Up @@ -615,7 +615,7 @@ function print_pattern(pattern) result(msg)
end function print_pattern

! Match a single pattern at the g
logical function pat_match(p, c) result(match)
recursive logical function pat_match(p, c) result(match)
class(regex_token), intent(in) :: p
character(kind=RCK), intent(in) :: c

Expand Down

0 comments on commit bc14906

Please sign in to comment.