Created
September 26, 2017 21:46
-
-
Save mryan/71709f7dfb5550c0b14a526b42bf1feb to your computer and use it in GitHub Desktop.
Proposed changes to fudge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff fudge | |
diff --git a/fudge b/fudge | |
index 975fcef..5a2fd4f 100755 | |
--- a/fudge | |
+++ b/fudge | |
@@ -209,6 +209,10 @@ sub fudgeblock { | |
my $args = $3; | |
my $cmd = $4; | |
my $applies = 0; | |
+ | |
+ # Guard against false match with shebang line. See roast RT #268 | |
+ next if $sense eq '!' && ! scalar m/\b(DOES|skip|emit|todo|eval|try)\b/ ; | |
+ | |
if ($name =~ /^v\d/) { # Perl 6 language version | |
my $num = $args =~ s/(\d+)\s*// ? $1 : 1; | |
$cmd = 'skip'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment