mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +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)
|
||||
(count-lines
|
||||
(point-min)
|
||||
(string-match "^\\([^#]\\|#[^#]\\|#$\\)"
|
||||
(buffer-substring (point-min)
|
||||
(point-max)
|
||||
funcbuffer)))))))
|
||||
(max (point-min)
|
||||
(string-match "^\\([^#]\\|#[^#]\\|#$\\)"
|
||||
(buffer-substring (point-min)
|
||||
(point-max)
|
||||
funcbuffer))
|
||||
))))))
|
||||
(list lineno funcbuffer))
|
||||
|
||||
((= (elt filename 0) ?\<)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue