diff --git a/cpplint/cpplint.py b/cpplint/cpplint.py index 65baa6c..0abba8d 100755 --- a/cpplint/cpplint.py +++ b/cpplint/cpplint.py @@ -2653,7 +2653,7 @@ class NestingState(object): # }; class_decl_match = Match( r'^(\s*(?:template\s*<[\w\s<>,:]*>\s*)?' - r'(class|struct)\s+(?:[A-Z_]+\s+)*(\w+(?:::\w+)*))' + r'(class|struct)\s+(?:[A-Z0-9_]+\s+)*(\w+(?:::\w+)*))' r'(.*)$', line) if (class_decl_match and (not self.stack or self.stack[-1].open_parentheses == 0)):