mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
gh-128152: Argument Clinic: ignore pre-processor directives inside C comments (#128464)
This commit is contained in:
parent
03ede5afe2
commit
a4e773c540
3 changed files with 15 additions and 0 deletions
|
|
@ -132,6 +132,9 @@ class Monitor:
|
|||
if line_comment:
|
||||
line = before.rstrip()
|
||||
|
||||
if self.in_comment:
|
||||
return
|
||||
|
||||
if not line.startswith('#'):
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue