diff options
author | Barry Warsaw <barry@python.org> | 2002-07-16 16:04:13 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-07-16 16:04:13 (GMT) |
commit | 32a03967b7b233d168d9c18d53436bc98a25edf9 (patch) | |
tree | fcba82b3081a3c853166cc8a1190e7f573cdb19d | |
parent | 5086e49a6e2c740e5710a46ba4871b9144d564ea (diff) | |
download | cpython-32a03967b7b233d168d9c18d53436bc98a25edf9.zip cpython-32a03967b7b233d168d9c18d53436bc98a25edf9.tar.gz cpython-32a03967b7b233d168d9c18d53436bc98a25edf9.tar.bz2 |
(py-imenu-create-index-function): Skip over stuff that looks like code
but which is in a comment or string. Closes SF bug # 572341 reported
by Adrian van den Dries.
-rw-r--r-- | Misc/python-mode.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 5e34604..a5e4fe3 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -945,6 +945,8 @@ of the first definition found." ;; what level is the next definition on? must be same, deeper ;; or shallower indentation (cond + ;; Skip code in comments and strings + ((py-in-literal)) ;; at the same indent level, add it to the list... ((= start-indent cur-indent) (push (cons def-name def-pos) index-alist)) |