Fix parsing of C line comments

Fix // comments stopping on 'n' instead of newlines. Also allow
backslash-newline in // comments.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
diff --git a/scripts/mbedtls_dev/c_parsing_helper.py b/scripts/mbedtls_dev/c_parsing_helper.py
index 72214d5..2657b7d 100644
--- a/scripts/mbedtls_dev/c_parsing_helper.py
+++ b/scripts/mbedtls_dev/c_parsing_helper.py
@@ -76,7 +76,7 @@
 # Match one C comment.
 # Note that we match both comment types, so things like // in a /*...*/
 # comment are handled correctly.
-_C_COMMENT_RE = re.compile(r'//[^n]*|/\*.*?\*/', re.S)
+_C_COMMENT_RE = re.compile(r'//(?:[^\n]|\\\n)*|/\*.*?\*/', re.S)
 _NOT_NEWLINES_RE = re.compile(r'[^\n]+')
 
 def read_logical_lines(filename: str) -> Iterator[Tuple[int, str]]: