Skip to content

Commit

Permalink
add ref to regex pattern that matches proc signature for formatting
Browse files Browse the repository at this point in the history
Signed-off-by: arezaii <ahmad.rezaii@hpe.com>
  • Loading branch information
arezaii committed Dec 6, 2022
1 parent ba9de5d commit aa34310
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinxcontrib/chapeldomain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
chpl_sig_pattern = re.compile(
r"""^ ((?:\w+\s+)* # opt: prefixes
(?:proc|iter|class|record|operator)\s+ # must end with keyword
(?:type\s+|param\s+)? # opt: type or param method
(?:type\s+|param\s+|ref\s+)? # opt: 'this' intent
# (type, param, ref)
)?
([\w$.]*\.)? # class name(s)
([\w\+\-/\*$\<\=\>\!]+) \s* # function or method name
Expand Down

0 comments on commit aa34310

Please sign in to comment.