diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-09-28 09:18:01 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-09-30 20:51:23 +0200 |
commit | 13a574d8bb2523181f8150de49bc041c9841f59d (patch) | |
tree | d901940756cad14da1653880508e96e20ed14431 /util/check-format.pl | |
parent | check-format.pl: Extend exceptions for no SPC after trailing ';' in 'for (...;)' (diff) | |
download | openssl-13a574d8bb2523181f8150de49bc041c9841f59d.tar.xz openssl-13a574d8bb2523181f8150de49bc041c9841f59d.zip |
check-format.pl: Allow nested indentation of labels (not only at line pos 1)
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13019)
Diffstat (limited to 'util/check-format.pl')
-rwxr-xr-x | util/check-format.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/check-format.pl b/util/check-format.pl index 8852f3df8c..3230dc31fb 100755 --- a/util/check-format.pl +++ b/util/check-format.pl @@ -798,7 +798,7 @@ while (<>) { # loop over all lines of all input files $local_offset = -INDENT_LEVEL; } else { if (m/^([\s@]*)(\w+):/) { # (leading) label, cannot be "default" - $local_offset = -INDENT_LEVEL + 1 ; + $local_offset = -INDENT_LEVEL; $has_label = 1; } } |