[Python-checkins] python/dist/src/Misc python-mode.el,4.23,4.24

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
Tue, 16 Jul 2002 09:04:15 -0700


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv8823

Modified Files:
	python-mode.el 
Log Message:
(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.


Index: python-mode.el
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/python-mode.el,v
retrieving revision 4.23
retrieving revision 4.24
diff -C2 -d -r4.23 -r4.24
*** python-mode.el	16 Jul 2002 15:56:28 -0000	4.23
--- python-mode.el	16 Jul 2002 16:04:13 -0000	4.24
***************
*** 946,949 ****
--- 946,951 ----
        ;; 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)