mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
checkpatch: fix continuation detection when handling spacing on operators
We are miscategorising a continuation fragment following an operator which may lead to us thinking that there is a space after it when there is not. Fix this up. Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8054576dca
commit
8b1b33786b
1 changed files with 1 additions and 1 deletions
|
@ -1793,7 +1793,7 @@ sub process {
|
|||
$c = 'C' if ($elements[$n + 2] =~ /^$;/);
|
||||
$c = 'B' if ($elements[$n + 2] =~ /^(\)|\]|;)/);
|
||||
$c = 'O' if ($elements[$n + 2] eq '');
|
||||
$c = 'E' if ($elements[$n + 2] =~ /\s*\\$/);
|
||||
$c = 'E' if ($elements[$n + 2] =~ /^\s*\\$/);
|
||||
} else {
|
||||
$c = 'E';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue