diff --git a/cpplint/cpplint.py b/cpplint/cpplint.py index 949c510..4d98078 100755 --- a/cpplint/cpplint.py +++ b/cpplint/cpplint.py @@ -2596,7 +2596,7 @@ class NestingState(object): # check if the keywords are not preceded by whitespaces. indent = access_match.group(1) if (len(indent) != classinfo.class_indent + 1 and - Match(r'^\s*$', indent)): + Match(r'^\s+$', indent)): if classinfo.is_struct: parent = 'struct ' + classinfo.name else: