Skip to content

Commit a930d37

Browse files
committed
gh-102033: Fix syntax error in Tools/c-analyzer
1 parent b1b375e commit a930d37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tools/c-analyzer/c_parser/parser/_delim.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ def parse(text, anon_name):
1717
yield result
1818

1919

20-
DELIMITER = textwrap.dedent(rf'''
20+
DELIMITER = textwrap.dedent(r'''
2121
(
2222
(?:
2323
[^'"()\[\]{};]*
24-
{_ind(STRING_LITERAL, 3)}
24+
%s
2525
}*
2626
[^'"()\[\]{};]+
2727
)? # <before>
@@ -34,7 +34,7 @@ def parse(text, anon_name):
3434
[)\]};]
3535
) # <close>
3636
)?
37-
''')
37+
''' % _ind(STRING_LITERAL, 3))
3838
DELIMITER_RE = re.compile(DELIMITER, re.VERBOSE)
3939

4040
_HANDLERS = {

0 commit comments

Comments
 (0)