Skip to content

Commit

Permalink
#17: Don't mark "++" at the end of a line as an improper continuation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Gulewich committed Dec 19, 2014
1 parent d75b7ca commit 194dde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsstyle
Expand Up @@ -600,7 +600,7 @@ line: while (<$filehandle>) {
}
if (!$config{"continuation-at-front"} && /^\s*(&&|\|\|)/) {
err("improper boolean continuation");
} elsif ($config{"continuation-at-front"} && /(&&|\|\||\+)$/) {
} elsif ($config{"continuation-at-front"} && /(&&|\|\||[^+]\+)$/) {
err("improper continuation");
}
if (/\S *(&&|\|\|)/ || /(&&|\|\|) *\S/) {
Expand Down

0 comments on commit 194dde7

Please sign in to comment.