From 6303944a4a906847468d5678254a1590a51da0d9 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 30 Apr 2022 14:13:05 +0200 Subject: [PATCH] :rewind: revert accidental change --- tools/cpplint/cpplint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cpplint/cpplint.py b/tools/cpplint/cpplint.py index 933b1df1d..6b78b308c 100755 --- a/tools/cpplint/cpplint.py +++ b/tools/cpplint/cpplint.py @@ -3629,7 +3629,7 @@ def CheckComment(line, filename, linenum, next_line_start, error): commentpos = line.find('//') if commentpos != -1: # Check if the // may be in quotes. If so, ignore it - if re.sub(r'', '', line[0:commentpos]).count('"') % 2 == 0: + if re.sub(r'\\.', '', line[0:commentpos]).count('"') % 2 == 0: # Allow one space for new scopes, two spaces otherwise: if (not (Match(r'^.*{ *//', line) and next_line_start == commentpos) and ((commentpos >= 1 and