Skip to content

Commit

Permalink
nagini: use better newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
WeetHet committed Sep 17, 2024
1 parent ddc0219 commit cf35ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verified_cogen/runners/languages/nagini.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class NaginiLanguage(GenericLanguage):
def __init__(self):
super().__init__(
re.compile(
r"def\s+(\w+)\s*\((.*?)\)\s*->\s*(.*?):(:?\n?( *(?:Requires|Ensures)\([^\n]*\)\n?)*)",
r"def\s+(\w+)\s*\((.*?)\)\s*->\s*(.*?):(:?(?:\r\n|\r|\n)?( *(?:Requires|Ensures)\([^\r\n]*\)(?:\r\n|\r|\n)?)*)",
re.DOTALL,
),
NAGINI_VALIDATOR_TEMPLATE,
Expand Down

0 comments on commit cf35ce5

Please sign in to comment.