mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Guard advancing past leading meta-comments.
This commit is contained in:
parent
e7aca521db
commit
ad428cd1cd
1 changed files with 6 additions and 4 deletions
|
@ -1360,10 +1360,12 @@ problem as best as we can determine."
|
||||||
(set-buffer funcbuffer)
|
(set-buffer funcbuffer)
|
||||||
(count-lines
|
(count-lines
|
||||||
(point-min)
|
(point-min)
|
||||||
|
(max (point-min)
|
||||||
(string-match "^\\([^#]\\|#[^#]\\|#$\\)"
|
(string-match "^\\([^#]\\|#[^#]\\|#$\\)"
|
||||||
(buffer-substring (point-min)
|
(buffer-substring (point-min)
|
||||||
(point-max)
|
(point-max)
|
||||||
funcbuffer)))))))
|
funcbuffer))
|
||||||
|
))))))
|
||||||
(list lineno funcbuffer))
|
(list lineno funcbuffer))
|
||||||
|
|
||||||
((= (elt filename 0) ?\<)
|
((= (elt filename 0) ?\<)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue