Message ID | 31af383fd439c3c0a5003598961acfecfae4018c.1667934510.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | ca748f518358448efa46f01539a8bdce5cfc710f |
Headers | show |
Series | chainlint: improve annotated output | expand |
diff --git a/t/chainlint.pl b/t/chainlint.pl index 9908de6c758..1f66c03c593 100755 --- a/t/chainlint.pl +++ b/t/chainlint.pl @@ -179,7 +179,7 @@ RESTART: # handle special characters last unless $$b =~ /\G(.)/sgc; my $c = $1; - last if $c =~ /^[ \t]$/; # whitespace ends token + pos($$b)--, last if $c =~ /^[ \t]$/; # whitespace ends token pos($$b)--, last if length($token) && $c =~ /^[;&|<>(){}\n]$/; $token .= $self->scan_sqstring(), next if $c eq "'"; $token .= $self->scan_dqstring(), next if $c eq '"';